Skip to main content

@dialstack/sdk-dev / server/src / CallListParams

Interface: CallListParams

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

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/server/src/index.ts:989

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


direction?​

TypeScript
optional direction?: CallDirection;

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


expand?​

TypeScript
optional expand?: "did"[];

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

Related resources to include inline. Supported values: did.


from_date?​

TypeScript
optional from_date?: string;

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

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


from_number?​

TypeScript
optional from_number?: string;

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

Caller's phone number (exact match).


limit?​

TypeScript
optional limit?: number;

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


page?​

TypeScript
optional page?: string;

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


status?​

TypeScript
optional status?: CallStatus;

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


to_date?​

TypeScript
optional to_date?: string;

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

Return calls started before this date (ISO 8601).


to_number?​

TypeScript
optional to_number?: string;

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

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


user_id?​

TypeScript
optional user_id?: string;

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