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.
- 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 theSASHA-Request-IDresponse header. Quote it when contacting SASHA support: it is what joins your call to the server-side logs.
Referenced by
- GetToken — operation
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.
- messagestringrequiredHuman-readable summary of the failure.
- reasonstringoptionalMachine-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 theSASHA-Request-IDresponse header. Quote it when contacting SASHA support: it is what joins your call to the server-side logs. - 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 with503by 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 theRetry-Afterheader.PAGE_TOKEN_INVALID: Sent with400by List Jobs.page_tokenis malformed or was not returned asnext_page_token. Start again withoutpage_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
- GetToken — operation
- EmbedSignature — operation
- LookupSignature — operation
- GetJob — operation
- ListJobs — operation
- PutSignatureRecord — operation
- PatchSignatureRecord — operation
- GetSignatureRecord — operation
- DeleteSignatureRecord — operation
- UnauthorizedResponse — schema
FieldViolation
A single field of the request that was rejected, and why.
- fieldstringrequiredPath 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. - Machine-readable cause of the violation — the value to branch on
- descriptionstringrequiredHuman-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 providedINVALID_TYPE: The value has the wrong JSON type for the fieldINVALID_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 lengthUNSUPPORTED_SCHEME: A URL uses a scheme the field does not accept (onlyhttpsis accepted)FORBIDDEN_USERINFO: A URL carries userinfo (user:password@), which is never acceptedFORBIDDEN_HOST: A URL points at a host the field does not accept, such as an IP literal or localhostTOO_LONG: The value is longer than the field allowsTOO_MANY: The list or map holds more entries than the field allowsINVALID_CHARACTERS: The value contains characters the field does not accept, such as control charactersUNKNOWN_VALUE: The value is not one of the values the field defines, e.g. an unknownshare_stateOUT_OF_RANGE: The value is outside the range the field allows, e.g. a number below its minimum or above its maximumNOT_ALLOWED_HERE: The field is well-formed but not allowed in this combination, e.g. a distribution field on aprivateRecordEXACTLY_ONE_REQUIRED: Exactly one of a group of mutually exclusive properties must be set, e.g. the typed value of acustom_fieldsentryUNKNOWN_FIELD: The body carries a field the endpoint does not define — commonly a misspelling, or a camelCase spelling of a snake_case fieldEMPTY: The value is present but empty where a value is requiredINVALID_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
- ErrorResponse — schema
- UnauthorizedResponse — schema
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.
- messagestringrequiredHuman-readable summary of the failure.
- reasonstringoptionalMachine-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 theSASHA-Request-IDresponse header. Quote it when contacting SASHA support: it is what joins your call to the server-side logs. - 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 with503by 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 theRetry-Afterheader.PAGE_TOKEN_INVALID: Sent with400by List Jobs.page_tokenis malformed or was not returned asnext_page_token. Start again withoutpage_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
- EmbedSignature — operation
- LookupSignature — operation
- GetJob — operation
- ListJobs — operation
- PutSignatureRecord — operation
- PatchSignatureRecord — operation
- GetSignatureRecord — operation
- DeleteSignatureRecord — operation
GetTokenRequest
No description in the spec.
- grant_
typestringrequired The grant type. Must be "client_credentials".
Referenced by
- GetToken — operation
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
- GetToken — operation
JobStatus
The status of the job.
pending | The job has been accepted and is waiting to be processed |
completed | The job is completed successfully |
failed | The 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. - 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/jpegimage/pngimage/webpvideo/mp4video/quicktimeapplication/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
- EmbedSignature — operation
EmbedSignatureFromDataRequest
No description in the spec.
- mediastringrequiredbinaryThe 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. - 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
- EmbedSignature — operation
EmbedSignatureResponse
No description in the spec.
Referenced by
- EmbedSignature — operation
Job
No description in the spec.
- job_
idstringrequired The ID of the job - The error that occurred while processing the job, if the job
statusisfailed - output_
urlstringoptional The URL of the result media file (only populated if jobstatusiscompletedandtypeisembed-signature) - output_
url_ expires_ atstring (date-time)optional The date and time the output URL will expire - The Signature identifier (populated when job
statusiscompleted). Will benullif no signature was found in the media. - creator_
idinteger (uint32)optional0..4294967295 The CreatorID of the business entity that owns the signature insignature_id(populated exactly whensignature_idholds a value). For anembed-signaturejob, this is the CreatorID of the Partner that submitted the job. For alookup-signaturejob, this is the CreatorID of the found signature's owner. - SASHA-evaluated distribution guidance for the found signature (populated when job
statusiscompleted,typeislookup-signature, and an active signature was found). A signature without a Record yields guidance with theprivateshare state. - A field-filtered Record for the found signature. Populated only when job
statusiscompleted,typeislookup-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. - What the job left out of its result, or where the result differs from the input, without failing (only populated if job
statusiscompletedandtypeisembed-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 inerrorinstead. - 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
- GetJob — operation
- JobStatusChangedCallback — callback
- EmbedSignatureResponse — schema
- LookupSignatureResponse — schema
- ListJobsResponse — schema
JobError
No description in the spec.
- Error codes
- messagestringrequiredA developer-facing error message
Referenced by
- Job — schema
JobWarning
No description in the spec.
- Warning codes. More codes may be added; treat an unknown code as a warning described by
messagealone. - messagestringrequiredA developer-facing warning message that names what was left out or what differs.
Referenced by
- Job — schema
JobType
The type of the job.
embed-signature | The job is to embed a SASHA Signature into an image or a video |
lookup-signature | The 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
- PutSignatureRecord — operation
- PatchSignatureRecord — operation
- GetSignatureRecord — operation
- DeleteSignatureRecord — operation
- Job — schema
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.
private | The creator declared that the media is not intended to be distributed anywhere public |
unrestricted | The creator declared no distribution restrictions for the media |
restricted | The creator declared that the media is intended to be distributed only where the Record's distribution fields permit |
Referenced by
- Record — schema
- RecordPatch — schema
- RecordFields — schema
- Guidance — schema
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_statemust be setprivateandunrestrictedRecords must not carry any distribution fieldsrestrictedRecords 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 knowncustom_fieldsare 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.
- allowed_
publish_ urlsarray<string>optional URL patterns the browser-facing display URL of the media is allowed to match (only meaningful with therestrictedshare state). - allowed_
source_ urlsarray<string>optional URL patterns the storage/CDN address of the media bytes is allowed to match (only meaningful with therestrictedshare 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 256Display 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 256Legal 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 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:
httpsonly. The scheme may be omitted;httpsis 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/123but 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, sohttps://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
- PutSignatureRecord — operation
- GetSignatureRecord — operation
- EmbedSignatureFromURLRequest — schema
- EmbedSignatureFromDataRequest — schema
- Job — schema
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.
- allowed_
publish_ urlsarray<string>optional URL patterns the browser-facing display URL of the media is allowed to match (only meaningful with therestrictedshare state). - allowed_
source_ urlsarray<string>optional URL patterns the storage/CDN address of the media bytes is allowed to match (only meaningful with therestrictedshare 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 256Display 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 256Legal 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 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:
httpsonly. The scheme may be omitted;httpsis 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/123but 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, sohttps://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
- PatchSignatureRecord — operation
RecordFields
No description in the spec.
- allowed_
publish_ urlsarray<string>optional URL patterns the browser-facing display URL of the media is allowed to match (only meaningful with therestrictedshare state). - allowed_
source_ urlsarray<string>optional URL patterns the storage/CDN address of the media bytes is allowed to match (only meaningful with therestrictedshare 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 256Display 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 256Legal 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 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:
httpsonly. The scheme may be omitted;httpsis 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/123but 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, sohttps://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
- Record — schema
- RecordPatch — schema
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
- Record — schema
- RecordPatch — schema
- RecordFields — schema
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).
- The verdict for the queried location and time
- messagestringoptionalHuman-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/jpegimage/pngimage/webpvideo/mp4video/quicktimeapplication/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
- LookupSignature — operation
LookupSignatureFromDataRequest
No description in the spec.
- mediastringrequiredbinaryThe 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
- LookupSignature — operation
LookupSignatureResponse
No description in the spec.
Referenced by
- LookupSignature — operation
ListJobsResponse
No description in the spec.
- 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 thepage_tokenquery 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
- ListJobs — operation