Frontend API
Exactly one execution action must be provided in the multipart form.
cURL
curl --request POST \ --url https://api.wacht.dev/ai/threads/{thread_id}/run \ --header 'Content-Type: multipart/form-data' \ --cookie __session= \ --form 'message=<string>' \ --form 'files=<string>' \ --form 'request_message_id=<string>' \ --form 'approval_tool_name=<string>' \ --form approval_mode=allow_once \ --form cancel=true \ --form files.items='@example-file'
{ "status": 123, "message": "<string>", "session": { "id": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }, "errors": [ { "code": "<string>", "message": "<string>" } ], "data": { "status": "queued", "conversation_id": "<string>" } }
allow_once
allow_always
Execution queued or cancelled
Show child attributes
Was this page helpful?