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 Bearer token for API authentication
In: header
Query Parameters
Search by name, code, or description of the document type
Page number (starts at 1)
11 <= valueNumber of results per page (maximum 100)
201 <= 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"
}Get document type by ID GET
Retrieves details of a specific document type based on user permissions
Update a document type PUT
Updates an existing document type. All fields are optional. **Permissions:** - Non-admin users can only update document types they created - Non-admin users cannot set `isPublic` to `true` - `codeType` is immutable and will be ignored if provided When `isDraft` changes, the `status` field is automatically updated. A version snapshot is created with the state before the update.