Deliver the project's record to its own store

People only, with the admin role and a fresh second factor: it sends customer data out of Pod.

PUT/v1/records/delivery

People only, with the admin role and a fresh second factor: it sends customer data out of Pod. Every closed window of the record (an hour, a few hours after it closes) is written to the bucket in the chosen format, with a manifest naming the manifest before it by its SHA-256 and carrying the chain heads, so the customer keeps the heads and can check the chain themselves. The store is written to once before this answers; a store that refuses is invalid. The secret is stored encrypted at once and never read back. Changing only the keys, format or lock goes on where delivery is; another bucket or prefix, or from, starts a new series.

For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with person_required.

Request

curl -X PUT "https://api.pod.mapier.ai/v1/records/delivery?project=example" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"store":{"kind":"s3","endpoint":"https://app.example.com","region":"example","bucket":"example","secret_access_key":"example"},"format":"ocsf"}'

Parameters

NameInTypeRequiredWhat it is
projectquerystringYesThe project the call is about. Every route is scoped to one.
Pod-OrganisationheaderstringNoThe organization, for a person who belongs to several. An API key's organization is its own, and a different one here is forbidden.
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
storeRecordStoreRequestYes
format"ocsf" | "otlp"Yesocsf: OCSF events as JSON lines. otlp: OpenTelemetry log records as OTLP JSON.
lock_daysintegerNoWrite every object under S3 Object Lock in compliance mode for this many days. The bucket must have Object Lock switched on. From 1 to 3653.
fromstringNoDeliver from this time, as far back as the project keeps. Without it, delivery starts with the current window, or goes on where it is.

Answer

200. The delivery, without its secret.

200
{
  "store": {
    "kind": "s3",
    "endpoint": "https://app.example.com",
    "region": "example",
    "bucket": "example",
    "prefix": "example",
    "path_style": false,
    "access_key_id": "example"
  },
  "format": "ocsf",
  "lock_days": null,
  "series": "example",
  "from": "2026-11-23T12:00:00.000Z",
  "delivered_through": "2026-11-23T12:00:00.000Z",
  "files": 0,
  "last_manifest": null,
  "state": "delivering",
  "failures": 0,
  "last_error": null,
  "next_try_at": null,
  "window_seconds": 1,
  "created_at": "2026-11-23T12:00:00.000Z",
  "created_by": "example",
  "updated_at": "2026-11-23T12:00:00.000Z",
  "updated_by": "example"
}
FieldTypeAlwaysWhat it is
storeRecordStoreYesA bucket of the customer's, reached over the S3 API: AWS S3, Google Cloud Storage's XML API with HMAC keys, or any store that speaks it. Reached over HTTPS only, and only at public addresses.
format"ocsf" | "otlp"Yesocsf: OCSF events as JSON lines. otlp: OpenTelemetry log records as OTLP JSON.
lock_daysinteger | nullYes
seriesstringYesThe folder of the bucket this series of files goes under.
fromstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
delivered_throughstringYesThe end of the last window delivered.
filesintegerYesManifests delivered in this series. At least 0.
last_manifeststring | nullYes
state"delivering" | "failing"Yes
failuresintegerYesAt least 0.
last_errorstring | nullYes
next_try_atstring | nullYes
window_secondsintegerYesAt least 1.
created_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
created_bystringYesWho made a change. An identity account id for a person, or a key id (key_…) for an API key.
updated_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
updated_bystringYesWho made a change. An identity account id for a person, or a key id (key_…) for an API key.

Errors

The refusals this call is known for: invalid, unauthorized, person_required, forbidden, not_supported. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.