curl --request POST \
--url https://api.runtools.ai/v1/agent-attachments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"threadId": "<string>",
"filename": "<string>",
"contentType": "<string>",
"agentSlug": "<string>",
"sizeBytes": 123
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"uploadUrl": "<string>",
"method": "<string>",
"headers": {},
"expiresAt": "2023-11-07T05:31:56Z"
}
}Returns a signed Spaces upload URL. Client uploads bytes there, then
finalizes by POST /:id/complete.
curl --request POST \
--url https://api.runtools.ai/v1/agent-attachments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"threadId": "<string>",
"filename": "<string>",
"contentType": "<string>",
"agentSlug": "<string>",
"sizeBytes": 123
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"uploadUrl": "<string>",
"method": "<string>",
"headers": {},
"expiresAt": "2023-11-07T05:31:56Z"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.runtools.ai/llms.txt
Use this file to discover all available pages before exploring further.
WorkOS session token or RunTools API key (rt_live_* / rt_test_*).
Used in Authorization: Bearer <token> header.
Upload target.
Show child attributes