API Reference
WABA and webhooks

Get a WhatsApp Business Account

GET/{waba-id}
Base URL: https://whatsapp.mimicr.dev/v24.0 · provider: https://graph.facebook.com/v24.0

Returns the WhatsApp Business Account. With fields=analytics.start(<unix>).end(<unix>).granularity(DAY) it returns message analytics (sent and delivered). In Mimicr, analytics is partial: one data point with the totals of the period.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

waba-idstringrequired

WhatsApp Business Account (WABA) ID.

Example: "313255174969123"

Query parameters

fieldsstring

Comma-separated fields, or the analytics field expansion.

Responses

200WABA.
idstring

WABA ID.

namestring

Business name.

timezone_idstring

Time zone ID.

message_template_namespacestring

Template namespace.

account_review_statusstring

Account review status.

business_verification_statusstring

Business verification status.

currencystring

Currency of the account.

countrystring

Country.

ownership_typestring

Ownership type.

analyticsobject

Returned when fields=analytics… is requested.

Show child attributes
phone_numbersstring[]
granularitystring

Granularity.

data_pointsobject[]
Show child attributes
startinteger

Start, Unix timestamp.

endinteger

End, Unix timestamp.

sentinteger

Messages sent.

deliveredinteger

Messages delivered.

400WABA not found or of another business (100, subcode 33).
errorobjectrequired
Show child attributes
messagestringrequired

Human-readable error message, for WhatsApp errors prefixed with (#code).

typestringrequired

Exception type.

Example: "OAuthException"
codeintegerrequired

Error code. See the error codes reference.

error_subcodeinteger

More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).

error_user_titlestring

Title meant to be shown to the end user.

error_user_msgstring

Message meant to be shown to the end user.

error_dataobject
Show child attributes
messaging_productstring

Always whatsapp.

detailsstring

Details about the error.

fbtrace_idstringrequired

Trace ID. Include it when you contact support.

401Missing, invalid or revoked access token (190; a revoked token adds error_subcode: 460). A missing token answers 400 with code 104.
errorobjectrequired
Show child attributes
messagestringrequired

Human-readable error message, for WhatsApp errors prefixed with (#code).

typestringrequired

Exception type.

Example: "OAuthException"
codeintegerrequired

Error code. See the error codes reference.

error_subcodeinteger

More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).

error_user_titlestring

Title meant to be shown to the end user.

error_user_msgstring

Message meant to be shown to the end user.

error_dataobject
Show child attributes
messaging_productstring

Always whatsapp.

detailsstring

Details about the error.

fbtrace_idstringrequired

Trace ID. Include it when you contact support.