/api/v1/meIdentify the calling credential.
Identify the calling credential.
Returns the workspace the API key or OAuth token is bound to and the
scopes it holds. Use it to check a key a user pasted: a valid key answers
200, a missing or revoked one answers 401. It needs no scope.
tenant_type is hyper for a workspace on the shared app and
dedicated for a workspace with its own subdomain. workspace_id is set
only for hyper. workspace_name is null when the name cannot be
resolved. A wildcard scope such as read.* comes back expanded: one
read.<object slug> entry for each object the key's owner can read.
Errors:
401— the credential is missing, invalid, expired, or not bound to a workspace.429— the API key exceeded its per-minute request limit.
Response 200:
{
"status": 200,
"message": "Success",
"data": {
"workspace_name": "Acme Sales",
"workspace_id": 4821,
"tenant_type": "hyper",
"scopes": ["read.contacts", "create.contacts", "update.contacts"]
}
}
Send request
Use the documented inputs to call this endpoint directly.
Responses
Successful response
{
"workspace_name": "string",
"workspace_id": "",
"tenant_type": "string",
"scopes": "string"
}Human-readable workspace/tenant name; null if it can't be resolved.
The hyper workspace id; null for a dedicated tenant.
The credential's granted route-name scopes (e.g. ['read.contacts']).
Bad request
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Unauthorized
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Internal server error
{
"status": 1,
"message": "string",
"code": "string",
"data": {}
}The HTTP status code of the response.
What went wrong. Several validation messages are joined with ", ".
A stable, machine-readable reason. Only some errors set it.
Extra detail about the error. Only some errors set it.
Powered by heyo-docs