exports

Create a CSV export

Unified export endpoint. Small requests return 200 text/csv inline; large requests create a durable async job and return 202 + status url. Idempotency-Key is optional but recommended: send the same key on every retry of a create so a lost response can't spawn a duplicate job (the client can't know the delivery mode in advance). Omit it and the request still succeeds, just without that retry-safety.

post/{org_slug}/place_enrichment/exports

Request

  • Base URL: https://api.repromptai.com/v1
  • URL: https://api.repromptai.com/v1/{org_slug}/place_enrichment/exports
  • Auth: HTTP bearer

Path parameters

org_slugstring nullable required

Headers

Idempotency-Keystring nullable
apiKeystring nullable

Request body

schema_version1 | 2

CSV contract version; 1 is legacy.

prune_empty_columnsboolean

Remove entirely blank columns across the full export.

batch_idsstring[] required

Batch IDs to export (must be owned by the org).

run_in_backgroundboolean

Skip the inline CSV entirely and always create a durable async job (202). Use when you would rather poll than hold a request open — the sync path has to generate the whole file before it can answer.

Example request

{
  "batch_ids": [
    "batch_2024_03_15_123456",
    "batch_2024_03_16_654321"
  ]
}

Response

Sync delivery: the CSV is streamed back inline (small exports under the size gate).

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.