---
title: "Export as CSV telephone number status search"
method: GET
path: "/v2/partition/{partitionId}/telephonenumber/exportstatussearch_2"
tags: ["Telephone Number"]
---

# Export as CSV telephone number status search

`GET /v2/partition/{partitionId}/telephonenumber/exportstatussearch_2`

## Request

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

Use to export the searched serviceActivationEvents as a CSV file.   <span hidden>For details on the report format, see <a href="tnStatus.html">here.</a></span>

## Path parameters

- `partitionId` string, required

## Query parameters

- `accountId` string
- `dateType` 'FOCDate' | 'UpdatedDate' | 'CreatedDate'
- `endDate` string
- `eventType` string[]
- `includeSubTns` boolean
- `startDate` string
- `statusType` string[]
- `telephoneNumber` string

## Response `202`

Successful operation

- 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 parameters supplied
- `401`: Unauthorized
- `404`: Entity 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)
