Skip to main content

Interface: WebhookContext

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

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/channels/telephony/types.ts:405

Raw request body (string or Buffer).


headers

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

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

HTTP headers.


method

method: string

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

HTTP method (usually POST).


parsedBody?

optional parsedBody: Record<string, string>

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

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


url

url: string

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

Full request URL (used for signature verification).