File threads in folder

POST
/api/v1/folders/{folderId}/threads

Files one or more threads into a folder and returns a per-thread outcome of ok, not_found, or not_allowed. Captains file only into Captain folders.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Capy under Settings → API.

Path parameters

folderId*string

Request body

application/json
  1. body
threadIds*array<string>

Response body

FileThreadsResult

application/json
  1. response
outcomes*array<>
curl -X POST "https://api.capy.ai/api/v1/folders/{folderId}/threads" \  -H "Authorization: Bearer $CAPY_API_KEY" \  -H "Content-Type: application/json" \  -d '{"threadIds":[]}'
{  "outcomes": [    {      "threadId": "string",      "outcome": "ok"    }  ]}
Last updated
Open in Capy