---
title: "Export the partition's telephone number inventory as csv, asynchronously"
method: GET
path: "/v2/partition/{partitionId}/telephonenumber/export_2"
tags: ["Telephone Number"]
---

# Export the partition's telephone number inventory as csv, asynchronously

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

## Request

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

Use to retrieve a report on the partition's telephone number inventory.  Inventory from subpartitions is also included.<br/><br/> Note that telephone numbers currently assigned are NOT part of the inventory and are not listed in this report.<br/><br/> This version is asynchronous, and will return a job object.  <span hidden><a href="jobs.html">Here</a> is the explanation about how to use the API to monitor the job and get the output.<br/><br/> Please see <a href="tnInventory.html">here</a> for more information about how the CSV is formatted.</span>

## Path parameters

- `partitionId` string, required

## 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 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)
