API ReferenceFiles

Retrieve files for connection

Fetches files belonging to the authenticated user's connection identified by `{id}`. - If `file_name` is provided, returns that single file (404 if not found). - Otherwise returns up to `limit` files (or all, if `limit` is omitted).

GET
/api/files/{id}

Authorization

AuthorizationRequiredBearer <token>

Bearer token authentication required

In: header

Path Parameters

idRequiredstring

The unique identifier of the connection

Query Parameters

file_namestring

Exact name of a single file to fetch

limitinteger

Maximum number of files to return

Format: "int32"
curl -X GET "https://app.dcup.dev/api/files/123?file_name=invoice.pdf" \
  -H "Authorization: Bearer <token>"

File(s) retrieved successfully

{
  "name": "string",
  "totalPages": 0,
  "chunksIds": [
    "string"
  ]
}