Get the credential's context
Returns the company, the user and the access level the credential in this request acts with, plus the web app origin for deep links. Call it once to learn which company an API key is bound to before sending `x-company-id`.
Returns the company, the user and the access level the credential in this request acts with, plus the web app origin for deep links. Call it once to learn which company an API key is bound to before sending x-company-id.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Header Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Response Body
application/json
curl -X GET "https://example.com/v1/public-api-keys/context"{ "accessLevel": "READ", "appBaseUrl": "string", "company": { "id": "string", "name": "string" }, "user": { "email": "string", "id": "string", "name": "string" }}