API ReferenceDocument types
List accessible 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)
Default
1Range
1 <= valuelimit?integer
Number of results per page (maximum 100)
Default
20Range
1 <= value <= 100Response 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"
}