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

# CDR record search

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

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/cdrsearch/csv_2`
- 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_2/get.ts> (a function with typed inputs; its response is checked against the schema)

Use to search for Call Details Records.

## Path parameters

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

## Query parameters

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

## Response `202`

The asynchronous process has started. Use Asynchronous JOB Tracker API to check its status.

- Job
  - `id` string
  - `name` string
  - `userId` string
  - `status` 'PENDING' | 'IN_PROGRESS' | 'DONE' | 'FAILED'
  - `errors` JobError[]
    - `error` string
    - `lineNumber` integer
    - `column` string
    - `input` string
  - `inputKey` string
  - `outputKey` string
  - `start` string, date-time
  - `lastUpdated` string, date-time

## Other responses

- `400`: Invalid request parameters
- `401`: Unauthorized
- `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)
