Job REST
REST API · openapi/partner-api/openapi.yaml · 2 operations
Job management
- Production
- partner.api.sasha.eu
Get a job
GET/ jobs/ {job_ id}
GetJob
Gets job information by its ID
- Authentication
- HTTP Bearer (JWT)
- gRPC
- GetJob
- Source
- openapi/partner-api/openapi.yaml
Parameters
Path parameters
- job_
idstringrequired The ID of the job to retrieve
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/jsonJob- 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
- 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 - 404The requested resource was not found.
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. The request can be retried, preferably after a short wait.
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
List jobs
GET/ jobs
ListJobs
Lists your recent jobs, newest first, one page at a time.
Results are paginated. Page through with page_token until a response comes back
without next_page_token.
- Authentication
- HTTP Bearer (JWT)
- gRPC
- ListJobs
- Source
- openapi/partner-api/openapi.yaml
Parameters
Query parameters
- page_
sizeintegeroptionalmin 0 Maximum number of jobs per page. At most 100; a larger value is clamped to 100. When not specified or 0, uses 50. - page_
tokenstringoptional Pagination cursor returned asnext_page_tokenby a previous response. The token is opaque. When not specified, the first page is returned.
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/jsonListJobsResponse- 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.
- 400The request was rejected. With
reasonPAGE_TOKEN_INVALID,page_tokenis malformed or was not returned asnext_page_token. Retrying with the same token does not help; start again withoutpage_token. Apage_sizethat is not a whole number of 0 or more is also rejected with400.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 - 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. The request can be retried, preferably after a short wait.
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