Skip to content

Dockt documentation

Dockt helps your application check whether workers and companies meet the requirements for a site. You send worker details and documents through the API, and Dockt returns the compliance result.

Dockt is headless: you build the interface your users see. Your backend calls Dockt and decides what to do with each result, such as request a missing document or send a case for review.

Dockt reads the documents you upload, checks public registries, and evaluates the work against the site’s rules. It returns a Decision that explains whether those rules are met and, if not, what is missing.

Use the production API at https://api.dockt.com. Its routes start with /v1, such as POST /v1/assignments. Authenticate backend requests with an API key for your Account, or a machine-to-machine (M2M) access token. An Account groups your organization’s data and access.

For example, a contractor portal registers a worker for a construction site. The worker is a Person, the site is a Workplace, and their planned work at that site is an Assignment. The Workplace’s Policy defines what Dockt checks.

  • An Account is your organization in Dockt. Everything you create belongs to it.
  • A Person is a worker. A Company is an employer, subcontractor, main contractor or client. Both hold attributes, documents and registry results.
  • A Workplace is a site where work happens. Each Workplace has one Policy: the rules that apply there.
  • An Assignment is a Person working at a Workplace, optionally for an employer, in zero or more roles, for a period.
  • An Engagement is a Company working at a Workplace for the Company that contracted it. Engagements form the subcontracting network.
  • A Decision is Dockt’s result for one Assignment or Engagement. Decisions never change; Dockt creates a new one when the result changes.
  • An Outcome records what your team decided after reading a Decision.

Documents and registry results belong to the Person or Company they describe. Upload a worker’s passport once; Dockt can use it for their work at multiple Workplaces. Evidence still has to match each Assignment’s requirements, including its employer and dates.

  1. Create an API key for your Account.
  2. Write a Policy and create a Workplace that uses it.
  3. Register a webhook endpoint for decision.created.
  4. Create an Assignment when a worker is announced for a Workplace. Dockt creates the Person and the employer from the details you send.
  5. Upload the worker’s documents to the Person.
  6. Receive decision.created, read the Decision, and act on it.
  7. Upload missing documents or send missing values. Each change can create a new Decision.
  8. Optionally record an Outcome with your team’s own verdict.

Dockt keeps Decisions current while work is open. When a document is about to expire, a registry answers differently, or the Policy changes, Dockt evaluates the work again and sends decision.created if the result changed.

A Decision’s result is compliant, incomplete, review_required or non_compliant. Its requirements list every rule that applies, whether it is met, which evidence it used, and what would satisfy it when it isn’t. Its findings list issues that aren’t a single requirement, and its input_requests list the values Dockt still needs.

Use result to route the work. Use the requirements and findings to explain it and to ask for what is missing.