---
title: "Create Public Export Job Compat"
method: POST
path: "/v2/public/exports"
tags: ["exports"]
---

# Create Public Export Job Compat

`POST /v2/public/exports`

Create an export job.

Integration-destination exports are validated against the runnable
delivery matrix. HubSpot Company, Contact, Custom Object, Deal, Invoice,
Item, Order, Subscription, and Ticket exports use the dedicated Hatchet
bulk workflow, bounded CSV chunks, and HubSpot's Imports API. Invoice
requires an explicitly selected HubSpot custom-object type id. NextEngine
Item and Order exports keep their dedicated Hatchet pipelines. Provider and
object pairs without a working delivery pipeline are rejected with HTTP
400 and error code ``INTEGRATION_EXPORT_NOT_SUPPORTED`` before any job
history row is created. Empty or unknown provider slugs are rejected with
``INTEGRATION_EXPORT_UNKNOWN_PROVIDER``. Accepted jobs stay queued or
running until provider completion and required post-processing finish.

## Query parameters

- `workspace_id` string, nullable

## Headers

- `X-Workspace-Code` string

## Request body

- ExportJobCreateRequest
  - `object_type` string, required
  - `destination_kind` string
  - `provider` string, nullable
  - `target_system` string, nullable
  - `channel_id` string, nullable
  - `mapping_template_id` string, nullable
  - `mapping_template_revision` integer, nullable
  - `mapping_template_state` object, nullable
  - `operation` string
  - `request_invoice` boolean
  - `record_ids` string[], nullable
  - `workspace_scope` string, nullable
  - `view_id` string, nullable
  - `search_query` string, nullable
  - `filter_fields` ExportTemplateFilterFieldInput[]
    - `filter_type` string
    - `filter_option` string
    - `filter_value` string, nullable
  - `idempotency_key` string, nullable
  - `custom_object_id` string, nullable
  - `limit` integer
  - `file_format` string, nullable
  - `dry_run` boolean
  - `workflow_action_tracker_id` string, nullable
  - `action_tracker_id` string, nullable
  - `workflow_language` string, nullable
  - `key_field` string, nullable
  - `export_set_items` boolean
  - `set_code_source` string, nullable
  - `mapping_custom_fields` object, nullable
  - `mapping_custom_fields_conditional` object, nullable
  - `update_hubspot` unknown
  - `hubspot_follow_up_channel_id` string, nullable
  - `hubspot_follow_up_deal_stage` string, nullable
  - `mapping_type` string, nullable
  - `selected_custom_object` string, nullable

## Response `200`

Successful Response

- CreatePublicExportJobCompatApiV2PublicExportsPost200Envelope
  - `success` true, required
  - `data` object, required
  - `meta` EnvelopeMeta, required
    - `ctx_id` string, required
    - `pagination` PaginationMeta
      - `page` integer, required
      - `page_size` integer, required
      - `total` integer, required
      - `next_cursor` string, nullable
    - `toast` ToastMessage
      - `variant` 'success' | 'error' | 'info' | 'warning', required
      - `code` string, required
      - `message` string, required
      - `i18n` ToastMessageI18n, required
        - `en` string, required
        - `ja` string, required

## Other responses

- `400` — Error response
- `401` — Error response
- `403` — Error response
- `422` — Error response

---

[API](https://skmtc.net/sankahq/apis/sanka-public-api.md) · [All operations](https://skmtc.net/sankahq/apis/sanka-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sankahq/sanka-public-api/revisions/91dba803a2c1/schema)
