API Public API
JSON response, up to 100 items per page.
Every request needs an access token in the X-API-Key header, with read permission for the API group.
Sign in and issue a token in API Manage.
Tokens are valid for 1 year.
GETTING STARTED
How to authenticate and call the API.
1. Issue an access token
Sign in and open API Manage from the account menu.
Enter a token name, choose Read / Write per API group, and issue the token.
Copy it right away: the token is shown only once. Tokens start with env_ and are valid for 1 year from issue.
2. Send the token in the X-API-Key header
Put the token in the X-API-Key request header. Query strings and the Authorization header are not accepted.
3. Pagination
List APIs take page and paginate_by (max 100). Responses include
page, paginate_by, total_pages, total_count and the items in data.
An invalid page number returns page 1.
4. Response codes
| Code | Meaning |
|---|---|
200 | Success. |
401 | Token is missing, invalid, revoked or expired. The message includes the link to issue a new token. |
403 | The token has no permission for this API group, or the token or API group was suspended by the administrator. |
404 | The requested item (for example a subject ID) was not found. |
Error responses are JSON with a message in detail, for example:
5. Keep your token secret
- Call the API from your server, not from browser JavaScript. Anyone can read a token embedded in a web page.
- Store the token in an environment variable or secret store, not in source code.
- Give each token only the groups and permissions it needs.
- If a token leaks, revoke it in API Manage right away and issue a new one.
API LIST
ENVISAGER MUSEUM
Artworks of the Envisager Museum collection (same data as the ENVISAGER MUSEUM page).
Displayed artworks of art group 1, ordered by unsold first, then newest work year.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
page |
int | No | Page number (default 1, invalid values fall back to 1) |
paginate_by |
int | No | Items per page (max 100) |
genre |
string | No | Exact genre match (values in filters.genre) |
storage |
string | No | Exact original storage match (values in filters.storage) |
artist |
string | No | Exact artist name match (values in filters.artist) |
q |
string | No | Keyword search in artwork name and description |
physical_status |
string | No | Original artwork status: ARCHIVED, LISTED (for sale) or SOLD |
Response
Example
LTIK COLLECTION
Artworks of the LTIK collection (same data as the LTIK page).
Displayed artworks of art group 14. Same parameters and response as the Envisager Museum artwork list.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
page |
int | No | Page number (default 1, invalid values fall back to 1) |
paginate_by |
int | No | Items per page (max 100) |
genre |
string | No | Exact genre match (values in filters.genre) |
storage |
string | No | Exact original storage match (values in filters.storage) |
artist |
string | No | Exact artist name match (values in filters.artist) |
q |
string | No | Keyword search in artwork name and description |
physical_status |
string | No | Original artwork status: ARCHIVED, LISTED (for sale) or SOLD |
Response
Example
ENVISAGER CLUB
Token subjects and works of the Envisager Club collection (same data as the ENVISAGER CLUB page).
Club subjects with the number of displayed works and a cover image.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
page |
int | No | Page number (default 1, invalid values fall back to 1) |
paginate_by |
int | No | Items per page (max 100) |
search_keyword |
string | No | Keyword search in subject name |
Response
Example
Displayed Token works of one subject. subject_id is data[].id of the subject list.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
subject_id |
int (path) | Yes | Subject ID from the subject list |
page |
int | No | Page number (default 1, invalid values fall back to 1) |
paginate_by |
int | No | Items per page (max 100) |