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 | Any user whose token grants read access to the customer (the token is passed in the query, not in the Authorization header). | |
| 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=<TOKEN>
| Json object | ||
|---|---|---|
| access | Boolean | True when access is granted |
{ "access": true }
| Error code | Message | Description |
|---|---|---|
| 404 | token | Token is missing |
| 422 | customer | Customer id is invalid |
| 422 | file | Document id is invalid |
| 401 | authentication_required | Token is invalid or expired |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |