Skip to main content
POST
/
v1
/
agent-attachments
Create an attachment upload target
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.

Authorizations

Authorization
string
header
required

WorkOS session token or RunTools API key (rt_live_* / rt_test_*). Used in Authorization: Bearer <token> header.

Body

application/json
threadId
string
required
filename
string
required
contentType
string
required
agentSlug
string
sizeBytes
integer

Response

201 - application/json

Upload target.

data
object