Documents · Implemented contract
Document
/v2/documents/{documentId}This operation follows the public request and response schemas below. Product, workspace and source permissions are evaluated independently of authentication.
Implementation does not imply commercial access. Production data products remain inactive; endpoint and product availability are checked at request time.
Authentication
X-API-Key is required. Organisation, workspace and applicable product scopes are validated server-side.
This operation does not declare a fixed product-scope list in OpenAPI. Selected product and workspace permissions still apply; confirm the approved credential arrangement.
Parameters
documentIdpath · required
string
Pattern: ^DOC-[A-Z]{2}-[a-f0-9]{64}$
X-Workspace-Idheader · optional
string | null
Alternative 1 string
string
Format: uuid
Alternative 2 null
null
Responses
200 Successful Response
idstringrequired
string
Pattern: ^DOC-[A-Z]{2}-[a-f0-9]{64}$
companyIdstringrequired
string
Pattern: ^THQ-[A-Z]{2}-[0-9]{8}$
typestringrequired
string
Allowed: incorporationNotice · amendmentNotice
publicationDatestring | nulloptional
string | nullstring | null
Alternative 1 string
string
Alternative 2 null
null
gazetteYearinteger | nulloptional
integer | nullinteger | null
Alternative 1 integer
integer
Alternative 2 null
null
gazetteIssuestring | nulloptional
string | nullstring | null
Alternative 1 string
string
Alternative 2 null
null
pageStartinteger | nulloptional
integer | nullinteger | null
Alternative 1 integer
integer
Alternative 2 null
null
pageEndinteger | nulloptional
integer | nullinteger | null
Alternative 1 integer
integer
Alternative 2 null
null
languagestringoptional
string
Allowed: ar · en
Default: "ar"
contentTypestringoptional
string
Value: "application/pdf"
Default: "application/pdf"
versionstringrequired
string
Minimum length: 1
Maximum length: 200
sha256stringrequired
string
Pattern: ^[a-f0-9]{64}$
sizeBytesintegerrequired
integer
Minimum: 1
Maximum: 52428800
availablebooleanrequired
boolean
priceCreditCentsintegeroptional
integer
Minimum: 0
Maximum: 1000000000000
Default: 0
entitledbooleanoptional
boolean
Default: false
400 Bad Request
errorErrorDetailrequired
401 Unauthorized
errorErrorDetailrequired
402 Payment Required
errorErrorDetailrequired
403 Forbidden
errorErrorDetailrequired
404 Not Found
errorErrorDetailrequired
409 Conflict
errorErrorDetailrequired
410 Gone
errorErrorDetailrequired
413 Request Entity Too Large
errorErrorDetailrequired
422 Unprocessable Entity
errorErrorDetailrequired
429 Too Many Requests
errorErrorDetailrequired
501 Not Implemented
errorErrorDetailrequired
502 Bad Gateway
errorErrorDetailrequired
503 Service Unavailable
errorErrorDetailrequired
504 Gateway Timeout
errorErrorDetailrequired
Billing, idempotency and pagination
Consult the operation schema and commercial guides. Existing permitted result replay and entitled document downloads do not create another purchase charge.
Only use cursor, limit and header fields explicitly declared above. Error responses use the documented error envelope. Preserve the request reference, inspect per-product outcomes and use bounded retries.