API ReferenceDocument types

List accessible document types

GET
/api/document-types

Retrieves the list of document types the user has access to. Includes:

  • Documents created by the user
  • Documents from the user's organizations
  • Public published documents (isPublic=true and isDraft=false)

Supports pagination and search.

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Query Parameters

search?string

Search by name, code, or description of the document type

page?integer

Page number (starts at 1)

Default1
Range1 <= value
limit?integer

Number of results per page (maximum 100)

Default20
Range1 <= value <= 100

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://app.docutray.com/api/document-types"
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "codeType": "string",
      "description": "string",
      "isPublic": true,
      "isDraft": true,
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "total": 0,
    "page": 0,
    "limit": 0
  }
}
{
  "error": "Invalid pagination parameters",
  "details": [
    {}
  ]
}
{
  "error": "Invalid API key"
}
{
  "error": "Insufficient permissions"
}
{
  "error": "Rate limit exceeded"
}
{
  "error": "Error processing request"
}