Access & visibility
Allow records.ListRecordFiles on your API key.
Acting member required. Send Brigg-Act-As with an approved member account ID. The key supplies permissions; the member selects whose data is used.
The selected member must be active and approved by the credential. This selects whose private data is used; the credential supplies permissions. Private ownership and project boundaries still apply.
Request fields
Send a JSON object with the following fields. Required fields must be included; omit optional fields you do not need.
record_idstringRequiredThe record whose attached files to list.
At least 1 character.
limitintegerOptionalMaximum number of matching results to return. This operation does not provide a continuation cursor.
Range: 1 to 500.
Response
Returns 200 OK with a JSON body.
This operation has no continuation cursor. An empty items array means no matching visible results were returned.
record_idstringRequiredThe record the files are attached to.
truncatedbooleanRequiredTrue when the record has more files than this page holds.
itemsarray of Attached fileRequiredFiles attached to the record that the acting member can read, newest first. truncated is true when the record has more files than limit. This operation has no cursor pagination.
Item fields
file_idstringRequiredThe file's stable ID; the documents operations read and download it.
filenamestringRequiredThe file's name as uploaded, with its extension.
size_bytesnumber or nullRequiredThe stored file's length, or null while it is being verified.
content_typestring or nullRequiredThe stored file's media type, e.g. application/pdf.
created_atnumberRequiredTime the file was created, in Unix milliseconds.
Errors & retries
This operation reads data. It needs no idempotency key and can be retried after a transient failure.
For rate limits, follow the server’s retry guidance and back off. See HTTP errors and safe retries and limits.
| HTTP status | Code | What to do |
|---|---|---|
| 400 | invalid_json |
Send a JSON object with Content-Type: application/json. |
| 400 | invalid_input |
Check the request fields and types. |
| 401 | invalid_key |
The workspace API key is missing, invalid or revoked. |
| 403 | forbidden |
Check the key’s operation and resource grants. Supply Brigg-Act-As with a member authorized by the key’s delegation grant. The selected member must be active and approved by the credential. This selects whose private data is used; the credential supplies permissions. Private ownership and project boundaries still apply. |
| 404 | not_found |
The record does not exist, was deleted, or is not readable with this credential and acting member. A known ID does not grant access. |
| 429 | rate_limited |
Wait for Retry-After before retrying. |
Next steps
JSON schemas
Use the complete schemas for validation or client generation.
Full request JSON schema
{
"type": "object",
"properties": {
"record_id": {
"type": "string",
"minLength": 1,
"description": "The record whose attached files to list."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 500,
"description": "Maximum number of matching results to return. This operation does not provide a continuation cursor."
}
},
"required": [
"record_id"
],
"additionalProperties": false,
"examples": [
{
"record_id": "e_company_example"
}
]
}Full response JSON schema
{
"type": "object",
"properties": {
"record_id": {
"type": "string",
"description": "The record the files are attached to."
},
"truncated": {
"type": "boolean",
"description": "True when the record has more files than this page holds."
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"file_id": {
"type": "string",
"description": "The file's stable ID; the documents operations read and download it."
},
"filename": {
"type": "string",
"description": "The file's name as uploaded, with its extension."
},
"size_bytes": {
"type": [
"number",
"null"
],
"description": "The stored file's length, or null while it is being verified."
},
"content_type": {
"type": [
"string",
"null"
],
"description": "The stored file's media type, e.g. `application/pdf`."
},
"created_at": {
"type": "number",
"description": "Time the file was created, in Unix milliseconds."
}
},
"required": [
"file_id",
"filename",
"size_bytes",
"content_type",
"created_at"
],
"additionalProperties": false,
"title": "Attached file"
},
"description": "Files attached to the record that the acting member can read, newest first. truncated is true when the record has more files than limit. This operation has no cursor pagination."
}
},
"required": [
"record_id",
"items",
"truncated"
],
"additionalProperties": false,
"examples": [
{
"record_id": "e_company_example",
"truncated": false,
"items": [
{
"file_id": "f_contract_example",
"filename": "contract.pdf",
"size_bytes": 48213,
"content_type": "application/pdf",
"created_at": 1794301200000
}
]
}
]
}