{"openapi":"3.1.0","info":{"title":"GitHub Org Tokens (BYOK) API","version":"0.1.0","description":"GitHub Org Tokens (BYOK) lets an AI assistant read your own GitHub Org Tokens data through the GitHub Org Tokens API with a key you supply (personal access token (organization owner)). Read-only: 5 tools (list_pat_grants, list_pat_grant_repositories, list_pat_grant_requests, list_pat_request_repositories, list_org_role_users). The BYOK key travels with each request, is used for that one call only...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-github-org-tokens.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-github-org-tokens/docs"},"termsOfService":"https://connectorbay.com/byok-github-org-tokens/terms"},"servers":[{"url":"https://byok-github-org-tokens.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-github-org-tokens/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_pat_grants":{"post":{"operationId":"list_pat_grants","summary":"List fine-grained personal access tokens approved for an organization with owner login, permissions, repository selectio","description":"List fine-grained personal access tokens approved for an organization with owner login, permissions, repository selection, expiry and last use (token values are never returned). Use for \"Which fine-grained tokens can access octo-org and which are unused for months\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org":{"description":"Organization login, for example 'octo-org'.","maxLength":200,"title":"Org","type":"string"},"sort":{"anyOf":[{"const":"created_at","type":"string"},{"type":"null"}],"default":"created_at","description":"Sort field; only created_at is supported.","title":"Sort"},"direction":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":"desc","description":"Sort direction by creation time: asc or desc.","title":"Direction"},"owner":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only tokens owned by this one GitHub login.","title":"Owner"},"repository":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only tokens with access to this repository name.","title":"Repository"},"permission":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only tokens holding this permission, for example 'contents'.","title":"Permission"},"last_used_before":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only tokens last used before this ISO 8601 time.","title":"Last Used Before"},"last_used_after":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only tokens last used after this ISO 8601 time.","title":"Last Used After"},"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_pat_grantsArguments","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_pat_grant_repositories":{"post":{"operationId":"list_pat_grant_repositories","summary":"List the repositories one approved fine-grained token can access in an organization. Use for \"Which octo-org repositorie","description":"List the repositories one approved fine-grained token can access in an organization. Use for \"Which octo-org repositories can token 25381 reach\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"org":{"description":"Organization login, for example 'octo-org'.","maxLength":200,"title":"Org","type":"string"},"pat_id":{"description":"Token grant id (the id field from list_pat_grants).","minimum":1,"title":"Pat Id","type":"integer"},"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","pat_id"],"title":"list_pat_grant_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_pat_grant_requests":{"post":{"operationId":"list_pat_grant_requests","summary":"List pending requests for fine-grained personal access tokens to access an organization, with the stated reason, permiss","description":"List pending requests for fine-grained personal access tokens to access an organization, with the stated reason, permissions and expiry. Use for \"Which fine-grained token requests are waiting for approval in 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"},"sort":{"anyOf":[{"const":"created_at","type":"string"},{"type":"null"}],"default":"created_at","description":"Sort field; only created_at is supported.","title":"Sort"},"direction":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":"desc","description":"Sort direction by creation time: asc or desc.","title":"Direction"},"owner":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only requests by this one GitHub login.","title":"Owner"},"repository":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only tokens with access to this repository name.","title":"Repository"},"permission":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only tokens holding this permission, for example 'contents'.","title":"Permission"},"last_used_before":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only tokens last used before this ISO 8601 time.","title":"Last Used Before"},"last_used_after":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only tokens last used after this ISO 8601 time.","title":"Last Used After"},"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_pat_grant_requestsArguments","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_pat_request_repositories":{"post":{"operationId":"list_pat_request_repositories","summary":"List the repositories a pending fine-grained token request asks to access. Use for \"Which repositories does token reques","description":"List the repositories a pending fine-grained token request asks to access. Use for \"Which repositories does token request 25381 ask for in 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"},"pat_request_id":{"description":"Request id (the id field from list_pat_grant_requests).","minimum":1,"title":"Pat Request Id","type":"integer"},"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","pat_request_id"],"title":"list_pat_request_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_role_users":{"post":{"operationId":"list_org_role_users","summary":"List the users assigned an organization role, directly or through a team, by login. Use for \"Who holds organization role","description":"List the users assigned an organization role, directly or through a team, by login. Use for \"Who holds organization role 8132 in 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"},"role_id":{"description":"Organization role id (see the organization roles list).","minimum":1,"title":"Role Id","type":"integer"},"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","role_id"],"title":"list_org_role_usersArguments","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}}}}