Skip to main content

Schemas REST

REST API · openapi/partner-api/openapi.yaml · 25 schemas

AuthErrorResponse​

The error payload returned by the /oauth/token endpoint, in the OAuth 2.0 error shape defined by RFC 6749. Branch on error.

  • errorstringrequired
    The error code.
  • error_descriptionstringoptional
    Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred.
  • error_uristringoptional
    A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
  • request_idstringoptional
    The identifier of the request that failed, mirroring the SASHA-Request-ID response header. Quote it when contacting SASHA support: it is what joins your call to the server-side logs.

Referenced by

ErrorResponse​

The error payload returned by the Signature, Job and Record endpoints.

message is always present. request_id, reason and details are added when available, so a client that reads message only keeps working unchanged.

  • messagestringrequired
    Human-readable summary of the failure.
  • reasonstringoptional
    Machine-readable cause of a failure that is not a validation failure, when the API names one. Absent when the failure has no named cause, and on validation failures, whose causes are in details[].reason.
  • request_idstringoptional
    The identifier of the request that failed, mirroring the SASHA-Request-ID response header. Quote it when contacting SASHA support: it is what joins your call to the server-side logs.
  • detailsarray<FieldViolation>optionalmaxItems 20
    The field violations that caused the request to be rejected.

Field notes

message

Human-readable summary of the failure.

On a validation failure this is the first details entry's description, suffixed with (+N more) when the request has more than one violation. English, not localized, and the wording is not stable across releases — never parse or branch on it; branch on reason or details[].reason instead.

reason

Machine-readable cause of a failure that is not a validation failure, when the API names one. Absent when the failure has no named cause, and on validation failures, whose causes are in details[].reason.

  • MEDIA_STAGING_FULL: Sent with 503 by Embed Signature and Lookup Signature. SASHA is holding as much submitted media as it can until jobs already accepted finish processing. The request is valid and no job was created; submit it again after the number of seconds in the Retry-After header.
  • PAGE_TOKEN_INVALID: Sent with 400 by List Jobs. page_token is malformed or was not returned as next_page_token. Start again without page_token.

New reasons may be added. Treat a reason you do not recognize as the general case of the HTTP status it came with.

details

The field violations that caused the request to be rejected.

Present on validation failures only; absent on every other kind of error. A request with more than 20 violations reports the first 20.

Referenced by

FieldViolation​

A single field of the request that was rejected, and why.

  • fieldstringrequired
    Path of the offending field, in request-body naming. Array entries are indexed and map entries are keyed, e.g. purchase_url, allowed_publish_urls[2], custom_fields["asset_id"].string_value.
  • reasonstringrequired
    Machine-readable cause of the violation — the value to branch on
  • descriptionstringrequired
    Human-readable explanation of this violation, safe to log and to show to a developer.

Field notes

reason

Machine-readable cause of the violation — the value to branch on:

  • REQUIRED: A field the request cannot omit was not provided
  • INVALID_TYPE: The value has the wrong JSON type for the field
  • INVALID_FORMAT: The value has the right type but is not well-formed for the field, e.g. an unparsable URL or timestamp, or a fixed-length value of the wrong length
  • UNSUPPORTED_SCHEME: A URL uses a scheme the field does not accept (only https is accepted)
  • FORBIDDEN_USERINFO: A URL carries userinfo (user:password@), which is never accepted
  • FORBIDDEN_HOST: A URL points at a host the field does not accept, such as an IP literal or localhost
  • TOO_LONG: The value is longer than the field allows
  • TOO_MANY: The list or map holds more entries than the field allows
  • INVALID_CHARACTERS: The value contains characters the field does not accept, such as control characters
  • UNKNOWN_VALUE: The value is not one of the values the field defines, e.g. an unknown share_state
  • OUT_OF_RANGE: The value is outside the range the field allows, e.g. a number below its minimum or above its maximum
  • NOT_ALLOWED_HERE: The field is well-formed but not allowed in this combination, e.g. a distribution field on a private Record
  • EXACTLY_ONE_REQUIRED: Exactly one of a group of mutually exclusive properties must be set, e.g. the typed value of a custom_fields entry
  • UNKNOWN_FIELD: The body carries a field the endpoint does not define — commonly a misspelling, or a camelCase spelling of a snake_case field
  • EMPTY: The value is present but empty where a value is required
  • INVALID_PATTERN: A URL pattern is malformed and cannot be interpreted

The set is closed, but it may be extended with new reasons. Treat a reason you do not recognise as a generic validation failure rather than failing hard.

description

Human-readable explanation of this violation, safe to log and to show to a developer.

It may name the offending field or map key and state the limit that applies, but it never echoes the value that was submitted. English, not localized, and the wording is not stable across releases — never parse or branch on it.

Referenced by

UnauthorizedResponse​

The error payload of a request that was not authenticated or not authorized. It has the same fields as ErrorResponse.

Includes the fields of ErrorResponse.

  • messagestringrequired
    Human-readable summary of the failure.
  • reasonstringoptional
    Machine-readable cause of a failure that is not a validation failure, when the API names one. Absent when the failure has no named cause, and on validation failures, whose causes are in details[].reason.
  • request_idstringoptional
    The identifier of the request that failed, mirroring the SASHA-Request-ID response header. Quote it when contacting SASHA support: it is what joins your call to the server-side logs.
  • detailsarray<FieldViolation>optionalmaxItems 20
    The field violations that caused the request to be rejected.

Field notes

message

Human-readable summary of the failure.

On a validation failure this is the first details entry's description, suffixed with (+N more) when the request has more than one violation. English, not localized, and the wording is not stable across releases — never parse or branch on it; branch on reason or details[].reason instead.

reason

Machine-readable cause of a failure that is not a validation failure, when the API names one. Absent when the failure has no named cause, and on validation failures, whose causes are in details[].reason.

  • MEDIA_STAGING_FULL: Sent with 503 by Embed Signature and Lookup Signature. SASHA is holding as much submitted media as it can until jobs already accepted finish processing. The request is valid and no job was created; submit it again after the number of seconds in the Retry-After header.
  • PAGE_TOKEN_INVALID: Sent with 400 by List Jobs. page_token is malformed or was not returned as next_page_token. Start again without page_token.

New reasons may be added. Treat a reason you do not recognize as the general case of the HTTP status it came with.

details

The field violations that caused the request to be rejected.

Present on validation failures only; absent on every other kind of error. A request with more than 20 violations reports the first 20.

Referenced by

GetTokenRequest​

No description in the spec.

  • grant_typestringrequired
    The grant type. Must be "client_credentials".

Referenced by

GetTokenResponse​

No description in the spec.

  • access_tokenstringrequired
    An access token that can be provided in subsequent calls, for example, to SASHA Partner API services.
  • token_typestringrequired
    How the access token may be used. Always "Bearer".
  • expires_inintegerrequired
    The time period (in seconds) for which the access token is valid.

Referenced by

JobStatus​

The status of the job.

pendingThe job has been accepted and is waiting to be processed
completedThe job is completed successfully
failedThe job failed with an error

Referenced by

  • Job — schema

EmbedSignatureFromURLRequest​

No description in the spec.

  • 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.
  • recordRecordoptional
    Optional Record to attach to the resulting signature, carrying the creator's declared distribution intent and display metadata.

Field notes

media_mime_type

The MIME type of the media file at the given URL.

If not provided, the MIME type will be inferred from the URL.

The following MIME types are currently supported:

  • image/jpeg
  • image/png
  • image/webp
  • video/mp4
  • video/quicktime
  • application/mxf

The protected video keeps the input's container, MP4, MOV or MXF, e.g. MXF for an XDCAM MXF input, and MOV with DNxHR video for a ProRes MOV input; see the Supported Formats reference below for the format table.

For the most up-to-date list of supported formats and other media constraints, see the Supported Formats reference.

callback_secret_id

Optional identifier of the Callback Secret SASHA should use to sign the callback payload for this job.

Each Callback Secret you have configured with SASHA has a unique Callback Secret ID. Pass it here to pin a job's callback signature to a specific secret — useful while rotating secrets, or when different parts of your system verify callbacks with different keys.

The request is rejected with 400 when this ID names a Callback Secret that is unknown or disabled. A request with a callback_url is also rejected with 400 when the Partner has no enabled Callback Secret.

If omitted, SASHA uses the oldest of your enabled Callback Secrets. The Callback Secret that was actually used is returned in the SASHA-Callback-Secret-ID HTTP header on the callback request, so your endpoint can look up the matching signing key when validating the SASHA-Request-Signature.

callback_url

Optional callback URL to receive job status notifications.

A job with a callback needs an enabled Callback Secret: the request is rejected with 400 when the Partner has none. Create a Callback Secret before you submit a job with a callback_url.

record

Optional Record to attach to the resulting signature, carrying the creator's declared distribution intent and display metadata.

Validated at submit: an invalid Record fails the request with a 400 and creates no job. Read-only fields are ignored.

Referenced by

EmbedSignatureFromDataRequest​

No description in the spec.

  • mediastringrequiredbinary
    The media file to protect by embedding the SASHA Signature into
  • 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.
  • recordRecordoptional
    Optional Record to attach to the resulting signature, carrying the creator's declared distribution intent and display metadata.

Field notes

callback_secret_id

Optional identifier of the Callback Secret SASHA should use to sign the callback payload for this job.

Each Callback Secret you have configured with SASHA has a unique Callback Secret ID. Pass it here to pin a job's callback signature to a specific secret — useful while rotating secrets, or when different parts of your system verify callbacks with different keys.

The request is rejected with 400 when this ID names a Callback Secret that is unknown or disabled. A request with a callback_url is also rejected with 400 when the Partner has no enabled Callback Secret.

If omitted, SASHA uses the oldest of your enabled Callback Secrets. The Callback Secret that was actually used is returned in the SASHA-Callback-Secret-ID HTTP header on the callback request, so your endpoint can look up the matching signing key when validating the SASHA-Request-Signature.

callback_url

Optional callback URL to receive job status notifications.

A job with a callback needs an enabled Callback Secret: the request is rejected with 400 when the Partner has none. Create a Callback Secret before you submit a job with a callback_url.

record

Optional Record to attach to the resulting signature, carrying the creator's declared distribution intent and display metadata.

Send it as a JSON-encoded string in a record form field with content type application/json, not as nested bracket fields.

Validated at submit: an invalid Record fails the request with a 400 and creates no job. Read-only fields are ignored.

Referenced by

EmbedSignatureResponse​

No description in the spec.

  • jobJobrequired

Referenced by

Job​

No description in the spec.

  • job_idstringrequired
    The ID of the job
  • typeJobTyperequired
  • statusJobStatusrequired
  • errorJobErroroptional
    The error that occurred while processing the job, if the job status is failed
  • output_urlstringoptional
    The URL of the result media file (only populated if job status is completed and type is embed-signature)
  • output_url_expires_atstring (date-time)optional
    The date and time the output URL will expire
  • signature_idSignatureID | nulloptionalnullable
    The Signature identifier (populated when job status is completed). Will be null if no signature was found in the media.
  • creator_idinteger (uint32)optional0..4294967295
    The CreatorID of the business entity that owns the signature in signature_id (populated exactly when signature_id holds a value). For an embed-signature job, this is the CreatorID of the Partner that submitted the job. For a lookup-signature job, this is the CreatorID of the found signature's owner.
  • guidanceGuidanceoptional
    SASHA-evaluated distribution guidance for the found signature (populated when job status is completed, type is lookup-signature, and an active signature was found). A signature without a Record yields guidance with the private share state.
  • recordRecordoptional
    A field-filtered Record for the found signature. Populated only when job status is completed, type is lookup-signature, an active signature was found, and the partner either owns the signature or has at least one field disclosed to it by the owner. The owning partner receives the full Record; any other partner receives only the fields the owner has granted to it or marked public. Absent for a partner with no such field, and never present for revoked signatures.
  • warningsarray<JobWarning>optional
    What the job left out of its result, or where the result differs from the input, without failing (only populated if job status is completed and type is embed-signature). Empty or absent when there is nothing to report. The protected media was still produced; each warning names what was left out or what differs from the input. A failed job reports its cause in error instead.
  • created_atstring (date-time)required
    The date and time the job was created
  • updated_atstring (date-time)required
    The date and time the job was last updated

Field notes

record

A field-filtered Record for the found signature. Populated only when job status is completed, type is lookup-signature, an active signature was found, and the partner either owns the signature or has at least one field disclosed to it by the owner. The owning partner receives the full Record; any other partner receives only the fields the owner has granted to it or marked public. Absent for a partner with no such field, and never present for revoked signatures.

Availability is time-bounded: the disclosed Record is retained for a limited window after completion, so it may be absent on jobs fetched later even though guidance remains. Use GET /signature/{signature_id}/record for durable read-back of a Record you own.

Referenced by

JobError​

No description in the spec.

  • codestringrequired
    Error codes
  • messagestringrequired
    A developer-facing error message

Referenced by

  • Job — schema

JobWarning​

No description in the spec.

  • codestringrequired
    Warning codes. More codes may be added; treat an unknown code as a warning described by message alone.
  • messagestringrequired
    A developer-facing warning message that names what was left out or what differs.

Referenced by

  • Job — schema

JobType​

The type of the job.

embed-signatureThe job is to embed a SASHA Signature into an image or a video
lookup-signatureThe job is to check if an image or a video is already protected with SASHA Signature

Referenced by

  • Job — schema

SignatureID​

The globally unique identifier of the SASHA Signature embedded into the image or video.

The SignatureID is an unsigned 64-bit integer.

In JSON representation, the SignatureID is represented as a string.

Type: string

Referenced by

ShareState​

The creator-declared share state of a protected media item:

A share state describes only the intent the creator has declared to SASHA. It is not a statement about the legal status of the media; rights such as copyright apply independently.

privateThe creator declared that the media is not intended to be distributed anywhere public
unrestrictedThe creator declared no distribution restrictions for the media
restrictedThe creator declared that the media is intended to be distributed only where the Record's distribution fields permit

Referenced by

Record​

A Record attaches creator-declared distribution intent and display metadata to a signature.

A lookup always returns coarse guidance (evaluated server-side). It may additionally return a field-filtered Record: the owning partner receives the full Record, any other partner receives only the fields the owner has granted to it or marked public, and a partner with no such field receives no Record. The full Record is always readable by its owning partner via GET /signature/{signature_id}/record.

Consistency rules (enforced on write):

  • share_state must be set
  • private and unrestricted Records must not carry any distribution fields
  • restricted Records may carry any subset of the distribution fields (allowed_publish_urls, allowed_source_urls, allowed_from, allowed_to), including none — the fields form a permit list, so a restricted Record with none of them permits no locations yet and conditions can be added later as they become known
  • custom_fields are display/metadata only and may be set under any share state

Contradictory combinations are rejected.

Size limits (enforced on write): at most 100 patterns per URL-pattern list, each at most 2048 characters; at most 32 custom_fields entries with keys of 1-64 characters and string values of at most 1024 characters; a Record without c2pa_manifest_store must not exceed 64 KiB when serialized.

Includes the fields of RecordFields.

  • share_stateShareStaterequired
  • allowed_publish_urlsarray<string>optional
    URL patterns the browser-facing display URL of the media is allowed to match (only meaningful with the restricted share state).
  • allowed_source_urlsarray<string>optional
    URL patterns the storage/CDN address of the media bytes is allowed to match (only meaningful with the restricted share state).
  • allowed_fromstring (date-time)optional
    The media is not allowed to be available before this time (supports embargo dates)
  • allowed_tostring (date-time)optional
    The media is not allowed to be available after this time
  • bylinestringoptionalmaxLength 256
    Display text the publisher is expected to show alongside the media (e.g. photographer credit).
  • purchase_urlstringoptionalmaxLength 2048format uri
    URL where the media can be purchased or licensed.
  • licenseestringoptionalmaxLength 256
    Legal business name of the entity that has licensed the media asset. Aids enforcers when the licence agreement is not bound to a specific location.
  • asset_source_idstringoptionalmaxLength 256
    The creator's own upstream source ID for the asset: the creator's identifier for the media in their own system.
  • custom_fieldsmap<string, FieldValue>optional
    Custom fields, keyed by a creator-chosen name. Custom fields are display/metadata only: they never participate in distribution guidance evaluation, so they may be set under any share state. Each custom field is disclosed to other parties like any other Record field: to the creators the owner has granted it to, or to every looker once the owner marks it public. SASHA manages these settings on the creator's behalf.
  • created_atstring (date-time)optionalread-only
    The date and time the Record was first created
  • updated_atstring (date-time)optionalread-only
    The date and time the Record was last replaced

Field notes

allowed_publish_urls

URL patterns the browser-facing display URL of the media is allowed to match (only meaningful with the restricted share state).

Pattern syntax:

  • https only. The scheme may be omitted; https is implied.
  • A host with no path matches any path on that host: https://cdn.example.com.
  • A path ending in / matches that prefix: https://news.example.com/articles/ matches /articles/123 but not /archive/9. A path not ending in / must match exactly.
  • *. is a subdomain wildcard, and is only allowed as the leftmost label: https://*.example.com. It cannot appear elsewhere, so https://example.com/* is not a valid pattern — omit the path instead. The base of a wildcard must have at least two labels and must not be a public suffix.
  • No userinfo, no query string, no fragment, no IP literals, no localhost.

A pattern that does not parse is rejected with an INVALID_PATTERN field violation naming the entry, e.g. allowed_publish_urls[1].

allowed_source_urls

URL patterns the storage/CDN address of the media bytes is allowed to match (only meaningful with the restricted share state).

Same pattern syntax as allowed_publish_urls.

byline

Display text the publisher is expected to show alongside the media (e.g. photographer credit).

Plain text, no control characters. Consumers must always treat this value as text, never as markup.

purchase_url

URL where the media can be purchased or licensed.

Must be a well-formed https URL without userinfo, and must not point at an IP literal or localhost.

licensee

Legal business name of the entity that has licensed the media asset. Aids enforcers when the licence agreement is not bound to a specific location.

Plain text, no control characters. Consumers must always treat this value as text, never as markup.

asset_source_id

The creator's own upstream source ID for the asset: the creator's identifier for the media in their own system.

Opaque text, no control characters. A UUID (RFC 9562) is recommended but not required. Consumers must always treat this value as text, never as markup.

Referenced by

RecordPatch​

A JSON Merge Patch (RFC 7386) for a Record: fields present in the patch replace the stored value (arrays and objects are replaced wholesale, not merged), fields set to null are cleared, and absent fields are left unchanged. The result must satisfy the Record consistency rules. Read-only fields are ignored.

Includes the fields of RecordFields.

  • share_stateShareStateoptional
  • allowed_publish_urlsarray<string>optional
    URL patterns the browser-facing display URL of the media is allowed to match (only meaningful with the restricted share state).
  • allowed_source_urlsarray<string>optional
    URL patterns the storage/CDN address of the media bytes is allowed to match (only meaningful with the restricted share state).
  • allowed_fromstring (date-time)optional
    The media is not allowed to be available before this time (supports embargo dates)
  • allowed_tostring (date-time)optional
    The media is not allowed to be available after this time
  • bylinestringoptionalmaxLength 256
    Display text the publisher is expected to show alongside the media (e.g. photographer credit).
  • purchase_urlstringoptionalmaxLength 2048format uri
    URL where the media can be purchased or licensed.
  • licenseestringoptionalmaxLength 256
    Legal business name of the entity that has licensed the media asset. Aids enforcers when the licence agreement is not bound to a specific location.
  • asset_source_idstringoptionalmaxLength 256
    The creator's own upstream source ID for the asset: the creator's identifier for the media in their own system.
  • custom_fieldsmap<string, FieldValue>optional
    Custom fields, keyed by a creator-chosen name. Custom fields are display/metadata only: they never participate in distribution guidance evaluation, so they may be set under any share state. Each custom field is disclosed to other parties like any other Record field: to the creators the owner has granted it to, or to every looker once the owner marks it public. SASHA manages these settings on the creator's behalf.
  • created_atstring (date-time)optionalread-only
    The date and time the Record was first created
  • updated_atstring (date-time)optionalread-only
    The date and time the Record was last replaced

Field notes

allowed_publish_urls

URL patterns the browser-facing display URL of the media is allowed to match (only meaningful with the restricted share state).

Pattern syntax:

  • https only. The scheme may be omitted; https is implied.
  • A host with no path matches any path on that host: https://cdn.example.com.
  • A path ending in / matches that prefix: https://news.example.com/articles/ matches /articles/123 but not /archive/9. A path not ending in / must match exactly.
  • *. is a subdomain wildcard, and is only allowed as the leftmost label: https://*.example.com. It cannot appear elsewhere, so https://example.com/* is not a valid pattern — omit the path instead. The base of a wildcard must have at least two labels and must not be a public suffix.
  • No userinfo, no query string, no fragment, no IP literals, no localhost.

A pattern that does not parse is rejected with an INVALID_PATTERN field violation naming the entry, e.g. allowed_publish_urls[1].

allowed_source_urls

URL patterns the storage/CDN address of the media bytes is allowed to match (only meaningful with the restricted share state).

Same pattern syntax as allowed_publish_urls.

byline

Display text the publisher is expected to show alongside the media (e.g. photographer credit).

Plain text, no control characters. Consumers must always treat this value as text, never as markup.

purchase_url

URL where the media can be purchased or licensed.

Must be a well-formed https URL without userinfo, and must not point at an IP literal or localhost.

licensee

Legal business name of the entity that has licensed the media asset. Aids enforcers when the licence agreement is not bound to a specific location.

Plain text, no control characters. Consumers must always treat this value as text, never as markup.

asset_source_id

The creator's own upstream source ID for the asset: the creator's identifier for the media in their own system.

Opaque text, no control characters. A UUID (RFC 9562) is recommended but not required. Consumers must always treat this value as text, never as markup.

Referenced by

RecordFields​

No description in the spec.

  • share_stateShareStateoptional
  • allowed_publish_urlsarray<string>optional
    URL patterns the browser-facing display URL of the media is allowed to match (only meaningful with the restricted share state).
  • allowed_source_urlsarray<string>optional
    URL patterns the storage/CDN address of the media bytes is allowed to match (only meaningful with the restricted share state).
  • allowed_fromstring (date-time)optional
    The media is not allowed to be available before this time (supports embargo dates)
  • allowed_tostring (date-time)optional
    The media is not allowed to be available after this time
  • bylinestringoptionalmaxLength 256
    Display text the publisher is expected to show alongside the media (e.g. photographer credit).
  • purchase_urlstringoptionalmaxLength 2048format uri
    URL where the media can be purchased or licensed.
  • licenseestringoptionalmaxLength 256
    Legal business name of the entity that has licensed the media asset. Aids enforcers when the licence agreement is not bound to a specific location.
  • asset_source_idstringoptionalmaxLength 256
    The creator's own upstream source ID for the asset: the creator's identifier for the media in their own system.
  • custom_fieldsmap<string, FieldValue>optional
    Custom fields, keyed by a creator-chosen name. Custom fields are display/metadata only: they never participate in distribution guidance evaluation, so they may be set under any share state. Each custom field is disclosed to other parties like any other Record field: to the creators the owner has granted it to, or to every looker once the owner marks it public. SASHA manages these settings on the creator's behalf.
  • created_atstring (date-time)optionalread-only
    The date and time the Record was first created
  • updated_atstring (date-time)optionalread-only
    The date and time the Record was last replaced

Field notes

allowed_publish_urls

URL patterns the browser-facing display URL of the media is allowed to match (only meaningful with the restricted share state).

Pattern syntax:

  • https only. The scheme may be omitted; https is implied.
  • A host with no path matches any path on that host: https://cdn.example.com.
  • A path ending in / matches that prefix: https://news.example.com/articles/ matches /articles/123 but not /archive/9. A path not ending in / must match exactly.
  • *. is a subdomain wildcard, and is only allowed as the leftmost label: https://*.example.com. It cannot appear elsewhere, so https://example.com/* is not a valid pattern — omit the path instead. The base of a wildcard must have at least two labels and must not be a public suffix.
  • No userinfo, no query string, no fragment, no IP literals, no localhost.

A pattern that does not parse is rejected with an INVALID_PATTERN field violation naming the entry, e.g. allowed_publish_urls[1].

allowed_source_urls

URL patterns the storage/CDN address of the media bytes is allowed to match (only meaningful with the restricted share state).

Same pattern syntax as allowed_publish_urls.

byline

Display text the publisher is expected to show alongside the media (e.g. photographer credit).

Plain text, no control characters. Consumers must always treat this value as text, never as markup.

purchase_url

URL where the media can be purchased or licensed.

Must be a well-formed https URL without userinfo, and must not point at an IP literal or localhost.

licensee

Legal business name of the entity that has licensed the media asset. Aids enforcers when the licence agreement is not bound to a specific location.

Plain text, no control characters. Consumers must always treat this value as text, never as markup.

asset_source_id

The creator's own upstream source ID for the asset: the creator's identifier for the media in their own system.

Opaque text, no control characters. A UUID (RFC 9562) is recommended but not required. Consumers must always treat this value as text, never as markup.

Referenced by

FieldValue​

A typed value for a custom Record field. Exactly one property is set, which pins the value's type. Custom fields are display/metadata only and never participate in distribution guidance evaluation.

Constraints: exactly one property

  • boolean_valuebooleanoptional
  • string_valuestringoptional
  • int32_valueinteger (int32)optional
  • double_valuenumber (double)optional
  • uuid_valuestring (byte)optional
    A UUID per RFC 9562 as its 16 raw bytes, base64-encoded.

Referenced by

Guidance​

SASHA-evaluated distribution guidance for a found signature.

Guidance reflects the distribution intent the creator declared to SASHA. It is not a determination of the legal status of the media; rights such as copyright apply independently of the returned advice. The underlying Record contents are never disclosed, though the optional message may name domains from the Record's allowed URL patterns (domain names are public knowledge).

  • share_stateShareStaterequired
  • advicestringrequired
    The verdict for the queried location and time
  • messagestringoptional
    Human-readable explanation of the verdict, e.g. "Only allowed on example.com".

Field notes

message

Human-readable explanation of the verdict, e.g. "Only allowed on example.com".

Populated at the server's discretion, typically when advice is not_allowed or inconclusive. For developer convenience only: English, not localized, and the wording is not stable across releases — never parse or branch on it; use advice and share_state for program logic. The text may name domains from the Record's allowed URL patterns (domain names are public knowledge and are not masked); it never carries full URL patterns or other raw Record content.

Referenced by

  • Job — schema

LookupSignatureFromURLRequest​

No description in the spec.

  • 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.

Field notes

publish_url

The browser-facing URL where the media is displayed or is about to be published.

Used to evaluate the found signature's Record into distribution guidance on the completed job. Strongly recommended: without URL context, restricted media yields an inconclusive verdict.

source_url

The URL the media bytes were fetched from (e.g. a CDN address).

Used to evaluate the found signature's Record into distribution guidance on the completed job.

media_mime_type

The MIME type of the media file at the given URL.

If not provided, the MIME type will be inferred from the URL.

The following MIME types are currently supported:

  • image/jpeg
  • image/png
  • image/webp
  • video/mp4
  • video/quicktime
  • application/mxf

For the most up-to-date list of supported formats and other media constraints, see the Supported Formats reference.

callback_secret_id

Optional identifier of the Callback Secret SASHA should use to sign the callback payload for this job.

Each Callback Secret you have configured with SASHA has a unique Callback Secret ID. Pass it here to pin a job's callback signature to a specific secret — useful while rotating secrets, or when different parts of your system verify callbacks with different keys.

The request is rejected with 400 when this ID names a Callback Secret that is unknown or disabled. A request with a callback_url is also rejected with 400 when the Partner has no enabled Callback Secret.

If omitted, SASHA uses the oldest of your enabled Callback Secrets. The Callback Secret that was actually used is returned in the SASHA-Callback-Secret-ID HTTP header on the callback request, so your endpoint can look up the matching signing key when validating the SASHA-Request-Signature.

callback_url

Optional callback URL to receive job status notifications.

A job with a callback needs an enabled Callback Secret: the request is rejected with 400 when the Partner has none. Create a Callback Secret before you submit a job with a callback_url.

Referenced by

LookupSignatureFromDataRequest​

No description in the spec.

  • mediastringrequiredbinary
    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).
  • 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.

Field notes

publish_url

The browser-facing URL where the media is displayed or is about to be published.

Used to evaluate the found signature's Record into distribution guidance on the completed job. Strongly recommended: without URL context, restricted media yields an inconclusive verdict.

source_url

The URL the media bytes were fetched from (e.g. a CDN address).

Used to evaluate the found signature's Record into distribution guidance on the completed job.

callback_secret_id

Optional identifier of the Callback Secret SASHA should use to sign the callback payload for this job.

Each Callback Secret you have configured with SASHA has a unique Callback Secret ID. Pass it here to pin a job's callback signature to a specific secret — useful while rotating secrets, or when different parts of your system verify callbacks with different keys.

The request is rejected with 400 when this ID names a Callback Secret that is unknown or disabled. A request with a callback_url is also rejected with 400 when the Partner has no enabled Callback Secret.

If omitted, SASHA uses the oldest of your enabled Callback Secrets. The Callback Secret that was actually used is returned in the SASHA-Callback-Secret-ID HTTP header on the callback request, so your endpoint can look up the matching signing key when validating the SASHA-Request-Signature.

callback_url

Optional callback URL to receive job status notifications.

A job with a callback needs an enabled Callback Secret: the request is rejected with 400 when the Partner has none. Create a Callback Secret before you submit a job with a callback_url.

Referenced by

LookupSignatureResponse​

No description in the spec.

  • jobJobrequired

Referenced by

ListJobsResponse​

No description in the spec.

  • jobsarray<Job>required
    The jobs of this page: your recent jobs, each with its current status. Empty when you have no recent jobs.
  • next_page_tokenstringoptional
    Cursor for the next page, to be sent back as the page_token query parameter.

Field notes

jobs

The jobs of this page: your recent jobs, each with its current status. Empty when you have no recent jobs.

Jobs are ordered by job_id descending, which puts the most recently created jobs first.

The list is not a snapshot. A job created during a walk can appear on a later page or be missed. A job that stops being recent during a walk is left out of the pages after that.

next_page_token

Cursor for the next page, to be sent back as the page_token query parameter.

A page can hold fewer jobs than page_size, or none, and still have a next page. When absent or empty, no further pages exist.

Referenced by