Maintenance Admin API

Get the version of the installation

GET /api/v1/whoami

The user of the token and the installation it talks to. Any token may call it.

Responses
200 The user and the installation.
401 The token is missing or wrong (Unauthenticated.), or its user may not act on this object (Unauthorized). Without the Accept: application/json header, a missing or wrong token answers with a redirect to the sign-in page instead.
Get the version of the installation
1 2 3
curl 'https://your-domain/api/v1/whoami' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
Response
{
    "user": {
        "id": 1,
        "email": "admin@example.com",
        "is_admin": true
    },
    "instance": {
        "url": "https://your-domain",
        "version": "4.2.0-p180"
    }
}