Account info
Returns the name of the WhautoChat account your API key belongs to and the email of its owner. It is the simplest request you can make, so use it to check that your API host and key work before you build anything else. See the REST API overview for authentication.
The account object
Attributes
namestringYour account name
ownerEmailstring | nullEmail of the earliest created active team member with the Owner or Administrator role.
null if there is no active Owner or Administrator.The account object
{
"name": "Lopez Dental Studio",
"ownerEmail": "[email protected]"
}
Get account info
GET
/v1/account-infoReturns the account linked to the API key. There are no query parameters and no body.
200 OK: the account object.
Errors
| Status | Body | When |
|---|---|---|
401 | {"message":"Unauthorized"} | The x-api-key header is missing, invalid or the key was deleted |
404 | {"error":"Account not found"} | The account linked to the key no longer exists |
500 | {"error":"Could not retrieve Account"} | Something went wrong on our side. Retry, and contact support if it continues. |
Request
curl "https://api.whauto.chat/v1/account-info" \
-H "x-api-key: $WHAUTOCHAT_API_KEY"
Response 200
{
"name": "Lopez Dental Studio",
"ownerEmail": "[email protected]"
}