GoSmarter Logo
GoSmarter Certificate API

Health check (Preview)

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

Preview: this endpoint may change without a new version while it is in Preview. Returns 200 with an empty body. Public, unauthenticated, rate limited per IP. Maps to /api/v1-preview/health on the backend.

Health check (Preview) › Responses

Service is healthy. The response has no body.

No data returned

Get account summary (Preview)

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

Preview: this endpoint may change without a new version while it is in Preview. Returns the calling account's summary: id, name, status, mode (live or mock), training consent, commercial terms and retention. Never returns secrets or billing identifiers. Requires an API key.

Get account summary (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 account summary (Preview) › Responses

Account summary

accountId
​string · uuid · required
displayName
​string · required
status
​string · enum · required
Enum values:
Active
Suspended
Closed
mode
​string · enum · required
Enum values:
live
mock
trainingConsent
​boolean · required
retentionDays
​integer · required
pricePerCredit
​number | null
currency
​string | null
monthlyCreditCap
​integer | null

Get the monthly usage report (Preview)

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

Preview: this endpoint may change without a new version while it is in Preview. Returns one UTC calendar month of billed usage (the current month by default), priced at the account's price per credit: the jobs, their certificates with supplier and source page range, and the scan and extraction credits, so a multi-supplier pack reconciles with the invoice. One credit is one page. Failed work, classification-only work and mock usage are not billed and do not appear; a mock account always gets an empty report. Requires an API key.

Get the monthly usage report (Preview) › query Parameters

month
​string · pattern: ^[0-9]{4}-(0[1-9]|1[…

The month as yyyy-MM (UTC). Default: the current month.

Get the monthly usage report (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 the monthly usage report (Preview) › Responses

The month's usage

month
​string · required
periodStart
​string · date-time · required
periodEnd
​string · date-time · required

Exclusive end of the month.

final
​boolean · required

True once the month has ended, so the figures cannot grow.

mock
​boolean · required

A mock account: never billed, so the report is empty.

capReached
​boolean · required

The month used at least the whole monthly credit cap.

​UsageReportTotals · required
​UsageReportJob[] · required
pricePerCredit
​number | null
currency
​string | null

ISO 4217 code.

monthlyCreditCap
​integer | null

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.


List webhook endpoints (Preview)

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

Preview: this endpoint may change without a new version while it is in Preview. Returns the account's webhook endpoints. Secrets are never returned.

List webhook endpoints (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 webhook endpoints (Preview) › Responses

The endpoints


Register a webhook endpoint (Preview)

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

Preview: this endpoint may change without a new version while it is in Preview. Registers an HTTPS endpoint (port 443, public addresses only) that receives one signed delivery per job when the job reaches a final state. The response contains the signing secret: store it now, it is never shown again. At most five endpoints per account. See the Webhooks page for the payload and how to verify the signature.

Register a webhook endpoint (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.

Register a webhook endpoint (Preview) › Request Body

url
​string · uri · required

HTTPS address, port 443, public host.

events
​string[]

Defaults to ["job.completed"].

Enum values:
job.completed

Register a webhook endpoint (Preview) › Responses

The endpoint, with its secret (shown once)

endpointId
​string · uuid
url
​string
events
​string[]
createdAt
​string · date-time
updatedAt
​string · date-time
rotationInProgress
​boolean

True while deliveries carry signatures for both the new and the previous secret.

secret
​string

Present only in the response that created or rotated the secret; never retrievable again.


Get a webhook endpoint (Preview)

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

Preview: this endpoint may change without a new version while it is in Preview. Returns one endpoint. The secret is never returned.

Get a webhook endpoint (Preview) › path Parameters

endpointId
​string · uuid · required

Get a webhook endpoint (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 webhook endpoint (Preview) › Responses

The endpoint

endpointId
​string · uuid
url
​string
events
​string[]
createdAt
​string · date-time
updatedAt
​string · date-time
rotationInProgress
​boolean

True while deliveries carry signatures for both the new and the previous secret.

secret
​string

Present only in the response that created or rotated the secret; never retrievable again.


Update a webhook endpoint (Preview)

PUT
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/webhooks/{endpointId}

Preview: this endpoint may change without a new version while it is in Preview. Replaces the endpoint's url and events (same rules as registering). The secret is unchanged; rotate it separately.

Update a webhook endpoint (Preview) › path Parameters

endpointId
​string · uuid · required

Update a webhook endpoint (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.

Update a webhook endpoint (Preview) › Request Body

url
​string · uri · required

HTTPS address, port 443, public host.

events
​string[]

Defaults to ["job.completed"].

Enum values:
job.completed

Update a webhook endpoint (Preview) › Responses

The updated endpoint

endpointId
​string · uuid
url
​string
events
​string[]
createdAt
​string · date-time
updatedAt
​string · date-time
rotationInProgress
​boolean

True while deliveries carry signatures for both the new and the previous secret.

secret
​string

Present only in the response that created or rotated the secret; never retrievable again.


Delete a webhook endpoint (Preview)

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

Preview: this endpoint may change without a new version while it is in Preview. Removes the endpoint and its secrets. Deliveries still waiting for it are abandoned.

Delete a webhook endpoint (Preview) › path Parameters

endpointId
​string · uuid · required

Delete a webhook endpoint (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 webhook endpoint (Preview) › Responses

Deleted

No data returned

Send a test delivery (Preview)

POST
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/webhooks/{endpointId}/test

Preview: this endpoint may change without a new version while it is in Preview. Sends one signed webhook.test event to the endpoint and reports what happened. Nothing is retried or stored.

Send a test delivery (Preview) › path Parameters

endpointId
​string · uuid · required

Send a test delivery (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.

Send a test delivery (Preview) › Responses

Whether the receiver answered 2xx

delivered
​boolean
statusCode
​integer | null
error
​string | null

Rotate a webhook secret (Preview)

POST
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/webhooks/{endpointId}/rotate-secret

Preview: this endpoint may change without a new version while it is in Preview. Creates a new signing secret and returns it once. Until you call retire-previous-secret, every delivery carries a signature for the new and for the previous secret, so receivers can switch without a gap.

Rotate a webhook secret (Preview) › path Parameters

endpointId
​string · uuid · required

Rotate a webhook secret (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.

Rotate a webhook secret (Preview) › Responses

The endpoint, with the new secret (shown once)

endpointId
​string · uuid
url
​string
events
​string[]
createdAt
​string · date-time
updatedAt
​string · date-time
rotationInProgress
​boolean

True while deliveries carry signatures for both the new and the previous secret.

secret
​string

Present only in the response that created or rotated the secret; never retrievable again.


Retire the previous webhook secret (Preview)

POST
https://violet-swordtail-main-4217c95.zuplo.app
/v1-preview/webhooks/{endpointId}/retire-previous-secret

Preview: this endpoint may change without a new version while it is in Preview. Ends a rotation: deliveries are signed with the new secret only. Safe to repeat.

Retire the previous webhook secret (Preview) › path Parameters

endpointId
​string · uuid · required

Retire the previous webhook secret (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.

Retire the previous webhook secret (Preview) › Responses

The endpoint

endpointId
​string · uuid
url
​string
events
​string[]
createdAt
​string · date-time
updatedAt
​string · date-time
rotationInProgress
​boolean

True while deliveries carry signatures for both the new and the previous secret.

secret
​string

Present only in the response that created or rotated the secret; never retrievable again.