Post Chat
POST
/api/v1/projects/{project_id}/chat
const url = 'https://aura.strangeworks.com/api/v1/projects/example/chat';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"client_msg_id":"example","content":"example","context":[],"conversation_id":"example","file_ids":[]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://aura.strangeworks.com/api/v1/projects/example/chat \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "client_msg_id": "example", "content": "example", "context": [], "conversation_id": "example", "file_ids": [] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
Project Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
ChatResponse
Response from the chat endpoint (202 accepted).
object
canvas_snapshot
Canvas Snapshot
Array<object>
CardResponseobject
card_type
required
CardType
string
created_at
required
Created At
string format: date-time
data
required
Data
object
key
additional properties
gaps
required
Gaps
Array<object>
GapInfoobject
field
required
Field
string
message
required
Message
string
severity
required
Severity
string
id
required
Id
string
instance_data
Instance Data
object
key
additional properties
label
required
Label
string
project_id
required
Project Id
string
status
required
CardStatus
string
updated_at
required
Updated At
string format: date-time
version
required
Version
integer
message
required
ChatMessageResponse
object
affected_card_ids
required
Affected Card Ids
Array<string>
content
required
Content
string
content_segments
Any of:
Array<object>
ContentSegmentDataA single segment in the interleaved content stream.
object
children
Any of:
Array<object>
ToolCallDataA single tool call recorded on a chat message.
object
children
Any of:
Array<object> recursive
null
id
required
Id
string
status
required
Status
string
tool
required
Tool
string
null
type
required
Type
string
null
created_at
required
Created At
string format: date-time
file_ids
Any of:
Array<string>
null
id
required
Id
string
is_partial
Is Partial
boolean
project_id
required
Project Id
string
role
required
Role
string
sequence
required
Sequence
integer
tool_calls
Any of:
Array<object>
ToolCallDataA single tool call recorded on a chat message.
object
children
Any of:
Array<object> recursive
null
id
required
Id
string
status
required
Status
string
tool
required
Tool
string
null
Example
{ "canvas_snapshot": [], "message": { "content_segments": [ { "children": [ { "status": "running" } ], "type": "text" } ], "is_partial": false, "role": "user", "tool_calls": [ { "status": "running" } ] }}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}