---
title: "Export open/broken promises as CSV or JSON — hotel / PBX-provider unclosed-promise sales list."
method: GET
path: "/v1/pbx/promises/export"
tags: ["PBX Search"]
---

# Export open/broken promises as CSV or JSON — hotel / PBX-provider unclosed-promise sales list.

`GET /v1/pbx/promises/export`

## Request

- Base URL: `https://api.temsor.com`
- URL: `https://api.temsor.com/v1/pbx/promises/export`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

GET /v1/pbx/promises/export?status=open|closed&format=csv|json. CSV/JSON include closed_at, close_note, path crumbs. Scoped by x-temsor-pbx-key when set. Idle $0.

**Credits per call:** 1 · **Operation id:** `pbx_promises_export`

In the GET form every field is a query parameter; object and array fields are JSON-encoded.

## Query parameters

- `status` 'open' | 'kept' | 'broken' | 'unknown' | 'all' | 'closed': Promise status filter; closed = kept|broken. Sales demo uses open.
- `format` 'csv' | 'json': Export format.

## Response `200`

Success

- object
  - `ok` unknown, required
  - `data` object, required
    - `status` string, required
    - `format` 'csv' | 'json', required
    - `pbx_id` string, nullable, required
    - `count` integer, required
    - `promises` object[], required
      - `id` string, required
      - `call_id` string, required
      - `text` string, required
      - `who` string, required
      - `when_iso` string, nullable, required
      - `status` 'open' | 'kept' | 'broken' | 'unknown', required
      - `ext` string, nullable, required
      - `pbx_id` string, required
      - `competitor` string, nullable
      - `emotion` string, nullable
      - `transfer_count` integer, required
      - `path` string
      - `path_tr` string
      - `stuck_at_ext` string, nullable
      - `graph` object
      - `markers` string[]
      - `confidence` string
      - `closed_at` string, nullable
      - `close_note` string, nullable
    - `csv` string, nullable, required
    - `note` string, required
  - `meta` object
    - `credits` integer
    - `cached` boolean
    - `requestId` string
    - `durationMs` integer

## Other responses

- `400`: Error
- `401`: Error
- `402`: Error
- `429`: Rate limit exceeded — wait `Retry-After` seconds. The RateLimit headers are sent here too.

---

[API](https://skmtc.dev/temsor/apis/temsor-api.md) · [All operations](https://skmtc.dev/temsor/apis/temsor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/temsor/apis/temsor-api/revisions/19702107e15a?raw)
