Skip to main content
POST
/
v1
/
episodes
Create episode
curl --request POST \
  --url http://localhost:8080/v1/episodes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "raw_content": "<string>",
  "conversation_id": "<string>",
  "occurred_at": "2023-11-07T05:31:56Z"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "raw_content": "<string>",
  "conversation_id": "<string>",
  "confidence": 123,
  "occurred_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key with mk_ or rk_ prefix

Body

application/json
agent_id
string<uuid>
required
raw_content
string
required
conversation_id
string
occurred_at
string<date-time>
outcome
enum<string>
Available options:
success,
failure,
neutral,
unknown

Response

201 - application/json

Episode created

id
string<uuid>
agent_id
string<uuid>
raw_content
string
conversation_id
string
outcome
enum<string>
Available options:
success,
failure,
neutral,
unknown
confidence
number<float>
occurred_at
string<date-time>
created_at
string<date-time>