GoSmarter Logo
GoSmarter Certificate API

List jobs (Preview)

GET
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/jobs

Preview: this endpoint may change without a new version while it is in Preview. Lists the account's jobs, newest first, in pages, with job and usage totals over the whole filter. Filter by status and by creation date.

List jobs (Preview) › query Parameters

status
​string · enum
Enum values:
created
submitted
classifying
split
extracting
completed
completedWithErrors
infected
from
​string

Created on or after this ISO 8601 date or timestamp (UTC). Default: 90 days ago; the totals report it as periodStart.

to
​string

Created before this ISO 8601 date or timestamp (UTC).

limit
​integer · min: 1 · max: 100

Page size, 1 to 100 (default 25).

cursor
​string

nextCursor from the previous page.

List jobs (Preview) › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

List jobs (Preview) › Responses

A page of jobs and the totals

​Job[] · required
​object · required
nextCursor
​string | null

Create a job (Preview)

POST
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/jobs

Preview: this endpoint may change without a new version while it is in Preview. Creates a job for one PDF: a single certificate (mode: single) or a multi-supplier pack (mode: pack). Returns a short-lived upload URL on UK South storage: PUT the PDF there (certificate PDFs never pass through this gateway), then call submit. Send an Idempotency-Key header so a retry returns the original job. Mock accounts may set scenario; live accounts must not.

Create a job (Preview) › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Idempotency-Key
​string · maxLength: 128

Up to 128 printable characters without spaces. A retry with the same key returns the original job.

Create a job (Preview) › Request Body

mode
​string · enum · required
Enum values:
single
pack
fileName
​string · maxLength: 512

Your own name for the file, for your reference only.

scenario
​string

Mock accounts only: the canned sandbox result. Single: single-certificate, mixed-heats, low-confidence-supplier, delayed-completion. Pack: three-supplier-pack, pack-one-failed-child, split-failure. Rejected for live accounts.

Create a job (Preview) › Responses

A retry with the same Idempotency-Key: the original job

jobId
​string · uuid · required
mode
​string · enum · required
Enum values:
single
pack
status
​string · enum · required

submitted: waiting for the malware scan. classifying: the AI stage up to the split. completedWithErrors: some certificates failed, the rest are returned and billed.

Enum values:
created
submitted
classifying
split
extracting
completed
completedWithErrors
infected
createdAt
​string · date-time · required
​Usage · required
submittedAt
​string | null · date-time
completedAt
​string | null · date-time
fileName
​string | null
pageCount
​integer | null
scannedPageCount
​integer | null
scenario
​string | null

Mock accounts only.

failureReason
​string | null
​array | null
​Upload | null

Present only while the job is waiting for its file.


Get a job (Preview)

GET
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/jobs/{jobId}

Preview: this endpoint may change without a new version while it is in Preview. Returns the job's status, the status of each certificate and the pages used so far. Poll until the status is terminal (completed, completedWithErrors, failed or infected), then fetch the result.

Get a job (Preview) › path Parameters

jobId
​string · uuid · required

Get a job (Preview) › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Get a job (Preview) › Responses

The job

jobId
​string · uuid · required
mode
​string · enum · required
Enum values:
single
pack
status
​string · enum · required

submitted: waiting for the malware scan. classifying: the AI stage up to the split. completedWithErrors: some certificates failed, the rest are returned and billed.

Enum values:
created
submitted
classifying
split
extracting
completed
completedWithErrors
infected
createdAt
​string · date-time · required
​Usage · required
submittedAt
​string | null · date-time
completedAt
​string | null · date-time
fileName
​string | null
pageCount
​integer | null
scannedPageCount
​integer | null
scenario
​string | null

Mock accounts only.

failureReason
​string | null
​array | null
​Upload | null

Present only while the job is waiting for its file.


Delete a job (Preview)

DELETE
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/jobs/{jobId}

Preview: this endpoint may change without a new version while it is in Preview. Removes the uploaded PDF, the split certificates and the stored results, and hides the job. Usage already recorded is kept for billing. Repeating the call is safe.

Delete a job (Preview) › path Parameters

jobId
​string · uuid · required

Delete a job (Preview) › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Delete a job (Preview) › Responses

The job was deleted (or already had been)

No data returned

Submit an uploaded job (Preview)

POST
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/jobs/{jobId}/submit

Preview: this endpoint may change without a new version while it is in Preview. Call after uploading the PDF. Checks size, that the file is a readable PDF and the page cap (400 pages for a pack, 50 for a single certificate), then queues the job once the malware scan is clean. An unusable file ends the job. Calling submit again on an accepted job returns its current state.

Submit an uploaded job (Preview) › path Parameters

jobId
​string · uuid · required

Submit an uploaded job (Preview) › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Submit an uploaded job (Preview) › Responses

Already submitted: the job's current state

jobId
​string · uuid · required
mode
​string · enum · required
Enum values:
single
pack
status
​string · enum · required

submitted: waiting for the malware scan. classifying: the AI stage up to the split. completedWithErrors: some certificates failed, the rest are returned and billed.

Enum values:
created
submitted
classifying
split
extracting
completed
completedWithErrors
infected
createdAt
​string · date-time · required
​Usage · required
submittedAt
​string | null · date-time
completedAt
​string | null · date-time
fileName
​string | null
pageCount
​integer | null
scannedPageCount
​integer | null
scenario
​string | null

Mock accounts only.

failureReason
​string | null
​array | null
​Upload | null

Present only while the job is waiting for its file.


Get a job's result (Preview)

GET
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/jobs/{jobId}/result

Preview: this endpoint may change without a new version while it is in Preview. Returns one envelope for the whole job, the same shape for single and pack jobs: every certificate with supplier, classification confidence, source page range, status and the full extraction document, plus the pages used. A failed certificate gives the job status completedWithErrors and never fails the others. Returns 409 until the job has finished.

Get a job's result (Preview) › path Parameters

jobId
​string · uuid · required

Get a job's result (Preview) › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Get a job's result (Preview) › Responses

The aggregated result

jobId
​string · uuid · required
mode
​string · enum · required
Enum values:
single
pack
status
​string · required
​Usage · required
​ResultCertificate[] · required
warnings
​string[] · required
pageCount
​integer | null
scannedPageCount
​integer | null
failureReason
​string | null

Get a job's PDFs regrouped (Preview)

GET
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/jobs/{jobId}/pdf

Preview: this endpoint may change without a new version while it is in Preview. Returns short-lived signed links (valid for one hour; call again for fresh ones) to PDFs generated from the job's certificates and cached. groupBy=certificate gives each certificate's own PDF, groupBy=supplier merges the certificates of one supplier, groupBy=heat gives one PDF per (heat, supplier) pair named {heat}-{supplier}.pdf, with pages that belong to no heat kept in unassigned-{supplier}.pdf. A page shared by several heats is in each of their files. Add heat (with groupBy=heat) for one heat's files: a heat that is not in the result returns 404, and a heat that is in the result but has no page numbers returns 422 (pdf_export_heat_has_no_pages). Without heat, such a heat is skipped and its pages stay in the unassigned file. Only completed certificates are included. Not billed. Limits per export: 200 heats per certificate, 2000 output pages (a page shared by several heats counts in each) and 200 MiB; beyond them the call returns 422 (heats, pages) or 413 (size) with a pdf_export_* code in the message, never a truncated export. Source PDFs are kept 7 days: after that a first export returns 410. Returns 409 until the job has finished.

Get a job's PDFs regrouped (Preview) › path Parameters

jobId
​string · uuid · required

Get a job's PDFs regrouped (Preview) › query Parameters

groupBy
​string · enum · required

How to regroup the pages.

Enum values:
certificate
supplier
heat
heat
​string

With groupBy=heat only: return just this heat code's files.

Get a job's PDFs regrouped (Preview) › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Get a job's PDFs regrouped (Preview) › Responses

Signed links to the regrouped PDFs

jobId
​string · uuid · required
groupBy
​string · enum · required
Enum values:
certificate
supplier
heat
expiresAt
​string · date-time · required
​PdfExportFile[] · required
archive
​object | null

A ZIP of every file; absent when a heat filter was used or there is only one file.