This request is sent by document servers to validate if a document may be served to the user.
| URL | https://api.telecomx.dk/customer/CUSTOMER_ID/docauth/DOC_ID | |
|---|---|---|
| Method | GET | |
| Access level | VIEWER, MANAGER, OWNER, RESELLER, RESELLER_ADMIN, ADMIN | |
| Param | CUSTOMER_ID | Id of the customer (24 hex-char string) |
| DOC_ID | Id of the document (24 hex-char string) | |
| Query | token | User token for authorization |
https://api.telecomx.dk/customer/1234567890ABCDEF12345678/docauth/12345678901234567890AAAA?token=sh42uei0hi2hiofe0hfeio043034hj0fniirw42fei0inof
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 404 | customer | Customer not found |
| 404 | doc | Document not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |