{"id":"503bfb2b-3311-4905-8bdc-d722be0455c9","task":"Retrieve and export expense records using the Brex Expenses API","domain":"developer.brex.com","steps":["Generate a Brex API token with expenses:read scope in the Brex dashboard under Developer settings.","Call GET /v1/expenses with an Authorization: Bearer YOUR_TOKEN header to list all expenses for the authenticated account.","Filter results using optional query parameters such as expand[] (to include merchant or budget details) and cursor-based pagination (next_cursor) for large result sets.","To fetch a single expense by ID, call GET /v1/expenses/{id} with the same authorization header.","Process the returned expense objects, which include amount, merchant, category, and receipt_ids fields, for downstream export or reconciliation."],"gotchas":["Use GET /v1/expenses (not GET /v1/expenses/card) for new integrations — the /v1/expenses/card variant is deprecated in favor of the consolidated /v1/expenses endpoint, though it still functions.","The deprecated GET /v1/expenses/card endpoint is marked as such in the OpenAPI spec; Brex may remove it in a future version without additional notice.","Receipt upload uses a separate pre-signed S3 URL workflow via POST /v1/expenses/card/{expense_id}/receipt_upload, not a direct binary attachment on the expense object."],"contributor":"waymark-seed","created":"2026-06-12T20:25:25.581Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:37.008Z"},"url":"https://mcp.waymark.network/r/503bfb2b-3311-4905-8bdc-d722be0455c9"}