Skip to main content
The Assets API uploads files into an Occtoo source. You register the files, upload them straight to storage, then confirm them.

Upload flow

1

Register the assets

Call POST /v1/assets/{dataSourceId} with one item per file. Each item has an entry key. The response returns a signed upload link per entry key.
2

Upload the files

Send each file with PUT to its upload link. The file goes straight to Azure Blob Storage and does not pass through Occtoo.
3

Confirm the uploads

Call POST /v1/assets/{dataSourceId}/complete with the entry keys. Occtoo then creates the files.
Everything uses the entry key:
  • GET /v1/assets/{dataSourceId} reads the state of assets.
  • PUT /v1/assets/{dataSourceId} creates assets or replaces their files.
  • POST /v1/assets/{dataSourceId}/uploadLinks gives you new links when a link expired before you uploaded.
  • DELETE /v1/assets/{dataSourceId} removes assets and their files.

Authentication

The tenant comes from the credential. Send an Application access token as Authorization: Bearer <token>, or an organization API key as x-api-key. Every operation accepts any one of write:media, write:sources, or the import-datasource permission of a Data Provider.

Limits

Entry keys must be unique in a request, ignoring case. They can contain letters, digits, _, and -.

Responses and errors

Batch operations return 200 with the keys that worked and a failed map from entry key to reason. One bad asset does not fail the whole call. DELETE returns 204. Errors use Problem Details (application/problem+json). A 400 lists the invalid fields under errors. Retry 429 and 5xx responses with exponential backoff, and respect Retry-After when it is present.