{"openapi":"3.1.0","info":{"title":"Anthropic spend limits, service accounts, roles, federation and plugins (your admin key) API","version":"0.1.0","description":"Anthropic spend limits, service accounts, roles, federation and plugins (your admin key) lets an AI assistant read your own Anthropic Org Controls data through the Anthropic Org Controls API with a key you supply (Anthropic Admin API key). Read-only: 8 tools (list_spend_limits, list_effective_spend, list_service_accounts, list_rbac_groups, list_rbac_roles, list_federation_issuers,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-anthropic-org-controls.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-anthropic-org-controls/docs"},"termsOfService":"https://connectorbay.com/byok-anthropic-org-controls/terms"},"servers":[{"url":"https://byok-anthropic-org-controls.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-anthropic-org-controls/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_spend_limits":{"post":{"operationId":"list_spend_limits","summary":"List spend limits configured for the organization (amount, currency, reset period, enabled flag and what they apply to).","description":"List spend limits configured for the organization (amount, currency, reset period, enabled flag and what they apply to). Needs an Admin API key. Use for \"What spend limits are set on my Anthropic organization\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 1000).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"title":"list_spend_limitsArguments","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_effective_spend":{"post":{"operationId":"list_effective_spend","summary":"List the spend limit that applies to each user or scoped API key with the spend so far in the current period. Needs an A","description":"List the spend limit that applies to each user or scoped API key with the spend so far in the current period. Needs an Admin API key. Use for \"How much of their spend limits have my Anthropic users used this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 1000).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"title":"list_effective_spendArguments","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_service_accounts":{"post":{"operationId":"list_service_accounts","summary":"List service accounts of the organization with name, role (admin or developer), description and dates. Needs an Admin AP","description":"List service accounts of the organization with name, role (admin or developer), description and dates. Needs an Admin API key. Use for \"Which service accounts exist in my Anthropic organization\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"include_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to include archived service accounts.","title":"Include Archived"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 1000).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"title":"list_service_accountsArguments","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_rbac_groups":{"post":{"operationId":"list_rbac_groups","summary":"List role-based access control groups with name, source (direct or SCIM) and the roles they hold. Needs an Admin API key","description":"List role-based access control groups with name, source (direct or SCIM) and the roles they hold. Needs an Admin API key. Use for \"Which RBAC groups are defined in my Anthropic organization\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"How many results to return (1 to 1000).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"title":"list_rbac_groupsArguments","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_rbac_roles":{"post":{"operationId":"list_rbac_roles","summary":"List the role-based access control roles of the organization with name and display name. Needs an Admin API key. Use for","description":"List the role-based access control roles of the organization with name and display name. Needs an Admin API key. Use for \"What RBAC roles exist in my Anthropic organization\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"How many results to return (1 to 1000).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"title":"list_rbac_rolesArguments","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_federation_issuers":{"post":{"operationId":"list_federation_issuers","summary":"List workload identity federation issuers (external token issuers trusted by the organization) with issuer URL, JWT life","description":"List workload identity federation issuers (external token issuers trusted by the organization) with issuer URL, JWT lifetime limit and key polling health. Needs an Admin API key. Use for \"Which identity providers are trusted for Anthropic workload federation\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"include_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to include archived issuers.","title":"Include Archived"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 1000).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"title":"list_federation_issuersArguments","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_federation_rules":{"post":{"operationId":"list_federation_rules","summary":"List workload identity federation rules mapping external identities to service accounts, with issuer, target service acc","description":"List workload identity federation rules mapping external identities to service accounts, with issuer, target service account, OAuth scope and token lifetime. Needs an Admin API key. Use for \"Which federation rules let external workloads act as my Anthropic service accounts\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"issuer_id":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only rules of this issuer id.","title":"Issuer Id"},"include_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to include archived rules.","title":"Include Archived"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 1000).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"title":"list_federation_rulesArguments","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_plugins":{"post":{"operationId":"list_plugins","summary":"List plugins of the organization with name, owner type, installation preference, reach and latest version id. Needs an A","description":"List plugins of the organization with name, owner type, installation preference, reach and latest version id. Needs an Admin API key. Use for \"Which Claude plugins are available in my Anthropic organization\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"owner_type":{"anyOf":[{"enum":["organization","user"],"type":"string"},{"type":"null"}],"default":null,"description":"Only plugins owned by the organization or by a user.","title":"Owner Type"},"marketplace_id":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only plugins of this marketplace id.","title":"Marketplace Id"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results to return (1 to 100).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"title":"list_pluginsArguments","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}}}}