Skip to main content
POST
/
v1
/
custom-connectors
/
{connector_id}
/
ingest
/
typed
/
upload
Upload a binary as a typed event
curl --request POST \
  --url https://api.adapter.com/v1/custom-connectors/{connector_id}/ingest/typed/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>' \
  --form kind=page \
  --form 'external_id=<string>' \
  --form 'payload=<string>'
{
  "status": "<string>",
  "events": 123,
  "external_ids": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Pass your pk_live_... API key as a Bearer token.

Path Parameters

connector_id
string
required

Body

multipart/form-data
file
string
required
kind
string
default:page
external_id
string | null
payload
string | null

Response

Successful Response

status
string
required

Always 'accepted'.

Example:

"accepted"

events
integer
required

Number of events accepted.

Example:

1

external_ids
string[]

external_id of each accepted event, in submission order. Useful for callers that want to look up the resulting canonical doc.

Example:
["ext-123"]