自媒体/自媒体已解锁12

REST API

Complete reference for the DocKit REST API endpoints.

Base URL

All API requests are made to the following base URL:

HTTP
https://api.dockit.dev/v3

Authentication

Authenticate by passing your API key in the Authorization header:

HTTP
GET /v3/projects HTTP/1.1
Host: api.dockit.dev
Authorization: Bearer dk_live_xxxxxxxxxxxx
Content-Type: application/json

Endpoints

  • GET /projects — List all projects in the authenticated account.
  • POST /projects — Create a new project.
  • GET /projects/:id — Retrieve a single project by ID.
  • PATCH /projects/:id — Update project metadata.
  • DELETE /projects/:id — Permanently delete a project.

Error Codes

CodeStatusMeaning
400Bad RequestInvalid request body or missing required fields.
401UnauthorizedMissing or invalid API key.
403ForbiddenAuthenticated user lacks permission.
404Not FoundResource does not exist.
429Too Many RequestsRate limit exceeded. Retry after the indicated delay.
500Server ErrorUnexpected error on our side.