{"openapi":"3.1.0","info":{"title":"GitHub Code Security Configs (BYOK) API","version":"0.1.0","description":"GitHub Code Security Configs (BYOK) lets an AI assistant read your own GitHub Code Security Configs data through the GitHub Code Security Configs API with a key you supply (personal access token). Read-only: 9 tools (list_org_configurations, get_org_configuration, list_org_default_configurations, list_org_configuration_repositories, list_enterprise_configurations, get_enterprise_configuration,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-github-code-security-configs.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-github-code-security-configs/docs"},"termsOfService":"https://connectorbay.com/byok-github-code-security-configs/terms"},"servers":[{"url":"https://byok-github-code-security-configs.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-github-code-security-configs/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_org_configurations":{"post":{"operationId":"list_org_configurations","summary":"List an organization's code security configurations with the state of Dependabot, code scanning and secret scanning sett","description":"List an organization's code security configurations with the state of Dependabot, code scanning and secret scanning settings. Use for \"Which code security configurations does octo-org have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org":{"description":"Organization login, for example 'octo-org'.","maxLength":200,"title":"Org","type":"string"},"target_type":{"anyOf":[{"enum":["global","all"],"type":"string"},{"type":"null"}],"default":"all","description":"Which configurations: global (GitHub recommended) or all.","title":"Target Type"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many items to return (1 to 100).","title":"Per Page"},"before":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous response's Link header to page backwards.","title":"Before"},"after":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous response's Link header to page forwards.","title":"After"}},"required":["org"],"title":"list_org_configurationsArguments","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_org_configuration":{"post":{"operationId":"get_org_configuration","summary":"Get one organization code security configuration with all its feature settings. Use for \"What does the Strict baseline s","description":"Get one organization code security configuration with all its feature settings. Use for \"What does the Strict baseline security configuration of octo-org enable\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org":{"description":"Organization login, for example 'octo-org'.","maxLength":200,"title":"Org","type":"string"},"configuration_id":{"description":"Code security configuration id (integer) from the configuration list.","minimum":1,"title":"Configuration Id","type":"integer"}},"required":["org","configuration_id"],"title":"get_org_configurationArguments","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_org_default_configurations":{"post":{"operationId":"list_org_default_configurations","summary":"Show which configuration is applied by default to new repositories of an organization. Use for \"Which security configura","description":"Show which configuration is applied by default to new repositories of an organization. Use for \"Which security configuration do new octo-org repositories get by default\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org":{"description":"Organization login, for example 'octo-org'.","maxLength":200,"title":"Org","type":"string"}},"required":["org"],"title":"list_org_default_configurationsArguments","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_org_configuration_repositories":{"post":{"operationId":"list_org_configuration_repositories","summary":"List repositories attached to an organization code security configuration with their attachment status. Use for \"Which o","description":"List repositories attached to an organization code security configuration with their attachment status. Use for \"Which octo-org repositories use the Strict baseline security configuration\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org":{"description":"Organization login, for example 'octo-org'.","maxLength":200,"title":"Org","type":"string"},"configuration_id":{"description":"Code security configuration id (integer) from the configuration list.","minimum":1,"title":"Configuration Id","type":"integer"},"status":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":"all","description":"Only repositories with this attachment status: attached, attaching, detached, removed, enforced, failed, updating, removed_by_enterprise (default all).","title":"Status"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many items to return (1 to 100).","title":"Per Page"},"before":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous response's Link header to page backwards.","title":"Before"},"after":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous response's Link header to page forwards.","title":"After"}},"required":["org","configuration_id"],"title":"list_org_configuration_repositoriesArguments","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_enterprise_configurations":{"post":{"operationId":"list_enterprise_configurations","summary":"List an enterprise's code security configurations with feature settings. Use for \"Which code security configurations doe","description":"List an enterprise's code security configurations with feature settings. Use for \"Which code security configurations does octo-enterprise have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"enterprise":{"description":"Enterprise slug (the name in the enterprise URL), for example 'octo-enterprise'.","maxLength":100,"title":"Enterprise","type":"string"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many items to return (1 to 100).","title":"Per Page"},"before":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous response's Link header to page backwards.","title":"Before"},"after":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous response's Link header to page forwards.","title":"After"}},"required":["enterprise"],"title":"list_enterprise_configurationsArguments","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_enterprise_configuration":{"post":{"operationId":"get_enterprise_configuration","summary":"Get one enterprise code security configuration with its feature settings. Use for \"What does enterprise security configu","description":"Get one enterprise code security configuration with its feature settings. Use for \"What does enterprise security configuration 17 of octo-enterprise enable\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"enterprise":{"description":"Enterprise slug (the name in the enterprise URL), for example 'octo-enterprise'.","maxLength":100,"title":"Enterprise","type":"string"},"configuration_id":{"description":"Code security configuration id (integer) from the configuration list.","minimum":1,"title":"Configuration Id","type":"integer"}},"required":["enterprise","configuration_id"],"title":"get_enterprise_configurationArguments","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_enterprise_default_configurations":{"post":{"operationId":"list_enterprise_default_configurations","summary":"Show which configuration is applied by default to new repositories of an enterprise. Use for \"Which security configurati","description":"Show which configuration is applied by default to new repositories of an enterprise. Use for \"Which security configuration do new octo-enterprise repositories get by default\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"enterprise":{"description":"Enterprise slug (the name in the enterprise URL), for example 'octo-enterprise'.","maxLength":100,"title":"Enterprise","type":"string"}},"required":["enterprise"],"title":"list_enterprise_default_configurationsArguments","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_enterprise_configuration_repositories":{"post":{"operationId":"list_enterprise_configuration_repositories","summary":"List repositories attached to an enterprise code security configuration with their attachment status. Use for \"Which oct","description":"List repositories attached to an enterprise code security configuration with their attachment status. Use for \"Which octo-enterprise repositories use security configuration 17\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"enterprise":{"description":"Enterprise slug (the name in the enterprise URL), for example 'octo-enterprise'.","maxLength":100,"title":"Enterprise","type":"string"},"configuration_id":{"description":"Code security configuration id (integer) from the configuration list.","minimum":1,"title":"Configuration Id","type":"integer"},"status":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":"all","description":"Only repositories with this attachment status: attached, attaching, detached, removed, enforced, failed, updating, removed_by_enterprise (default all).","title":"Status"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many items to return (1 to 100).","title":"Per Page"},"before":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous response's Link header to page backwards.","title":"Before"},"after":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous response's Link header to page forwards.","title":"After"}},"required":["enterprise","configuration_id"],"title":"list_enterprise_configuration_repositoriesArguments","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_org_private_registries":{"post":{"operationId":"list_org_private_registries","summary":"List the private package registries configured for Dependabot and code scanning in an organization (registry type, URL a","description":"List the private package registries configured for Dependabot and code scanning in an organization (registry type, URL and visibility; credentials are never returned). Use for \"Which private package registries are configured for octo-org\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org":{"description":"Organization login, for example 'octo-org'.","maxLength":200,"title":"Org","type":"string"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":30,"description":"How many items to return (1 to 100).","title":"Per Page"},"page":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["org"],"title":"list_org_private_registriesArguments","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}}}}