Skip to main content

@dialstack/sdk / server / CallListParams

Interface: CallListParams

Defined in: sdk/src/server/index.ts:692

Filters accepted by GET /v1/calls.

These names mirror what the handler actually parses, which is not always what the reference documents — an unrecognized filter is ignored rather than rejected, so a wrong name returns a 200 with unfiltered results. Verify against the handler before adding one here.

Properties

did?

TypeScript
optional did?: string;

Defined in: sdk/src/server/index.ts:697

Filter by the phone number (DID) associated with the call, by its id.


direction?

TypeScript
optional direction?: CallDirection;

Defined in: sdk/src/server/index.ts:698


expand?

TypeScript
optional expand?: "did"[];

Defined in: sdk/src/server/index.ts:709

Related resources to include inline. Supported values: did.


from_date?

TypeScript
optional from_date?: string;

Defined in: sdk/src/server/index.ts:705

Return calls started on or after this date (ISO 8601).


from_number?

TypeScript
optional from_number?: string;

Defined in: sdk/src/server/index.ts:700

Caller's phone number (exact match).


limit?

TypeScript
optional limit?: number;

Defined in: sdk/src/server/index.ts:693


page?

TypeScript
optional page?: string;

Defined in: sdk/src/server/index.ts:694


status?

TypeScript
optional status?: CallStatus;

Defined in: sdk/src/server/index.ts:703


to_date?

TypeScript
optional to_date?: string;

Defined in: sdk/src/server/index.ts:707

Return calls started before this date (ISO 8601).


to_number?

TypeScript
optional to_number?: string;

Defined in: sdk/src/server/index.ts:702

The call's destination (exact match) — as dialed or as routed.


user_id?

TypeScript
optional user_id?: string;

Defined in: sdk/src/server/index.ts:695