Verify API Key
/whoamiVerify an API Key and return the current account identifier and API service version.
Send Authorization: Bearer <API_KEY> in the request headers. Which resources an API Key can reach is determined by its current authorization scope.
Request
Base URL: https://api.bluehola.com
Response
| Status | Description |
|---|---|
200 | OK |
4xx | Client error |
200 response schema
{
"type": "object",
"additionalProperties": true,
"required": [
"tenantId",
"customerEntityId",
"platformVersion"
],
"properties": {
"tenantId": {
"type": "string",
"description": "The account identifier this API Key belongs to"
},
"customerEntityId": {
"type": ["string", "null"],
"description": "The customer entity ID bound to a customer API Key; null for other credentials. Use it to filter Business Portfolio, WABA and phone number lists."
},
"platformVersion": {
"type": "string",
"description": "The API process version that handled this request"
}
}
}
For the common error envelope and how to handle it, see Error Codes.
Notes
This is a side-effect-free credential check. tenantId confirms which account the current API Key belongs to, and platformVersion indicates only the current API process version. The response may carry additional diagnostic fields; customer integrations should not rely on them to make authorization decisions.
For customer Keys, customerEntityId identifies the customer entity to pass when listing Business Portfolios, WABAs or phone numbers. It is null for other credentials.