Skip to Content
WhatsApp MCPAPI Reference (generated)MetaClientInterfacesMetaRequestOptions

whatsapp-mcp


whatsapp-mcp / meta/client / MetaRequestOptions

Interface: MetaRequestOptions

Defined in: src/meta/client.ts:29 

Options for a single Meta API call.

Properties

accessToken

readonly accessToken: string;

Defined in: src/meta/client.ts:33 

Bearer access token for the phone number’s WABA.


body?

readonly optional body?: unknown;

Defined in: src/meta/client.ts:35 

Request body — will be JSON-encoded. Omit for GET.


maxAttempts?

readonly optional maxAttempts?: number;

Defined in: src/meta/client.ts:41 

Optional override for the retry attempt count (for tests).


method?

readonly optional method?: "GET" | "POST" | "DELETE";

Defined in: src/meta/client.ts:37 

HTTP method; defaults to POST when body is set, GET otherwise.


path

readonly path: string;

Defined in: src/meta/client.ts:31 

Meta API path after /v23.0/, e.g. 12345/messages.


timeoutMs?

readonly optional timeoutMs?: number;

Defined in: src/meta/client.ts:39 

Optional override for the per-attempt timeout.