Meta¶
Check the credentials¶
GET /api/1/auth/test
Answers with what the credentials of the request grant, whatever their scopes, and with 401 when
they are missing, unknown, revoked or expired. credential_scopes is null for a session, which is
not limited by scopes, and user is the user the request acts as, if any.
Example
curl -X GET \
-H "Authorization: Api-Key $ATFINITY_API_KEY" \
https://your-tenant.atfinity.app/api/1/auth/test
Response 200
The tenant, the kind of credential, what it may do and whom it acts as.
api_key_name(string, nullable)credential_scopes(array, nullable)credential_type(string)expires_at(string, date-time, nullable)oauth_client_id(string, nullable)tenant_id(integer)user(string, nullable)
{
"api_key_name": "Monitoring",
"credential_scopes": [
"cases:read"
],
"credential_type": "api_key",
"expires_at": null,
"oauth_client_id": null,
"tenant_id": 1,
"user": null
}
Get the application version¶
GET /api/1/version
Without credentials, it answers with software_version alone while the installation shows its
version on the login page (LOGIN_DISPLAY_VERSION), and with 401 otherwise. With a session, an API
key or an OAuth token, it answers with conf_version and software_version. To check credentials,
use GET /api/1/auth/test.
Example
curl -X GET \
-H "Authorization: Api-Key $ATFINITY_API_KEY" \
https://your-tenant.atfinity.app/api/1/version
Response 200
The live configuration version of the tenant and the version of the application.
conf_version(integer)software_version(string)