---
updatedAt: 2026-06-25T23:24:42.000Z
agentTools:
  projectIndex: https://docs.delivr.ai/llms.txt
---

# Create an export

Creates an export and its destination atomically. The organization is taken from the API key; the `project_id` in the body must belong to it, as must the destination's `integration_id`. The export name must be unique within the project. For a `weekly` schedule, `run_day_of_week` is required.

Include `additional_destinations` to deliver to more than one destination from the start; each entry is the same destination shape as `destination` and is written in the same transaction. Only valid alongside `destination`; an export can have at most 5 destinations total, each on a different connection. Marketplace destinations cannot be combined with others, and a DelivrDSP destination can only be the export's first (primary) destination.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Exports",
    "description": "Create a scheduled export that delivers audience or event data to a saved integration (S3, DelivrDSP, email, Slack, HubSpot, Salesforce, or your own The Trade Desk advertiser).\n\nOne call creates the export and its destination together, so you never end up with an export that has nowhere to deliver. The export `query` selects what to send; the `destination` says where and in what shape, and references a saved integration by id (manage those under **Integrations**).\n\nAn export can deliver to up to 5 destinations. Add more at create time with `additional_destinations`, or add one to an existing export later with `POST /api/v1/exports/{id}/destinations`, and change one with `PUT /api/v1/exports/{id}/destinations/{destinationId}`. Each run is billed once for the data it produces, no matter how many destinations receive it; when an export's destinations use different products, the run is billed at the highest-priced one, for the largest record count any billable destination received. DelivrDSP and The Trade Desk deliveries are not billed as data. Delivr bills an audience sent to The Trade Desk per 1,000 impressions The Trade Desk serves on it.\n\n**Authentication:** organization API key (`X-Api-Key` + `X-Api-Secret`).\n\n**Base URL:** `https://api.delivr.ai`\n",
    "version": "1.0",
    "contact": {
      "name": "Delivr.ai Support",
      "url": "https://delivr.ai"
    }
  },
  "servers": [
    {
      "url": "https://api.delivr.ai",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": [],
      "ApiSecretAuth": []
    }
  ],
  "tags": [
    {
      "name": "Exports",
      "description": "Create, list, read, update, and delete exports. Create and update compose the export and its delivery destination together."
    }
  ],
  "paths": {
    "/api/v1/exports": {
      "post": {
        "operationId": "createExport",
        "tags": [
          "Exports"
        ],
        "summary": "Create an export",
        "description": "Creates an export and its destination atomically. The organization is taken from the API key; the `project_id` in the body must belong to it, as must the destination's `integration_id`. The export name must be unique within the project. For a `weekly` schedule, `run_day_of_week` is required.\n\nInclude `additional_destinations` to deliver to more than one destination from the start; each entry is the same destination shape as `destination` and is written in the same transaction. Only valid alongside `destination`; an export can have at most 5 destinations total, each on a different connection. Marketplace destinations cannot be combined with others, and a DelivrDSP destination can only be the export's first (primary) destination.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExportRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The created export, its primary destination, and any additional destinations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateExportResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid body or a failed validation: missing `project_id`/`name`/`query`/`destination`, a `project_id` or `integration_id` outside the key's organization, an invalid query or destination, an email destination with no recipients, an invalid schedule/date, `combine_output` with `parquet`, `lookback_days` outside `incremental` mode, more than 5 destinations total, two destinations on the same connection, or a marketplace destination combined with another destination.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key / secret."
          },
          "409": {
            "description": "An export with this name already exists in the project, or the export would deliver partner data whose price is not accepted or whose dataset is not enabled for the project (`partner_price_not_accepted`; `partners` lists the datasets to accept or enable in the dashboard).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Request body larger than 1 MiB."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Organization API key (`dlvr_` prefixed), created in the dashboard at `https://app.delivr.ai/{org_id}/settings/api-keys`. Must be paired with the `X-Api-Secret` header."
      },
      "ApiSecretAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Secret",
        "description": "Secret half of the organization API key, paired with `X-Api-Key`. Both headers are required on every request."
      }
    },
    "schemas": {
      "CreateExportRequest": {
        "type": "object",
        "required": [
          "project_id",
          "name",
          "query",
          "destination"
        ],
        "properties": {
          "project_id": {
            "type": "string",
            "format": "uuid",
            "description": "The project to create the export in. Must belong to the key's organization."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Export name, unique within the project."
          },
          "description": {
            "type": "string"
          },
          "query": {
            "$ref": "#/components/schemas/ExportQuery"
          },
          "record_limit": {
            "type": "object",
            "description": "Optional cap on the number of records delivered, and what to do when a run exceeds it. Refused on a `continuous` export, which delivers everything resolved in each window.",
            "properties": {
              "maxRecords": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000000
              },
              "failMode": {
                "type": "string",
                "default": "soft",
                "description": "What happens when the run has more records than `maxRecords`. `soft` delivers up to the limit and marks the run `partial`; `hard` checks the count first and delivers nothing, for when a truncated file is worse than no file.\n\nOmit it for `soft`. Any other value is refused with 400 rather than read as `soft`, so a misspelled `hard` fails the request instead of delivering the truncated file it was set to prevent.",
                "enum": [
                  "soft",
                  "hard"
                ]
              }
            }
          },
          "schedule": {
            "type": "string",
            "description": "Delivery cadence: `one_time`, `daily`, `weekly`, or `continuous`. `continuous` runs every 5 minutes and is accepted only for a pixel source with exactly one destination, a `webhook`; it takes no `run_time`. A pixel source's `webhook` destination requires it. See [Receive Website Visitors by Webhook](https://docs.delivr.ai/docs/recipe-receive-website-visitors-webhook).",
            "enum": [
              "one_time",
              "daily",
              "weekly",
              "continuous"
            ]
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the export runs on its schedule. Defaults to true."
          },
          "end_date": {
            "type": "string",
            "description": "Stop running after this date (`YYYY-MM-DD`, UTC)."
          },
          "run_time": {
            "type": "string",
            "description": "Time of day to run, `HH:MM`, in `run_timezone` (UTC when that is omitted). Not used by a `continuous` export."
          },
          "run_day_of_week": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6,
            "description": "Day to run a weekly export, in `run_timezone`: 0 = Sunday, 6 = Saturday. Required when `schedule` is `weekly`."
          },
          "run_timezone": {
            "type": "string",
            "description": "IANA time zone that `run_time` and `run_day_of_week` are local to, such as `America/New_York`. The export then runs at that local time all year, moving with daylight saving. Omit for UTC.",
            "example": "America/New_York"
          },
          "destination": {
            "$ref": "#/components/schemas/ExportDestination"
          },
          "additional_destinations": {
            "type": "array",
            "description": "Further destinations to write in the same transaction as `destination`. Only accepted alongside `destination`, and only on create; an export can have at most 5 destinations total, each on a different connection.",
            "maxItems": 4,
            "items": {
              "$ref": "#/components/schemas/ExportDestination"
            }
          }
        }
      },
      "ExportQuery": {
        "type": "object",
        "description": "What to export. The server adds the destination (and `recordLimit`, if `record_limit` is supplied) into this object before saving.\n",
        "required": [
          "sourceType"
        ],
        "properties": {
          "sourceType": {
            "type": "string",
            "description": "What the export draws from, e.g. `audience`, `pixel`, `intent`. A `pixel` source with a `webhook` destination can run on the `continuous` schedule."
          },
          "sourceId": {
            "type": "string",
            "description": "The id of the source (e.g. an audience id). Required for most source types."
          },
          "eventType": {
            "type": "string",
            "description": "Optional event-type filter, depending on `sourceType`."
          },
          "dateRange": {
            "type": "object",
            "description": "Optional date window.",
            "properties": {
              "start": {
                "type": "string"
              },
              "end": {
                "type": "string"
              }
            }
          },
          "audienceFilters": {
            "type": "array",
            "description": "Optional filter clauses.",
            "items": {
              "type": "object"
            }
          },
          "dspCampaignId": {
            "type": "string",
            "description": "Optional. The DelivrDSP campaign a DelivrDSP export's list is attached to on every run. It must be a campaign in the export's project that has finished syncing; another id returns `400`."
          },
          "signalState": {
            "type": "string",
            "description": "Deliver only the audience's people in one Predictive Signals state on the latest signals day, instead of the whole audience. Only valid when `sourceType` is `audience`, and `sourceId` is then required. Omit it to export the whole audience.\n\nEach run delivers the previous UTC day's list. A run before that day is published waits for it, and a run whose day and state were already delivered is skipped. Each delivered row also carries the person's `intent_trend`, `active_days_14d` and `topic_ids`, which can be named in `fields` on any audience tier.\n\nThe destination must deliver people: S3, email, Slack, HubSpot or Salesforce records, DelivrDSP, or a webhook. A run to a HubSpot activity destination (`delivers_activity`) fails. The run is billed at the Predictive Signals rate, one unit per delivered row, whatever the audience's type or tier.",
            "enum": [
              "in_market",
              "entered_market",
              "new",
              "rising",
              "steady",
              "cooling",
              "almost_in_market"
            ]
          }
        },
        "example": {
          "sourceType": "audience",
          "sourceId": "7d2f1e3a-4b5c-6d7e-8f90-1a2b3c4d5e6f"
        }
      },
      "ExportDestination": {
        "description": "Where and how to deliver. The `type` field selects the variant, and `integration_id` references a saved integration of that type.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/S3Destination"
          },
          {
            "$ref": "#/components/schemas/DelivrDspDestination"
          },
          {
            "$ref": "#/components/schemas/EmailDestination"
          },
          {
            "$ref": "#/components/schemas/SlackDestination"
          },
          {
            "$ref": "#/components/schemas/HubspotDestination"
          },
          {
            "$ref": "#/components/schemas/SalesforceDestination"
          },
          {
            "$ref": "#/components/schemas/WebhookDestination"
          },
          {
            "$ref": "#/components/schemas/TheTradeDeskDestination"
          }
        ]
      },
      "TheTradeDeskDestination": {
        "type": "object",
        "description": "Upload any Delivr audience to your own The Trade Desk advertiser. Each run sends the audience's UID2s to one segment in the advertiser, named `delivr_audience_` and the audience id. Segment memberships expire after 7 days: a person stays in the segment for 7 days after the last run that sent them. The destination takes no settings: the connection decides what is sent. The connection needs its `api_token`, because Delivr bills the impressions it reads with it: an export to a connection without a token, or whose last test refused it, answers `400`.",
        "required": [
          "type",
          "integration_id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "the_trade_desk"
            ]
          },
          "integration_id": {
            "type": "string",
            "format": "uuid",
            "description": "A saved `the_trade_desk` integration."
          }
        },
        "example": {
          "type": "the_trade_desk",
          "integration_id": "3f2b8c1e-4d5a-4b6c-8d7e-9f0a1b2c3d4e"
        }
      },
      "WebhookDestination": {
        "type": "object",
        "description": "Push signed JSON batches to a webhook. Two exports may use it. An export with a `signalState` pushes that state's people, in batches of up to 100 ([Receive Predictive Signals by Webhook](https://docs.delivr.ai/docs/recipe-receive-signals-webhook)). An export with a `pixel` source pushes its resolved visitors as `events.batch` bodies of up to 100 rows, on the `continuous` schedule ([Receive Website Visitors by Webhook](https://docs.delivr.ai/docs/recipe-receive-website-visitors-webhook)); it requires `tier` and `delivery_mode`.",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "webhook"
            ]
          },
          "integration_id": {
            "type": "string",
            "format": "uuid",
            "description": "A saved `webhook` integration."
          },
          "include_email": {
            "type": "boolean",
            "description": "Signal-state exports only. When true, each person carries an email where the audience has one. Defaults to false: people are identified by `hem` alone. Refused on a pixel source, where the tier decides the columns."
          },
          "tier": {
            "type": "string",
            "enum": [
              "resolution_hem",
              "resolution_hem_pte",
              "resolution_full_profile"
            ],
            "description": "Pixel source only, and required there. The v3 events tier: it fixes the columns of each row, the same as `GET /api/v3/events/{tier}`, and the meter billed. Refused on any other source."
          },
          "delivery_mode": {
            "$ref": "#/components/schemas/DeliveryMode"
          }
        }
      },
      "DeliveryMode": {
        "type": "string",
        "enum": [
          "all",
          "new"
        ],
        "default": "all",
        "description": "Which people each run delivers. `all` delivers every person the export selects, every run, and bills each. `new` delivers only people not yet delivered to the project at the export's meter this UTC calendar month (from 00:00 UTC on the 1st; the month of the run's creation, kept across its retries), and bills only those; a retried run delivers its own people again at no charge. `new` needs an audience source, except on the `webhook` destination of a pixel source, where it needs no audience; it is refused for audiences that deliver intent columns. On that pixel-source webhook the mode is required and has no default: `all` delivers every resolved event row and `new` delivers each person once. Every destination of one export must use the same mode, including destinations added later. On audience and file destinations an omitted value means `all`. Where it is not accepted the request fails validation rather than delivering everyone."
      },
      "FileFields": {
        "type": "object",
        "description": "Fields shared by the file-delivery destinations (S3, email, Slack).",
        "properties": {
          "record_type": {
            "type": "string",
            "description": "What each output record encodes. The value valid for a given export depends on its source (e.g. `contacts_only` for an audience export, `raw_events` for a pixel or DSP event export). `match_key` delivers a single identifier column and no attribute columns, for activation on a platform with no Delivr connector; see `match_key`.",
            "enum": [
              "hem",
              "uid2",
              "raw_events",
              "raw_logs",
              "contacts_only",
              "ip",
              "domain",
              "maid",
              "match_key"
            ]
          },
          "match_key": {
            "type": "string",
            "description": "Which identifier a `match_key` export delivers. Required when `record_type` is `match_key` and refused otherwise; `fields` and `array_transform` are refused alongside it. Audience sources only: a run on any other source fails.\n\n`hem` is the SHA-256 lowercase hashed email, in a `sha256_lc_hem` column. `uid2` is that same value converted to a UID2 token, in a `uid2` column. `maid` is a device advertising id (mobile or CTV) tied to the person, and `household_ip` is the person's household network, an IPv4 address or an IPv6 /64, each in a column of the same name. A file holds one row per distinct value; people with no value are left out.",
            "enum": [
              "hem",
              "uid2",
              "maid",
              "household_ip"
            ]
          },
          "file_format": {
            "type": "string",
            "enum": [
              "csv",
              "json",
              "jsonl",
              "parquet"
            ]
          },
          "fields": {
            "type": "array",
            "description": "Output column allow-list. Omit to use the default set for the record type.",
            "items": {
              "type": "string"
            }
          },
          "array_transform": {
            "type": "string",
            "description": "How to render multi-value fields. Defaults to `first`.",
            "enum": [
              "first",
              "json",
              "comma",
              "pipe",
              "semicolon",
              "count"
            ]
          },
          "filename_template": {
            "type": "string"
          },
          "delivery_mode": {
            "$ref": "#/components/schemas/DeliveryMode"
          }
        }
      },
      "FileWriteOptions": {
        "type": "object",
        "description": "File-write options supported by S3 and email destinations (not Slack).",
        "properties": {
          "emit_empty_file": {
            "type": "boolean",
            "description": "Deliver a file even when there are zero records. Defaults to false."
          },
          "combine_output": {
            "type": "boolean",
            "description": "Combine a multi-window run into one file. Not allowed with `parquet`. Defaults to false."
          }
        }
      },
      "S3Destination": {
        "allOf": [
          {
            "type": "object",
            "required": [
              "type",
              "integration_id",
              "record_type",
              "file_format"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "s3"
                ]
              },
              "integration_id": {
                "type": "string",
                "format": "uuid",
                "description": "A saved `s3` integration."
              },
              "prefix": {
                "type": "string",
                "description": "Object key prefix (folder path) within the bucket."
              },
              "path_format": {
                "type": "string",
                "enum": [
                  "flat",
                  "date",
                  "project"
                ]
              }
            }
          },
          {
            "$ref": "#/components/schemas/FileFields"
          },
          {
            "$ref": "#/components/schemas/FileWriteOptions"
          }
        ]
      },
      "EmailDestination": {
        "allOf": [
          {
            "type": "object",
            "required": [
              "type",
              "integration_id",
              "record_type",
              "file_format"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "email"
                ]
              },
              "integration_id": {
                "type": "string",
                "format": "uuid",
                "description": "A saved `email` integration. Recipients are configured on the integration."
              },
              "subject_template": {
                "type": "string",
                "description": "Optional email subject template."
              }
            }
          },
          {
            "$ref": "#/components/schemas/FileFields"
          },
          {
            "$ref": "#/components/schemas/FileWriteOptions"
          }
        ]
      },
      "SlackDestination": {
        "allOf": [
          {
            "type": "object",
            "required": [
              "type",
              "integration_id",
              "record_type",
              "file_format"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "slack"
                ]
              },
              "integration_id": {
                "type": "string",
                "format": "uuid",
                "description": "A saved `slack` integration. The channel is configured on the integration."
              }
            }
          },
          {
            "$ref": "#/components/schemas/FileFields"
          }
        ]
      },
      "HubspotDestination": {
        "type": "object",
        "description": "Deliver export output to a HubSpot list, or deliver intent activity onto HubSpot timelines. The target list can be set here or defaulted on the integration.",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "hubspot"
            ]
          },
          "integration_id": {
            "type": "string",
            "format": "uuid",
            "description": "A saved `hubspot` integration."
          },
          "record_type": {
            "type": "string",
            "description": "Required for a record export. Omitted for an activity destination, which delivers no records.",
            "enum": [
              "hem",
              "uid2",
              "raw_events",
              "raw_logs",
              "contacts_only",
              "ip",
              "domain",
              "maid"
            ]
          },
          "fields": {
            "type": "array",
            "description": "Output column allow-list. Omit to use the destination default.",
            "items": {
              "type": "string"
            }
          },
          "array_transform": {
            "type": "string",
            "enum": [
              "first",
              "json",
              "comma",
              "pipe",
              "semicolon",
              "count"
            ]
          },
          "list_id": {
            "type": "string",
            "description": "Target HubSpot list id. Set together with `list_name`."
          },
          "list_name": {
            "type": "string",
            "description": "Target HubSpot list name. Set together with `list_id`."
          },
          "delivers_activity": {
            "type": "boolean",
            "description": "Deliver intent activity onto contact and company timelines instead of syncing records. Set at create time; omit for a record export. An activity destination delivers no records, so `fields`, `array_transform`, `list_id`, `list_name` and `delivery_mode` do not apply and are rejected alongside it."
          },
          "delivery_mode": {
            "$ref": "#/components/schemas/DeliveryMode"
          }
        }
      },
      "SalesforceDestination": {
        "type": "object",
        "description": "Deliver export output to a Salesforce campaign, optionally mapping source scores to campaign member statuses.",
        "required": [
          "type",
          "record_type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "salesforce"
            ]
          },
          "integration_id": {
            "type": "string",
            "format": "uuid",
            "description": "A saved `salesforce` integration."
          },
          "record_type": {
            "type": "string",
            "enum": [
              "hem",
              "uid2",
              "raw_events",
              "raw_logs",
              "contacts_only",
              "ip",
              "domain",
              "maid"
            ]
          },
          "fields": {
            "type": "array",
            "description": "Output column allow-list. Omit to use the destination default.",
            "items": {
              "type": "string"
            }
          },
          "array_transform": {
            "type": "string",
            "enum": [
              "first",
              "json",
              "comma",
              "pipe",
              "semicolon",
              "count"
            ]
          },
          "list_id": {
            "type": "string",
            "description": "Target Salesforce campaign id. Set together with `list_name`."
          },
          "list_name": {
            "type": "string",
            "description": "Target Salesforce campaign name. Set together with `list_id`."
          },
          "campaign_member_status": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "A fixed campaign member status applied to added members."
          },
          "campaign_member_status_bands": {
            "type": "array",
            "maxItems": 32,
            "description": "Maps source score ranges to campaign member statuses.",
            "items": {
              "$ref": "#/components/schemas/CampaignMemberStatusBand"
            }
          },
          "delivery_mode": {
            "$ref": "#/components/schemas/DeliveryMode"
          }
        }
      },
      "CampaignMemberStatusBand": {
        "type": "object",
        "description": "Maps a source score range to a Salesforce campaign member status. At least one of `min` or `max` is required.",
        "required": [
          "score_field",
          "status"
        ],
        "properties": {
          "score_field": {
            "type": "string",
            "minLength": 1,
            "description": "Source field whose numeric value selects the band."
          },
          "min": {
            "type": "number",
            "description": "Inclusive lower bound of the band."
          },
          "max": {
            "type": "number",
            "description": "Inclusive upper bound of the band."
          },
          "status": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Campaign member status applied when the score falls in this band."
          }
        }
      },
      "DelivrDspDestination": {
        "type": "object",
        "description": "Activate an audience to DelivrDSP.",
        "required": [
          "type",
          "integration_id",
          "identifier",
          "mode"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "delivrdsp"
            ]
          },
          "integration_id": {
            "type": "string",
            "format": "uuid",
            "description": "A saved `delivrdsp` integration."
          },
          "identifier": {
            "type": "string",
            "description": "What the DelivrDSP audience list is built from. `hem` and `uid2` are identity tokens; `ip` is the addresses an event export's events were seen from; `domain` is a company list. `maid` (each member's device advertising ids, mobile and CTV) and `household_ip` (each member's household network, an IPv4 address or an IPv6 /64) are resolved per member of an audience source and run in `cumulative` mode only. A `household_ip` list is sent with its IPv4 networks only, skipping IPv6 ones, and needs at least 1,000 of them; a smaller list fails the run.",
            "enum": [
              "hem",
              "uid2",
              "ip",
              "domain",
              "maid",
              "household_ip"
            ]
          },
          "mode": {
            "type": "string",
            "description": "Refresh strategy. `incremental` is not available for audience sources.",
            "enum": [
              "cumulative",
              "incremental",
              "regenerative"
            ]
          },
          "lookback_days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 365,
            "description": "Only valid in `incremental` mode."
          },
          "hem_scope": {
            "type": "string",
            "enum": [
              "matched",
              "all_profile"
            ],
            "description": "Only valid for the `hem` and `uid2` identifiers. Defaults to `all_profile`."
          },
          "use_visitor_hem": {
            "type": "boolean",
            "description": "Pixel sources only. Overrides `hem_scope` when true."
          },
          "list_name": {
            "type": "string",
            "description": "Defaults to the export name."
          }
        }
      },
      "CreateExportResponse": {
        "type": "object",
        "required": [
          "export",
          "destination",
          "additional_destinations"
        ],
        "properties": {
          "export": {
            "$ref": "#/components/schemas/Export"
          },
          "destination": {
            "$ref": "#/components/schemas/ExportDestinationObject"
          },
          "additional_destinations": {
            "type": "array",
            "description": "The destinations from `additional_destinations` on the request, in the order supplied. Empty when none were supplied.",
            "items": {
              "$ref": "#/components/schemas/ExportDestinationObject"
            }
          }
        }
      },
      "Export": {
        "type": "object",
        "required": [
          "id",
          "organization_id",
          "project_id",
          "name",
          "query",
          "status",
          "enabled",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "query": {
            "type": "object",
            "description": "The stored query, including the resolved `destination`."
          },
          "schedule": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "last_run_at": {
            "type": "string",
            "description": "Most recent run time (UTC, RFC3339)."
          },
          "last_run_status": {
            "type": "string"
          },
          "end_date": {
            "type": "string",
            "description": "`YYYY-MM-DD` (UTC)."
          },
          "run_time": {
            "type": "string",
            "description": "`HH:MM` in `run_timezone`. Not used by a `continuous` export."
          },
          "run_day_of_week": {
            "type": "integer",
            "minimum": 0,
            "maximum": 6
          },
          "run_timezone": {
            "type": "string",
            "description": "IANA time zone the schedule is local to. Absent for a schedule stored in UTC."
          },
          "archived_at": {
            "type": "string"
          },
          "auto_disabled_reason": {
            "type": "string",
            "description": "Why the system paused the export, e.g. `integration_connection_failed`."
          },
          "created_at": {
            "type": "string",
            "description": "Creation timestamp (UTC, RFC3339)."
          },
          "updated_at": {
            "type": "string",
            "description": "Last-update timestamp (UTC, RFC3339)."
          }
        }
      },
      "ExportDestinationObject": {
        "type": "object",
        "required": [
          "id",
          "organization_id",
          "project_id",
          "export_id",
          "type",
          "status",
          "enabled",
          "primary"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "export_id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "description": "`s3`, `delivrdsp`, `email`, `slack`, `hubspot`, `salesforce`, `webhook`, or `the_trade_desk`."
          },
          "name": {
            "type": "string"
          },
          "config": {
            "type": "object",
            "description": "The resolved delivery configuration."
          },
          "status": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "description": "Creation timestamp (UTC, RFC3339)."
          },
          "updated_at": {
            "type": "string",
            "description": "Last-update timestamp (UTC, RFC3339)."
          },
          "primary": {
            "type": "boolean",
            "description": "True for the export's original, earliest-created destination."
          },
          "destination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExportDestination"
              }
            ],
            "description": "An added destination's settings in the shape `PUT /api/v1/exports/{id}/destinations/{destinationId}` accepts. Absent on the original destination, whose settings are the export's own. Exactly one destination on an export is primary."
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message."
          }
        }
      }
    }
  }
}
```