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.
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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
project | query | string | Yes | The project the call is about. Every route is scoped to one. |
Pod-Organisation | header | string | No | The organization, for a person who belongs to several. An API key's organization is its own, and a different one here is forbidden. |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
store | RecordStoreRequest | Yes | |
format | "ocsf" | "otlp" | Yes | ocsf: OCSF events as JSON lines. otlp: OpenTelemetry log records as OTLP JSON. |
lock_days | integer | No | Write 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. |
from | string | No | Deliver 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.
{
"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"
}| Field | Type | Always | What it is |
|---|---|---|---|
store | RecordStore | Yes | A 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" | Yes | ocsf: OCSF events as JSON lines. otlp: OpenTelemetry log records as OTLP JSON. |
lock_days | integer | null | Yes | |
series | string | Yes | The folder of the bucket this series of files goes under. |
from | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
delivered_through | string | Yes | The end of the last window delivered. |
files | integer | Yes | Manifests delivered in this series. At least 0. |
last_manifest | string | null | Yes | |
state | "delivering" | "failing" | Yes | |
failures | integer | Yes | At least 0. |
last_error | string | null | Yes | |
next_try_at | string | null | Yes | |
window_seconds | integer | Yes | At least 1. |
created_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
created_by | string | Yes | Who made a change. An identity account id for a person, or a key id (key_…) for an API key. |
updated_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
updated_by | string | Yes | Who 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.