{"openapi":"3.1.0","info":{"title":"Stripe Reporting (BYOK) API","version":"0.1.0","description":"Stripe Reporting (BYOK) lets an AI assistant read your own Stripe Reporting data through the Stripe Reporting API with a key you supply (restricted API key with read permissions only (starts with rk_live_ or rk_test_)). Read-only: 6 tools (list_report_types, get_report_type, list_report_runs, get_report_run, list_sigma_scheduled_query_runs, get_sigma_scheduled_query_run). The BYOK key travels...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-stripe-reporting.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-stripe-reporting/docs"},"termsOfService":"https://connectorbay.com/byok-stripe-reporting/terms"},"servers":[{"url":"https://byok-stripe-reporting.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-stripe-reporting/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_report_types":{"post":{"operationId":"list_report_types","summary":"List the financial report types you can run, such as balance summaries and payout reconciliation, with the date range ea","description":"List the financial report types you can run, such as balance summaries and payout reconciliation, with the date range each has data for. Dates are Unix seconds. Works with a restricted key that has read access to this resource only. Use for \"Which Stripe report types are available\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_report_typesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_report_type":{"post":{"operationId":"get_report_type","summary":"Get one report type by id, for example balance.summary.1, with its name and data availability window. Works with a restr","description":"Get one report type by id, for example balance.summary.1, with its name and data availability window. Works with a restricted key that has read access to this resource only. Use for \"What date range does report type balance.summary.1 cover\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"report_type":{"description":"Report type id, for example balance.summary.1.","maxLength":200,"title":"Report Type","type":"string"}},"required":["report_type"],"title":"get_report_typeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_report_runs":{"post":{"operationId":"list_report_runs","summary":"List report runs that were started, with report type, status, requested interval and currency. The file itself is not re","description":"List report runs that were started, with report type, status, requested interval and currency. The file itself is not returned. Works with a restricted key that has read access to this resource only. Use for \"Which report runs finished recently\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"created_after":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only objects created at or after this time, as a Unix timestamp in seconds.","title":"Created After"},"created_before":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only objects created at or before this time, as a Unix timestamp in seconds.","title":"Created Before"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many objects to return (1 to 100).","title":"Limit"},"starting_after":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor for the next page: the id of the last object on the previous page. Use it while has_more is true.","title":"Starting After"}},"title":"list_report_runsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_report_run":{"post":{"operationId":"get_report_run","summary":"Get one report run by id: status, error text, requested interval and when it finished. Works with a restricted key that ","description":"Get one report run by id: status, error text, requested interval and when it finished. Works with a restricted key that has read access to this resource only. Use for \"Did report run frr_1Nf7GKLkdIwHu7ix finish\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"report_run":{"description":"Report run id, for example frr_1Nf7GKLkdIwHu7ixPXr6VASm.","maxLength":200,"title":"Report Run","type":"string"}},"required":["report_run"],"title":"get_report_runArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_sigma_scheduled_query_runs":{"post":{"operationId":"list_sigma_scheduled_query_runs","summary":"List runs of Sigma scheduled queries with title, status, data load time and when the result file expires. Result files a","description":"List runs of Sigma scheduled queries with title, status, data load time and when the result file expires. Result files are not returned. Works with a restricted key that has read access to this resource only. Use for \"Which scheduled Sigma queries ran lately\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many objects to return (1 to 100).","title":"Limit"},"starting_after":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor for the next page: the id of the last object on the previous page. Use it while has_more is true.","title":"Starting After"}},"title":"list_sigma_scheduled_query_runsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_sigma_scheduled_query_run":{"post":{"operationId":"get_sigma_scheduled_query_run","summary":"Get one Sigma scheduled query run by id: title, status, error message and result expiry. Works with a restricted key tha","description":"Get one Sigma scheduled query run by id: title, status, error message and result expiry. Works with a restricted key that has read access to this resource only. Use for \"Did Sigma scheduled query run sqr_1NHkbnLkdIwHu7ix succeed\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"scheduled_query_run":{"description":"Scheduled query run id, for example sqr_1NHkbnLkdIwHu7ixbV4jIDYq.","maxLength":200,"title":"Scheduled Query Run","type":"string"}},"required":["scheduled_query_run"],"title":"get_sigma_scheduled_query_runArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}