API ReferenceAuthentication
Who this token acts as
Returns what the token acts as: the credential and its effective scopes, the connected user with their permissions, and the company.
GET
/api/v1/meReturns what the token acts as: the credential and its effective scopes, the connected user with their permissions, and the company. Any valid token may call it.
Authorization
oauth2 AuthorizationBearer <token>
OAuth 2.0 client credentials. Post the credential's client_id and client_secret form-encoded to the token URL, then send Authorization: Bearer <access_token>. Scopes narrow the connected user's permissions, never grant: a resource is readable only when the user holds the permission the scope narrows and the token carries the scope.
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/me" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN"{ "credential": { "clientId": "alt_0123456789abcdef01234567", "name": "Payroll sync", "scopes": [ "time:read", "time:read.financial", "metrics:read" ] }, "user": { "name": "Ron Reviewer", "email": "ron.reviewer@example.com", "permissions": [ "Case.View", "Financial", "Reviewer.ViewMetrics", "ReviewerType.View", "TimeEntries.View" ] }, "company": { "name": "Acme Legal" }}
