Skip to content
Skip to Content
Coder Docs

Submit chat tool results

POST
/api/v2/chats/{chat}/tool-results

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

chat*string

Chat ID

Formatuuid

Request Body

Request body

application/json
  1. body
results?array<>

Response Body

No Content

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X POST \	"$CODER_URL/api/v2/chats/{chat}/tool-results" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "results": [    {      "is_error": true,      "output": [        0      ],      "tool_call_id": "string"    }  ]}'
Example Response204
Empty