const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rows: [
{
campaignId: '<string>',
events: [{event: '<string>', ts: '<string>', meta: {}}],
sessionId: '<string>',
siteId: '<string>',
deviceId: '<string>'
}
],
defaultDwellMs: 1
})
};
fetch('https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch"
payload = {
"rows": [
{
"campaignId": "<string>",
"events": [
{
"event": "<string>",
"ts": "<string>",
"meta": {}
}
],
"sessionId": "<string>",
"siteId": "<string>",
"deviceId": "<string>"
}
],
"defaultDwellMs": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch"
payload := strings.NewReader("{\n \"rows\": [\n {\n \"campaignId\": \"<string>\",\n \"events\": [\n {\n \"event\": \"<string>\",\n \"ts\": \"<string>\",\n \"meta\": {}\n }\n ],\n \"sessionId\": \"<string>\",\n \"siteId\": \"<string>\",\n \"deviceId\": \"<string>\"\n }\n ],\n \"defaultDwellMs\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rows\": [\n {\n \"campaignId\": \"<string>\",\n \"events\": [\n {\n \"event\": \"<string>\",\n \"ts\": \"<string>\",\n \"meta\": {}\n }\n ],\n \"sessionId\": \"<string>\",\n \"siteId\": \"<string>\",\n \"deviceId\": \"<string>\"\n }\n ],\n \"defaultDwellMs\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rows\": [\n {\n \"campaignId\": \"<string>\",\n \"events\": [\n {\n \"event\": \"<string>\",\n \"ts\": \"<string>\",\n \"meta\": {}\n }\n ],\n \"sessionId\": \"<string>\",\n \"siteId\": \"<string>\",\n \"deviceId\": \"<string>\"\n }\n ],\n \"defaultDwellMs\": 1\n}"
response = http.request(request)
puts response.read_bodyfalsecurl --request POST \
--url https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rows": [
{
"campaignId": "<string>",
"events": [
{
"event": "<string>",
"ts": "<string>",
"meta": {}
}
],
"sessionId": "<string>",
"siteId": "<string>",
"deviceId": "<string>"
}
],
"defaultDwellMs": 1
}
'{
"ok": true,
"data": {
"results": [
{
"ok": true,
"rowIndex": 123,
"eventIndex": 123,
"correlationId": "<string>",
"receipt": {
"version": "1",
"receiptId": "<string>",
"correlationId": "<string>",
"spatialAnchorId": "<string>",
"spatialPlacementId": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"renderedAt": "2023-11-07T05:31:56Z",
"dwellMs": 123,
"nonce": "<string>",
"witness": "<string>"
},
"substrate": "DOOH",
"error": "<string>",
"message": "<string>",
"sessionId": "<string>"
}
],
"summary": {
"received": 123,
"accepted": 123,
"rejected": 123
}
},
"contractVersion": "v1.0"
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Ingest an adapter batch
The integration-adapter bridge. Accepts the same canonical rows the substrate adapters emit (the frozen runtime.event_ingest.v1 shape — campaignId, sessionId, siteId/deviceId + an events[] array) and translates each event onto the live, signed delivery path using the tenant’s ingest mappings (see /v1/delivery/mappings): campaignId → rightId (campaign mapping, required); siteId, falling back to deviceId → spatialAnchorId (placement mapping, optional — the raw key is used when unmapped); event.meta duration (dwellMs | durationSeconds | spotLength | duration) → dwellMs. Spatial/AR-VR + satellite + screen telemetry rides in event.meta.telemetry (same shape as the telemetry object on POST /v1/delivery). Each event becomes one signed receipt. Individual rows can fail (unmapped campaign, inactive right, constraint violation) and are reported per row — the batch returns 200 with a results array, not all-or-nothing. Caps: 200 rows, 500 deliveries per batch. Requires scope delivery:write.
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rows: [
{
campaignId: '<string>',
events: [{event: '<string>', ts: '<string>', meta: {}}],
sessionId: '<string>',
siteId: '<string>',
deviceId: '<string>'
}
],
defaultDwellMs: 1
})
};
fetch('https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch"
payload = {
"rows": [
{
"campaignId": "<string>",
"events": [
{
"event": "<string>",
"ts": "<string>",
"meta": {}
}
],
"sessionId": "<string>",
"siteId": "<string>",
"deviceId": "<string>"
}
],
"defaultDwellMs": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch"
payload := strings.NewReader("{\n \"rows\": [\n {\n \"campaignId\": \"<string>\",\n \"events\": [\n {\n \"event\": \"<string>\",\n \"ts\": \"<string>\",\n \"meta\": {}\n }\n ],\n \"sessionId\": \"<string>\",\n \"siteId\": \"<string>\",\n \"deviceId\": \"<string>\"\n }\n ],\n \"defaultDwellMs\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rows\": [\n {\n \"campaignId\": \"<string>\",\n \"events\": [\n {\n \"event\": \"<string>\",\n \"ts\": \"<string>\",\n \"meta\": {}\n }\n ],\n \"sessionId\": \"<string>\",\n \"siteId\": \"<string>\",\n \"deviceId\": \"<string>\"\n }\n ],\n \"defaultDwellMs\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rows\": [\n {\n \"campaignId\": \"<string>\",\n \"events\": [\n {\n \"event\": \"<string>\",\n \"ts\": \"<string>\",\n \"meta\": {}\n }\n ],\n \"sessionId\": \"<string>\",\n \"siteId\": \"<string>\",\n \"deviceId\": \"<string>\"\n }\n ],\n \"defaultDwellMs\": 1\n}"
response = http.request(request)
puts response.read_bodyfalsecurl --request POST \
--url https://sandbox.api.enfinitos.com/v1/delivery/ingest-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rows": [
{
"campaignId": "<string>",
"events": [
{
"event": "<string>",
"ts": "<string>",
"meta": {}
}
],
"sessionId": "<string>",
"siteId": "<string>",
"deviceId": "<string>"
}
],
"defaultDwellMs": 1
}
'{
"ok": true,
"data": {
"results": [
{
"ok": true,
"rowIndex": 123,
"eventIndex": 123,
"correlationId": "<string>",
"receipt": {
"version": "1",
"receiptId": "<string>",
"correlationId": "<string>",
"spatialAnchorId": "<string>",
"spatialPlacementId": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"renderedAt": "2023-11-07T05:31:56Z",
"dwellMs": 123,
"nonce": "<string>",
"witness": "<string>"
},
"substrate": "DOOH",
"error": "<string>",
"message": "<string>",
"sessionId": "<string>"
}
],
"summary": {
"received": 123,
"accepted": 123,
"rejected": 123
}
},
"contractVersion": "v1.0"
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Authorizations
API key sent as Authorization: Bearer <api-key>.
Body
Canonical adapter ingest bodies (1-200 rows, at most 500 deliveries total).
1 - 200 elementsShow child attributes
Show child attributes
Optional fallback dwell (ms) when a row's event.meta carries no derivable duration — set it to the contracted spot length for feeds that omit per-event durations.
x >= 0