Skip to main content

Import a CSV file

POST 

/v1/imports

Stores the valid rows of a file and records an import batch. A problem with one row rejects that row only, and the response lists every problem of each rejected row, one errors entry per problem. Events deduplicate as on POST /v1/events. Idempotency-Key protects the import batch record that each commit creates.

Request​

Responses​

The file was imported. Rows that failed are in errors.

Response Headers
    X-Request-Id

    The request's id, to quote in support requests. Echoes the request's X-Request-Id when it was at most 200 bytes of visible ASCII; otherwise generated.

    RateLimit

    Sent on every response to an API key once the rate limiter has run: absent on 401 and 403, and on every response to a session. The quota left in the one policy the request consumed, as IETF draft-ietf-httpapi-ratelimit-headers-11 specifies, e.g. "api";r=599;t=1. It tracks the draft, and may change to follow a newer draft without being treated as a breaking change. Do not base retries on it; retry on Retry-After.

    RateLimit-Policy

    Sent whenever RateLimit is. Every policy the key is subject to, as IETF draft-11 specifies. It tracks the draft, and may change to follow a newer draft without being treated as a breaking change.

    Idempotent-Replayed

    true when this response is a replay of the stored response to an earlier request with the same Idempotency-Key; absent on the first response. The resource was not created again.