{"openapi":"3.1.0","info":{"title":"Scaleway Billing (BYOK) API","version":"0.1.0","description":"Scaleway Billing (BYOK) lets an AI assistant read your own Scaleway Billing data through the Scaleway Billing API with a key you supply (API secret key (give it billing read permission)). Read-only: 6 tools (list_invoices, get_invoice, list_consumptions, list_taxes, list_discounts, list_charges). The BYOK key travels with each request, is used for that one call only and is never stored, logged or...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-scaleway-billing.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-scaleway-billing/docs"},"termsOfService":"https://connectorbay.com/byok-scaleway-billing/terms"},"servers":[{"url":"https://byok-scaleway-billing.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-scaleway-billing/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_invoices":{"post":{"operationId":"list_invoices","summary":"List invoices with number, period, issue and due dates, state, type and untaxed, tax and taxed totals. Use for \"What wer","description":"List invoices with number, period, issue and due dates, state, type and untaxed, tax and taxed totals. Use for \"What were my Scaleway invoices this year\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organization_id":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Id (UUID) of the Organization; usually it can be left out and the key's Organization is used.","title":"Organization Id"},"invoice_type":{"anyOf":[{"enum":["periodic","purchase","credit_note"],"type":"string"},{"type":"null"}],"default":null,"description":"Only invoices of this type.","title":"Invoice Type"},"billing_period_start_after":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only invoices whose period starts after this ISO 8601 time, for example 2026-01-01T00:00:00Z.","title":"Billing Period Start After"},"billing_period_start_before":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only invoices whose period starts before this ISO 8601 time.","title":"Billing Period Start Before"},"order_by":{"anyOf":[{"enum":["invoice_number_desc","invoice_number_asc","start_date_desc","start_date_asc","issued_date_desc","issued_date_asc","due_date_desc","due_date_asc"],"type":"string"},{"type":"null"}],"default":"start_date_desc","description":"Order of the list.","title":"Order By"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_invoicesArguments","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_invoice":{"post":{"operationId":"get_invoice","summary":"Get one invoice by id with period, dates, state and totals. Use for \"How much was Scaleway invoice 77777777-7777-4777-87","description":"Get one invoice by id with period, dates, state and totals. Use for \"How much was Scaleway invoice 77777777-7777-4777-8777-777777777777\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"invoice_id":{"description":"Id (UUID) of the invoice, as shown by list_invoices.","maxLength":64,"title":"Invoice Id","type":"string"}},"required":["invoice_id"],"title":"get_invoiceArguments","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_consumptions":{"post":{"operationId":"list_consumptions","summary":"List consumption per product for a billing period (the current month by default) with Project, SKU, unit and billed quan","description":"List consumption per product for a billing period (the current month by default) with Project, SKU, unit and billed quantity. Use for \"What have I consumed on Scaleway so far this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organization_id":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Id (UUID) of the Organization; usually it can be left out and the key's Organization is used.","title":"Organization Id"},"project_id":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Only consumption of this Project id (UUID).","title":"Project Id"},"billing_period":{"anyOf":[{"maxLength":7,"type":"string"},{"type":"null"}],"default":null,"description":"Billing month in YYYY-MM format; the current month when left out.","title":"Billing Period"},"category_name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only consumption of this product category, for example 'Compute'.","title":"Category Name"},"order_by":{"anyOf":[{"enum":["updated_at_desc","updated_at_asc","category_name_desc","category_name_asc"],"type":"string"},{"type":"null"}],"default":"updated_at_desc","description":"Order of the list.","title":"Order By"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_consumptionsArguments","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_taxes":{"post":{"operationId":"list_taxes","summary":"List taxes charged in a billing period with description, rate, currency and total tax value. Use for \"How much tax did S","description":"List taxes charged in a billing period with description, rate, currency and total tax value. Use for \"How much tax did Scaleway charge me last month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organization_id":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Id (UUID) of the Organization; usually it can be left out and the key's Organization is used.","title":"Organization Id"},"billing_period":{"anyOf":[{"maxLength":7,"type":"string"},{"type":"null"}],"default":null,"description":"Billing month in YYYY-MM format; the current month when left out.","title":"Billing Period"},"order_by":{"anyOf":[{"enum":["updated_at_desc","updated_at_asc","category_name_desc","category_name_asc"],"type":"string"},{"type":"null"}],"default":"updated_at_desc","description":"Order of the list.","title":"Order By"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_taxesArguments","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_discounts":{"post":{"operationId":"list_discounts","summary":"List discounts and coupons on the Organization with description, mode, validity dates and the value used and remaining. ","description":"List discounts and coupons on the Organization with description, mode, validity dates and the value used and remaining. Use for \"Do I have any Scaleway credit or discounts left\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organization_id":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Id (UUID) of the Organization; usually it can be left out and the key's Organization is used.","title":"Organization Id"},"order_by":{"anyOf":[{"enum":["creation_date_desc","creation_date_asc","start_date_desc","start_date_asc","stop_date_desc","stop_date_asc"],"type":"string"},{"type":"null"}],"default":"creation_date_desc","description":"Order of the list.","title":"Order By"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 100).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_discountsArguments","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_charges":{"post":{"operationId":"list_charges","summary":"List charges per resource over a time range with SKU, project, resource name, period and price. Use for \"Which Scaleway ","description":"List charges per resource over a time range with SKU, project, resource name, period and price. Use for \"Which Scaleway resources cost me the most this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"organization_id":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"default":null,"description":"Id (UUID) of the Organization; usually it can be left out and the key's Organization is used.","title":"Organization Id"},"start_date_after":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only charges starting after this ISO 8601 time, for example 2026-10-01T00:00:00Z.","title":"Start Date After"},"end_date_before":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only charges ending before this ISO 8601 time.","title":"End Date Before"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 100).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Token from next_page_token of the previous answer to get the next page.","title":"Page Token"}},"title":"list_chargesArguments","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}}}}