Skip to main content
GET
Returns the company and user associated with the token

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

with_user_id
boolean
default:false

Whether to include the token's user id on the response.

Response

200 - application/json

Returns the company and user associated with the token.

The company behind the request token, and the user when one was asked for.

Unlike /whoami, this endpoint accepts app installation and client-credential tokens, so it is the way a caller holding one of those resolves its own company.

id
integer
required

Unique identifier of an existing company.

Example:

7

user_id
integer

The user id. Only present when the request sets with_user_id=true.