Lookup REST
REST API · openapi/partner-api/openapi.yaml · 1 operation
Check if a SASHA Signature is present in an image or a video
- Production
- partner.api.sasha.eu
Check an image for a Signature
POST/ signature/ lookup
LookupSignature
Check if the provided image or video contains a SASHA Signature
- Authentication
- HTTP Bearer (JWT)
- Callbacks
- JobStatusChangedCallbackJob Status Change Callback
- Docs
- Lookup Signature
- Source
- openapi/partner-api/openapi.yaml
Request body
requiredLookup Signature Request
- media_
urlstringrequired The URL of the media file to lookup the SASHA Signature from - publish_
urlstringoptional The browser-facing URL where the media is displayed or is about to be published. - source_
urlstringoptional The URL the media bytes were fetched from (e.g. a CDN address). - 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.
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/jsonLookupSignatureResponse - 400An 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/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