Skip to main content

Job REST

REST API · openapi/partner-api/openapi.yaml · 2 operations

Job management

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-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/jsonJob
    • 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
  • 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
  • 404The requested resource was not found.

    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. The request can be retried, preferably after a short wait.

    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

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)
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 as next_page_token by a previous response. The token is opaque. When not specified, the first page is returned.

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/jsonListJobsResponse
    • 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.
  • 400The request was rejected. With reason PAGE_TOKEN_INVALID, page_token is malformed or was not returned as next_page_token. Retrying with the same token does not help; start again without page_token. A page_size that is not a whole number of 0 or more is also rejected with 400.

    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
  • 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. The request can be retried, preferably after a short wait.

    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