Skip to main content
POST
/
api
/
v1
/
events
Create Event
curl --request POST \
  --url https://evals.voker.ai/api/v1/api/v1/events \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_name": "<string>",
  "properties": {
    "inputs": {},
    "output": {}
  },
  "fingerprint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "session": "<string>",
  "agent": "<string>",
  "agent_version": "<string>",
  "person": "<string>"
}
'
{
  "type": "fingerprint-not-found"
}

Headers

Authorization
string
required
Example:

"Bearer 123"

Body

application/json

Create an event.

See Creating an Event for more information.

event_name
string
required

Type of the event. Currently, only "llm" is supported.

Allowed value: "llm"
properties
EventProperties · object
required

Event specific properties. For LLM events, this includes the inputs and outputs of the LLM call.

fingerprint_id
string<uuid>
required

The fingerprint of the client that generated the event.

session
string
required

The unique identifier of the session associated with the event.

agent
string | null

The name of the agent associated with the event.

If this agent does not exist, it will be created.
agent_version
string | null

The name of the agent version associated with the event.

If this agent version does not exist, it will be created. If an agent version is not supplied, a default version will be used.
person
string | null

The unique identifier of the person associated with the event.

If the person does not exist, it will be created.

Response

Successful Response