Read Founder Card
POST/v1/founder/card
API key requiredSuccess 200
Read a business card into empty form fields. The vision cost is internal, not a second customer charge.
Parameters
| Name | Type | Description |
|---|---|---|
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
Request body application/json
| Name | Type | Description |
|---|---|---|
assetrequired | string | length ≤ 80 |
Response 200 application/json
| Name | Type | Description |
|---|---|---|
name | string | |
company | string | |
titles | array<string> | |
contact | string | |
phone | string | |
email | string | |
address | string | |
city | string | |
website | string | |
slogan | string | |
business | array<string> |
Example
curl -X POST "https://axiomlab.online/v1/founder/card" \
-H "Authorization: Bearer $AZIMO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"asset": "<asset>"}'Edit Founder Script
POST/v1/founder/script
API key requiredSuccess 200
Replace lines of a plan's script. The result must still pass the same checks; an edit cannot waive them.
Parameters
| Name | Type | Description |
|---|---|---|
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
Request body application/json
| Name | Type | Description |
|---|---|---|
plan_idrequired | string | length ≤ 80 |
lines | array<object> | up to 12 items |
Response 200 application/json
| Name | Type | Description |
|---|---|---|
idrequired | string | |
project_idrequired | string | nullable |
kindrequired | string | |
namerequired | string | |
versionrequired | integer | |
created_atrequired | number | |
updated_atrequired | number | |
datarequired | object | |
data.statusrequired | string | One of: planning ready needs_input unavailable |
data.requestrequired | object | |
data.assets | array<object> | |
data.routing | object | nullable |
data.requirements | array<object> | |
data.reason | string | nullable |
data.job_id | string | The production this plan started; a plan starts at most one; nullable |
Example
curl -X POST "https://axiomlab.online/v1/founder/script" \
-H "Authorization: Bearer $AZIMO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"plan_id": "<plan_id>"}'Import Founder Zip
POST/v1/founder/import
API key requiredSuccess 200
Unpack a zip the customer uploaded. Photos become assets; fact lines stay drafts until the customer adds them.
Vision and the extraction call are internal cost, the same as card reading: not a second customer charge.
Parameters
| Name | Type | Description |
|---|---|---|
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
Request body application/json
| Name | Type | Description |
|---|---|---|
assetrequired | string | length ≤ 80 |
Response 200 application/json
| Name | Type | Description |
|---|---|---|
photos | array<object> | |
photos[].assetrequired | string | |
photos[].role | string | |
photos[].note | string | |
photos[].quality | string | |
photos[].source | string | |
facts | array<object> | |
facts[].year | string | |
facts[].text | string | |
facts[].source | string | |
facts[].excerpt | string | |
skipped | array<string> |
Example
curl -X POST "https://axiomlab.online/v1/founder/import" \
-H "Authorization: Bearer $AZIMO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"asset": "<asset>"}'Styles
GET/v1/styles
API key requiredSuccess 200
The visual styles a film can be made in (options.style), named in the page's language. Needs no key or session (the
signed-out create page shows them too); a key that is sent must be valid.
Parameters
| Name | Type | Description |
|---|---|---|
langquery | string | Display language, zh (default) or en; when absent the first zh/en entry of Accept-Language is used; length ≤ 16; nullable |
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
accept-languageheader | string | nullable |
Response 200 application/json
| Name | Type | Description |
|---|---|---|
datarequired | array<object> | Empty while the styles cannot be listed; a film then gets the default style |
data[].idrequired | string | The value for options.style |
data[].namerequired | string | |
data[].linerequired | string | What the style suits, in one line |
data[].betarequired | boolean | A new style: no film made with it has been delivered yet |
data[].defaultrequired | boolean | The style a film gets when options.style is not set |
data[].coverrequired | string | A still of the style's sample film (GET /v1/styles/{id}/cover); nullable |
data[].cliprequired | string | A 5-second silent loop of the style's sample film, starting and ending on the cover (GET /v1/styles/{id}/clip); nullable |
Example
curl "https://axiomlab.online/v1/styles" \ -H "Authorization: Bearer $AZIMO_API_KEY"
Style Cover
GET/v1/styles/{style_id}/cover
API key requiredSuccess 200
A still of the style's sample film. Needs no key or session, like the list. The listed link changes with the image, so a browser may keep it for a day.
Parameters
| Name | Type | Description |
|---|---|---|
style_idrequiredpath | string | |
langquery | string | Display language, zh (default) or en; when absent the first zh/en entry of Accept-Language is used; length ≤ 16; nullable |
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
accept-languageheader | string | nullable |
Response 200 image/jpeg
Returns the file bytes.
Example
curl "https://axiomlab.online/v1/styles/<style_id>/cover" \ -H "Authorization: Bearer $AZIMO_API_KEY"
Style Clip
GET/v1/styles/{style_id}/clip
API key requiredSuccess 200
A 5-second silent loop of the style's sample film. Needs no key or session, like the list. Honours a single byte Range.
The listed link changes with the clip, so a browser may keep it for a day.
Parameters
| Name | Type | Description |
|---|---|---|
style_idrequiredpath | string | |
langquery | string | Display language, zh (default) or en; when absent the first zh/en entry of Accept-Language is used; length ≤ 16; nullable |
Rangeheader | string | One byte range: bytes=first-last, bytes=first- or bytes=-length; nullable |
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
accept-languageheader | string | nullable |
Response 200 video/mp4
Returns the file bytes.
Other status codes
416The range lies outside the clip (`Content-Range: bytes */<length>`)
Example
curl "https://axiomlab.online/v1/styles/<style_id>/clip" \ -H "Authorization: Bearer $AZIMO_API_KEY"