Skip to content

Use Dockt with coding agents

Dockt publishes documentation in formats that coding agents can read without scraping page layouts:

  • /llms.txt is a compact index and the recommended entry point.
  • /llms-small.txt contains the most important integration context.
  • /llms-full.txt contains the complete documentation set.
  • OpenAPI JSON defines exact /v1 paths, fields, enums, and response schemas, including authentication, credits, and connection management.
  • Webhook events and delivery defines event bodies and signing headers; the OpenAPI document does not include them.

Replace the workflow and language placeholders, then give this prompt to your coding agent:

Implement a backend integration with the Dockt API for WORKFLOW.
Read https://docs.dockt.com/llms.txt first. Use
https://api.dockt.com/openapi.json as the source of truth for every
endpoint, field, enum, and response type. Do not invent fields or rely on
internal Dockt implementation details. Read
https://docs.dockt.com/reference/notification-destinations/ for webhook bodies
and signing headers; they are not in the OpenAPI document.
Requirements:
- Use LANGUAGE and the existing HTTP/client patterns in my application repository.
- Use only Dockt's public documentation and OpenAPI contract.
- Read the bearer token from DOCKT_API_TOKEN and call https://api.dockt.com.
Routes start with /v1, such as POST /v1/assignments.
- Keep credentials, uploaded files, and webhook secrets on the server.
- Refer to Workplaces, Persons, Companies and Assignments by our own IDs
through external_ref, so retries never create duplicates.
- Send Idempotency-Key on supported create and upload requests.
- Treat evaluation and document processing as asynchronous. Handle
decision.created as the main signal and fetch the Decision before acting.
- Handle every Decision result and requirement status, and treat unknown
finding codes by their severity.
- Parse non-2xx responses as application/problem+json.
- Log x-request-id without logging secrets or document contents.
- When receiving webhooks, verify the signature over the raw request body,
enforce the five-minute replay window, and deduplicate by event ID.
- Add focused tests for the response parsing and retry logic you implement,
plus webhook verification.
Before writing code, summarize the API operations and states the integration
will use. After implementation, run the repository's checks.

Use, for example, announce workers for our sites and show their Decisions or vet subcontractors before they start for WORKFLOW. Use your application’s implementation language for LANGUAGE.

Generate client types from the OpenAPI document when your toolchain supports OpenAPI 3.1. Pin generated output to a reviewed contract in your repository, and review schema changes before updating it.

Don’t ask an agent to infer undocumented fields from examples. Examples explain a workflow; the OpenAPI schema defines the request and response contract.