bidFiles
Requires permission biddesk:bid:read.
Lists a live bid's uploaded (READY) files, newest first. Requires Bid Desk and permission to read bids.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query BidFiles($bidId: ID!) {
bidFiles(bidId: $bidId) {
id
fileName
status
createdAt
bidId
contentType
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query BidFiles($bidId: ID!) {\n bidFiles(bidId: $bidId) {\n id\n fileName\n status\n createdAt\n bidId\n contentType\n }\n}",
"variables": {
"bidId": "id"
}
}
EOF
Variables:
{
"bidId": "id"
}
Response:
{
"data": {
"bidFiles": [
{
"id": "id",
"fileName": "string",
"status": "READY",
"createdAt": "2025-01-15T00:00:00Z",
"bidId": "id",
"contentType": "string"
}
]
}
}
bidFiles(
bidId: ID!
): [BidFile!]!
Arguments
bidFiles.bidId ● ID! non-null scalar
The bid.
Type
BidFile object
A file attached to a bid, kept in private storage. Open it through bidFileDownloadUrl.