Browse the docs

Account

Check that your key works and discover the WhatsApp numbers you can send from.

Base address: https://app.ezreach.in/api/v1

GET/api/v1/account

Get account

Permission:account:read

Returns the workspace the API key belongs to, its WhatsApp accounts (default first) and the key itself. Use the account ids as accountId when sending.

Request

curl "https://app.ezreach.in/api/v1/account" \
  -H "Authorization: Bearer $EZREACH_API_KEY"

Response

200 OK
{
  "data": {
    "workspace": {
      "id": "cm4w0rksp4c30001a1b2c3d4e",
      "name": "Acme Store",
      "timezone": "Asia/Kolkata",
      "currency": "USD"
    },
    "accounts": [
      {
        "id": "cm4acc0unt0001v7w8x9y0z1a",
        "name": "Main number",
        "mode": "CLOUD",
        "phoneNumber": "+919800000000",
        "displayName": "Acme Store",
        "status": "CONNECTED",
        "isDefault": true
      }
    ],
    "apiKey": {
      "id": "cm4k3y000001q2w3e4r5t6y7u",
      "name": "Backend sync",
      "prefix": "wak_3f9A1b2C"
    }
  }
}