Skip to main content
POST
Create a new headless import

Authorizations

X-Dromo-License-Key
string
header
required

This backend API key is different than your frontend license key. Please use the "Backend" license key from your Dromo Dashboard.

Body

application/json
schema_id
string

ID of a saved schema. Mutually exclusive with fields — provide schema_id or fields, not both. When provided alongside settings or hooks, those values are merged on top of the saved schema for this import only.

Example:

"94187d21-9820-420f-b08c-a80cbbf52604"

fields
object[]

Inline schema field definitions. Required when schema_id is omitted; mutually exclusive with schema_id. Accepts the same field definitions as a saved schema.

Example:
settings
object

Import settings. When used with schema_id, merged on top of the saved schema (provided keys overwrite; omitted keys are unchanged). When used without schema_id, defines settings for the inline schema.

Example:
hooks
object

Import hooks. When used with schema_id, merged on top of the saved schema. When used without schema_id, defines hooks for the inline schema.

Example:
original_filename
string | null

Name of the file being imported (exclude if using initial_data)

Example:

"user.csv"

initial_data
any[] | null

Complete JSON data to be imported, max size 15MB (exclude if using a file)

Example:
import_metadata
object | null
Example:

Response

Import successfully initialized

id
string
read-only
Example:

"94187d21-9820-420f-b08c-a80cbbf52604"

schema_id
string
Example:

"94187d21-9820-420f-b08c-a80cbbf52604"

status
enum<string>
read-only
Available options:
AWAITING_UPLOAD,
RUNNING,
SUCCESSFUL,
FAILED,
NEEDS_REVIEW
Example:

"AWAITING_UPLOAD"

original_filename
string
Example:

"user_data.csv"

created_date
string<date-time>
read-only
modified_date
string<date-time>
read-only
upload
string
read-only
Example:

"https://dromo-headless-imports-prod.s3.us-west-2.amazonaws.com/test-key-123?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIOSFODNN7EXAMPLE%2F20230227%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230227T160315Z&X-Amz-Expires=1800&X-Amz-SignedHeaders=host&X-Amz-Signature=example1234567890abcdef1234567890abcdef1234567890abcdef12345678"

review_url
string
read-only
Example:

"https://app.dromo.io/headless/94187d21-9820-420f-b08c-a80cbbf52604/"

result_metadata
object | null
Example:

null

import_errors
object[] | null
Example:

null