Skip to main content

Interface: WebhookContext

Defined in: packages/agentos/src/io/channels/telephony/types.ts:401

Raw webhook context passed to provider verification.

Encapsulates everything a provider needs to verify a webhook's authenticity and parse its payload, without coupling to any specific HTTP framework (Express, Fastify, Koa, etc.).

Properties​

body​

body: string | Buffer

Defined in: packages/agentos/src/io/channels/telephony/types.ts:409

Raw request body (string or Buffer).


headers​

headers: Record<string, string | string[] | undefined>

Defined in: packages/agentos/src/io/channels/telephony/types.ts:407

HTTP headers.


method​

method: string

Defined in: packages/agentos/src/io/channels/telephony/types.ts:403

HTTP method (usually POST).


parsedBody?​

optional parsedBody: Record<string, string>

Defined in: packages/agentos/src/io/channels/telephony/types.ts:411

Parsed body (for providers that need form-encoded data).


url​

url: string

Defined in: packages/agentos/src/io/channels/telephony/types.ts:405

Full request URL (used for signature verification).