Embed REST
REST API · openapi/partner-api/openapi.yaml · 1 operation
Embed a SASHA Signature into an image or a video
- Production
- partner.api.sasha.eu
Protect an image
POST/ signature/ embed
EmbedSignature
Embed a SASHA Signature into the provided image or video
- Authentication
- HTTP Bearer (JWT)
- Callbacks
- JobStatusChangedCallbackJob Status Change Callback
- Docs
- Embed Signature
- Source
- openapi/partner-api/openapi.yaml
Request body
requiredEmbed Signature Request
- media_
urlstringrequired The URL of the media file to protect by embedding the SASHA Signature into - media_
mime_ typestringoptional The MIME type of the media file at the given URL. - callback_
secret_ idstringoptional Optional identifier of the Callback Secret SASHA should use to sign the callback payload for this job. - callback_
urlstringoptionalformat uri Optional callback URL to receive job status notifications. - Optional Record to attach to the resulting signature, carrying the creator's declared distribution intent and display metadata.
Responses
- 200Successful operation
Headers
- SASHA-Request-IDstringoptionalThe identifier of this request, set on every response. Quote it when contacting SASHA support: it is what joins your call to the server-side logs. On an error response the same value is repeated in the payload's
request_id.
application/jsonEmbedSignatureResponse - 400The request was rejected. A validation failure lists every offending field in
details; other failures carrymessageonly.Headers
- SASHA-Request-IDstringoptionalThe identifier of this request, set on every response. Quote it when contacting SASHA support: it is what joins your call to the server-side logs. On an error response the same value is repeated in the payload's
request_id.
application/jsonErrorResponse - 401An authorization error has occurred.
Headers
- SASHA-Request-IDstringoptionalThe identifier of this request, set on every response. Quote it when contacting SASHA support: it is what joins your call to the server-side logs. On an error response the same value is repeated in the payload's
request_id.
application/jsonUnauthorizedResponse - 403An authorization error has occurred.
Headers
- SASHA-Request-IDstringoptionalThe identifier of this request, set on every response. Quote it when contacting SASHA support: it is what joins your call to the server-side logs. On an error response the same value is repeated in the payload's
request_id.
application/jsonUnauthorizedResponse - 413The request body is larger than the server accepts. A media file uploaded as
multipart/form-datathat is too large is answered with400instead.Headers
- SASHA-Request-IDstringoptionalThe identifier of this request, set on every response. Quote it when contacting SASHA support: it is what joins your call to the server-side logs. On an error response the same value is repeated in the payload's
request_id.
application/jsonErrorResponse - 429Sent only for a video submitted by URL: you already have as many video jobs in progress as your account allows, so no job was created. Retry the request once one of those jobs has finished.
Headers
- SASHA-Request-IDstringoptionalThe identifier of this request, set on every response. Quote it when contacting SASHA support: it is what joins your call to the server-side logs. On an error response the same value is repeated in the payload's
request_id.
application/jsonErrorResponse - 500An unexpected error occurred on the server.
Headers
- SASHA-Request-IDstringoptionalThe identifier of this request, set on every response. Quote it when contacting SASHA support: it is what joins your call to the server-side logs. On an error response the same value is repeated in the payload's
request_id.
application/jsonErrorResponse - 503The service is temporarily unable to handle the request. With
reasonMEDIA_STAGING_FULL, SASHA is holding as much submitted media as it can until jobs already accepted finish processing. The request itself is valid and no job was created, so submitting the same request again cannot create a second job. Submit it again once the number of seconds in theRetry-Afterheader has passed. Without areason, the submit may already have been carried out, and the API does not recognize a repeated submit as the same request: a retried submit can create a second job, and for Embed Signature register a second Signature, which may be billed. Retry it only if a duplicate job is acceptable.Headers
- SASHA-Request-IDstringoptionalThe identifier of this request, set on every response. Quote it when contacting SASHA support: it is what joins your call to the server-side logs. On an error response the same value is repeated in the payload's
request_id. - Retry-Afterintegeroptionalmin 1The number of seconds to wait before sending the request again. Sent with a
503whosereasonisMEDIA_STAGING_FULL.
application/jsonErrorResponse