Get document type by ID
Retrieves details of a specific document type based on user permissions
Authorization
ApiKeyAuth Bearer token for API authentication
In: header
Path Parameters
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"
}Check asynchronous conversion status GET
Retrieve the current status and result of an asynchronous conversion. **Status flow:** - `ENQUEUED` → `PROCESSING` → `SUCCESS` | `ERROR` **Polling recommendations:** - Poll every 2-3 seconds for active conversions - Stop polling when status is `SUCCESS` or `ERROR` - Maximum processing time: 60 minutes (auto-timeout)
List accessible document types GET
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.