Skip to navigation

Create an upload session

Opens an upload session for one file in the creator’s vault.

Upload flow

  1. Create the session. The answer’s upload says how to send the bytes.
  2. For upload.method: PUT, PUT the bytes to upload.url. For MULTIPART, get part URLs from POST /partner/v1/accounts/{creatorId}/media/uploads/{uploadSessionId}/parts.
  3. Finalize with POST /partner/v1/accounts/{creatorId}/media/uploads/{uploadSessionId}/finalize, which turns the upload into an asset.

Errors

  • 409 STORAGE_LIMIT_REACHED — the creator’s vault is full, or this file would overfill it.
  • 409 SANDBOX_QUOTA_REACHED — for a sandbox creator, the agency’s sandbox media budget is used up (sandbox).
  • 429 SANDBOX_QUOTA_REACHED — for a sandbox creator, the agency’s hourly sandbox processing budget is used up.

Required scopes: write:media.

Authentication

AuthorizationBearer

OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.

Required scopes:write:media

Path parameters

creatorIdstringRequired>=1 character

The creator profile id — the ONLY source of the creator a request acts for.

Headers

X-Creator-IdstringOptional

Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

Request

This endpoint expects an object.
kindenumRequired
Allowed values:
mimeTypestringRequired
sizeBytesintegerRequired>=1
sha256stringRequiredformat: "^[0-9a-fA-F]{64}$"
libraryenumOptionalDefaults to public
Allowed values:
supportsResumablebooleanOptional

Whether your client can upload in several parts. If it can and the upload is at or above the deployment’s threshold, the answer is the MULTIPART descriptor. Below the threshold, or when this is not sent, the answer is the one-part PUT.

Response

Session open.
uploadSessionobject
uploadobject
libraryenum
Allowed values:

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error