Skip to Content
MindedDocsGet started

agents.run

From an agent’s code inside a run, with the run’s token: a member’s API key is refused here, as starting runs with a key comes later.

POST
/agents/{agent}/runs

From an agent’s code inside a run, with the run’s token: a member’s API key is refused here, as starting runs with a key comes later.

Authorization

runTokenrunChat
headerAuthorizationBearer <token>

A run’s own token, which its sandbox holds as MINDED_RUN_TOKEN. It works only while the turn it was given for runs

headerx-minded-chat-id<token>

The chat the run’s token was given for, which its sandbox holds as MINDED_CHAT_ID

Path Parameters

agent*string
Length1 <= length

Request Body

application/json
  1. body
clientId*string
Length1 <= length <= 200

Response Body

OK

application/json
  1. response
chatId*string
Length1 <= length
seq*integer
Range0 < value <= 9007199254740991
Example Request
curl -X POST 'https://app.minded.com/v1/agents/string/runs' \  -H 'Content-Type: application/json' \  -d '{  "clientId": "string"}'
Example Response201
{  "chatId": "string",  "seq": 1}