---
title: "CDR record search"
method: GET
path: "/v2/partition/{partitionId}/account/{accountId}/cdrsearch/csv"
tags: ["CDRs"]
deprecated: true
---

# CDR record search

`GET /v2/partition/{partitionId}/account/{accountId}/cdrsearch/csv`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/cdrsearch/csv`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/cdrsearch/csv/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Use to search for CDR records

## Path parameters

- `accountId` string, required
- `partitionId` string, required

## Query parameters

- `callCategory` string[]
- `callFlagType` string[]
- `callType` string[]
- `dialedNumber` string
- `endDate` string, required
- `endTime` string
- `firstResultIndex` integer
- `maxResult` integer
- `minCost` number, double
- `origNumber` string
- `sort` 'COST' | 'CALL_LENGTH' | 'DATE'
- `sortOrder` 'ASC' | 'DESC'
- `startDate` string, required
- `startTime` string
- `termNumber` string

## Response `200`

Successful operation

## Other responses

- `400`: Invalid
- `404`: Not found

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/7223246c352c?raw)
