---
title: "Export a takeoff (csv, xlsx, json)"
method: POST
path: "/exports"
tags: ["Exports"]
---

# Export a takeoff (csv, xlsx, json)

`POST /exports`

## Request

- Base URL: `https://api.aginera.ai/partner/v1`
- URL: `https://api.aginera.ai/partner/v1/exports`
- Auth: OAuth 2 (authorization code, authorization URL `https://auth.aginera.ai/oauth/authorize`, token URL `https://auth.aginera.ai/oauth/token`; client credentials, token URL `https://login.microsoftonline.com/65f567a9-6e6a-4f81-863c-aea4ece1f8eb/oauth2/v2.0/token`, scopes: `exports:create`)

## Headers

- `Idempotency-Key` string: Replays within 24 hours return the original response.

## Request body

- ExportCreate
  - `takeoff_id` string
  - `estimate_id` string
  - `format` 'csv' | 'xlsx' | 'json' | 'accubid' | 'mccormick' | 'intellibid' | 'bluebeam_ost' | 'procore', required
  - `external_ref` string: Your own identifier for this resource; unique per tenant.
  - `options` object
    - `accepted_only` boolean
    - `include_evidence` boolean
    - `units` 'imperial' | 'metric' | 'as_drawn'

## Response `202`

OK

- Export
  - `id` string, required
  - `takeoff_id` string
  - `format` 'csv' | 'xlsx' | 'json' | 'accubid' | 'mccormick' | 'intellibid' | 'bluebeam_ost' | 'procore', required
  - `status` 'queued' | 'processing' | 'completed' | 'failed' | 'cancelled', required
  - `external_ref` string, nullable, required
  - `credits_charged` number, required
  - `download` object
    - `url` string, uri, required
    - `filename` string, required
    - `expires_at` string, date-time, required
  - `failure` Failure
    - `code` 'document_unreadable' | 'unsupported_content' | 'no_pages_selected' | 'capacity' | 'cancelled' | 'internal', required
    - `message` string, required
  - `created_at` string, date-time, required
  - `completed_at` string, date-time, nullable, required

## Other responses

- `default`: Error (RFC 7807)

---

[API](https://skmtc.dev/aginera/apis/aginera-takeoff-estimation-api.md) · [All operations](https://skmtc.dev/aginera/apis/aginera-takeoff-estimation-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aginera/apis/aginera-takeoff-estimation-api/revisions/39115958da1e?raw)
