API ReferenceDocument types

Get document type by ID

GET
/api/document-types/{id}

Retrieves details of a specific document type based on user permissions

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Path Parameters

id*string

Document type ID

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://app.docutray.com/api/document-types/string"
{
  "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"
  }
}
{
  "error": "Invalid document type ID"
}
{
  "error": "Invalid API key"
}
{
  "error": "Insufficient permissions"
}
{
  "error": "Document type not found"
}
{
  "error": "Rate limit exceeded"
}
{
  "error": "Error processing request"
}