Send events
POST finished conversations from a stack of your own.
Use this when your stack has no connector of its own, or when you built the sender yourself.
The request
One POST with an ingest key. Every batch here is read with the generic contract, whatever platform the conversation came from. The event payload reference
bash
curl -X POST "https://app.evidova.com/ingest/v1/events" \
-H "authorization: Bearer ak_live_..." \
-H "content-type: application/json" \
--data '{"events":[{"thread_id":"contact-4812","type":"message.sent","ts":1755820800000,"payload":{"role":"assistant","text":"Your order ships tomorrow."},"source":{"platform_msg_id":"msg-7731"}}]}'The body is one event, an array of events, or an object with an events array.
The ceilings
| Body size | 8 MiB per request. Above that, 413, and use bulk import instead |
|---|---|
| Events per payload | 5000. A larger one is refused when we parse it, which is after the 202 has gone back, so split the batch before you send it |
| A client-limited key | Files the whole batch under that client |
| Requests per key | A burst of 120, then 20 a second. Past that, 429 |
Which agent it is scored as
An event carries no agent field. The batch is scored as the agent its generic connection names, and a conversation with no agent is never scored. When nothing leaves a doubt, you name nothing.
| The key's client | A key limited to one client uses that client's generic connection. A key with no client limit uses the workspace's oldest generic connection |
|---|---|
| The connection's agent | The agent that connection names is the one scored |
| No agent named | The client's only agent is used, when it has exactly one |
?agent_id= | Names the agent outright. Needed when the client has more than one generic connection, one per agent |
bash
curl -X POST "https://app.evidova.com/ingest/v1/events?agent_id=0199..." \
-H "authorization: Bearer ak_live_..." \
-H "content-type: application/json" \
--data @batch.jsonWhere the batch could belong to more than one agent, we refuse it with a 422 that lists the agents it could mean and their ids, rather than score it as the wrong one. Nothing is stored, so send it again with agent_id. What a connection carries
What we send back
202, with the id we filed the body under. Nothing about scoring is in that answer: we parse after we have replied, and we score a conversation only once it closes, not turn by turn.
json
{ "status": "accepted", "raw_id": "..." }| 202 | Stored. Parsing and scoring happen after this. |
|---|---|
| 401 | The key is missing, revoked, or does not carry the ingest scope. |
| 403 | The agent named belongs to a client the key is not limited to. |
| 404 | The agent named is not one of this workspace's. |
| 413 | The batch is above 8 MiB. Send fewer events, or use bulk import. |
| 422 | We cannot tell which agent it is for. The message lists the agents and says what to name. A key limited to a client with no generic connection of its own gets this too. |
| 429 | Over the key's rate limit. Wait the seconds in Retry-After. |
Read next
- Backfill history · Upload an export, so a score has history behind it from the first day.
- Connections · What a connection carries, why an API key cannot create one, and the two settings that decide whether it gets scored.
- Event payload reference · The event shape to send: required fields, accepted fields, and what happens to the rest.