api:customer:imageauth
Table of Contents
API : Customer : ImageAuth
Introduction
This request is sent by image servers to validate if an image may be served to the user.
Request
| URL | https://api.telecomx.dk/customer/CUSTOMER_ID/imageauth/IMAGE_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) |
| IMAGE_ID | Id of the image (24 hex-char string) | |
| Query | token | User token for authorization |
Query example
https://api.telecomx.dk/customer/1234567890ABCDEF12345678/imageauth/12345678901234567890AAAA?token=<TOKEN>
Response
| Json object | ||
|---|---|---|
| access | Boolean | True when access is granted |
Example
{ "access": true }
Errors
| Error code | Message | Description |
|---|---|---|
| 404 | token | Token is missing |
| 422 | customer | Customer id is invalid |
| 422 | image | Image id is invalid |
| 401 | authentication_required | Token is invalid or expired |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/customer/imageauth.txt · Last modified: by Mikkel Meerwaldt Jørgensen