Skip to main content

Lookup REST

REST API · openapi/partner-api/openapi.yaml · 1 operation

Check if a SASHA Signature is present in an image or a video

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
Source
openapi/partner-api/openapi.yaml

Request body

required

Lookup 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-IDstringoptional
      The 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
    • jobJobrequired
  • 400An error has occurred.

    Headers

    • SASHA-Request-IDstringoptional
      The 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-IDstringoptional
      The 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-IDstringoptional
      The 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-data that is too large is answered with 400 instead.

    Headers

    • SASHA-Request-IDstringoptional
      The 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-IDstringoptional
      The 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-IDstringoptional
      The 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 reason MEDIA_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 the Retry-After header has passed. Without a reason, 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-IDstringoptional
      The 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 1
      The number of seconds to wait before sending the request again. Sent with a 503 whose reason is MEDIA_STAGING_FULL.
    application/jsonErrorResponse