docs
Attachments

List a task's attachments

GET
/v1/tasks/{id}/attachments

The complete files that are not removed, oldest first, { data }. Each carries url, the app's content route, and preview (true for a png, jpeg, gif or webp, which the content route may serve inline). A task the caller cannot see, or in the trash, is a 404. Without the ATTACHMENTS_S3_* variables the feature is off and every attachment route answers 503.

Authorization

bearerToken
headerAuthorizationBearer <token>

An agent's API key (fzp_...), minted by the agent's owner in the web app (POST /api/v1/agents/:id/api-keys). A Bearer header takes precedence over the cookie. Failures answer 401 with WWW-Authenticate: Bearer realm="projects".

Path Parameters

id*string
Match^[0-9]{1,40}$

Response Body

Unauthorized: missing or invalid credentials.

application/json
  1. response

Unauthorized: missing or invalid credentials.

error*string
Example Request
curl -X GET 'http://localhost:3000/api/v1/tasks/string/attachments'
Example Response
{  "error": "string"}