Get account#
Returns the business your API key belongs to, the key itself and your credit balance. It's the quickest way to check a key works.
GET
https://api.waconnect.ai/v1/mecurl https://api.waconnect.ai/v1/me \
-H "Authorization: Bearer wc_live_your_key"{
"business": { "id": "01a0e9b2-4f1d-7c3a-9e8b-1a2b3c4d5e6f", "name": "Sunset Dental" },
"key": { "name": "Production CRM", "prefix": "wc_live_8f3k", "numbers": "all" },
"credits": { "balanceCents": 4250, "balanceUsd": "42.505" }
}Response
FieldTypeRequirementDescription
business.idstringrequired- Your business id.
business.namestringrequired- Your business name.
key.namestringrequired- The name you gave this API key.
key.prefixstringrequired- The first characters of the key, to tell keys apart.
key.numbers"all" | string[]required- The numbers this key can use: "all", or the ids of the numbers it's limited to. See Limit a key to some numbers in Authentication.
credits.balanceUsdstringrequired- Your exact balance in US dollars, as a string so nothing is rounded: "42.505" is $42.505, enough for 8,501 text messages.
credits.balanceCentsintegerrequired- The same balance rounded down to whole cents: 4250. Use balanceUsd for the exact amount.