/identityRequired scope: any active API keyIdentity and active scopes
The simplest API key test. Returns the organisation name, API version and scopes assigned to the key.
Parameters
No parameters.
Ordering
This endpoint is not paginated and accepts no sorting parameter.
Important
- Use it after creating or rotating an API key to confirm the organisation and permissions.
- api_version is v1.
curl request
curl --silent --show-error \
--header "Authorization: Bearer $NEXTRIV_API_KEY" \
--header 'Accept: application/json' \
'https://api.nextriv.app/api/external/v1/identity'JSON response
{
"api_version": "v1",
"organization_name": "ACME",
"scopes": [
"devices:read",
"measurements:read"
]
}