Get a token for a specific user

Issue a token that acts as a specific user at a partner or account. Use this to see exactly what one person sees, for example to debug a permissions question. Send the user_id of the user to act as, or the company_id of an account to act as its owner. Returns a token that acts as that user, with the same sign-in details a login returns (user, company, theme_options, white_label).

Prerequisites: a bearer token, and the user's id (from List users) or the account's id (from List accounts).

Authentication: Partner or Account token. The user must be inside your own account tree: a Partner token reaches users at your partner and in any account or location under it, an Account token users at your account and its locations; anyone else returns 403. A token from this call remembers who started the session: with it you can act as anyone inside that original user's tree, or switch back to the original user (you then get a normal token again), but never outside it. Inside your own company you can only act as someone who ranks below you; users further down your tree aren't limited by rank.

Rate limit: none.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
Defaults to 3011

The user to act as. Must exist. Required unless you send company_id; leave it out (not null) when you send company_id.

integer
Defaults to 5994

An account to act as its owner. Must exist. Required unless you send user_id; leave it out (not null) when you send user_id. If you send both, user_id is used.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json