Skip to main content
POST
/
v1
/
projects
/
{project_id}
/
chat
/
sessions
/
{session_id}
/
messages
Create Message
curl --request POST \
  --url https://api.ontora.com/v1/projects/{project_id}/chat/sessions/{session_id}/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "<string>",
  "content": "<string>",
  "parts_json": [
    "<unknown>"
  ],
  "context_vault_ids_used": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "graph_delta": {
    "nodes": [],
    "edges": [],
    "ukl_refs": []
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "role": "<string>",
  "content": "<string>",
  "context_vault_ids_used": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "graph_nodes_created": 123,
  "graph_edges_created": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "parts_json": [
    "<unknown>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.ontora.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string<uuid>
required
session_id
string<uuid>
required

Body

application/json
role
string
required
content
string
required
parts_json
any[] | null
context_vault_ids_used
string<uuid>[] | null
graph_delta
GraphDelta · object

Response

Successful Response

id
string<uuid>
required
session_id
string<uuid>
required
role
string
required
content
string
required
context_vault_ids_used
string<uuid>[] | null
required
graph_nodes_created
integer
required
graph_edges_created
integer
required
created_at
string<date-time>
required
parts_json
any[] | null