bidAiRuns
Requires permission biddesk:bid:read.
Lists the AI runs on a bid, newest first, at most 200, each with its trace; the model input is given only as its size. 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 BidAiRuns($bidId: ID!) {
bidAiRuns(bidId: $bidId) {
id
errorCode
status
attempts
bidId
cachedInputTokens
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query BidAiRuns($bidId: ID!) {\n bidAiRuns(bidId: $bidId) {\n id\n errorCode\n status\n attempts\n bidId\n cachedInputTokens\n }\n}",
"variables": {
"bidId": "id"
}
}
EOF
Variables:
{
"bidId": "id"
}
Response:
{
"data": {
"bidAiRuns": [
{
"id": "id",
"errorCode": "string",
"status": "FAILED",
"attempts": 0,
"bidId": "id",
"cachedInputTokens": 0
}
]
}
}
bidAiRuns(
bidId: ID!
take: Int
): [BidAiRun!]!
Arguments
bidAiRuns.bidId ● ID! non-null scalar
The bid.
bidAiRuns.take ● Int scalar
At most this many, up to 200.
Type
BidAiRun object
The trace of one Bid Desk AI run on a bid: skill, prompt version, model, tokens, credits, validation errors and output. The model input is shown only as its size.