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
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.
runTokenrunChatheader
AuthorizationBearer <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
header
x-minded-chat-id<token>The chat the run’s token was given for, which its sandbox holds as MINDED_CHAT_ID
agent*stringLength
1 <= lengthapplication/json- body
clientId*stringLength
1 <= length <= 200OK
application/json- response
chatId*stringLength
1 <= lengthseq*integerRange
0 < value <= 9007199254740991curl -X POST 'https://app.minded.com/v1/agents/string/runs' \ -H 'Content-Type: application/json' \ -d '{ "clientId": "string"}'Example Response201
{ "chatId": "string", "seq": 1}