{"openapi":"3.1.0","info":{"title":"Sourcehut Tickets (BYOK) API","version":"0.1.0","description":"Sourcehut Tickets (BYOK) lets an AI assistant read your own Sourcehut Tickets data through the Sourcehut Tickets API with a key you supply (SourceHut personal access token (needs PROFILE, TRACKERS and TICKETS read scopes)). Read-only: 6 tools (get_me, list_trackers, get_tracker, list_tickets, get_ticket, list_labels). The BYOK key travels with each request, is used for that one call only and is...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-sourcehuttodo.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-sourcehuttodo/docs"},"termsOfService":"https://connectorbay.com/byok-sourcehuttodo/terms"},"servers":[{"url":"https://byok-sourcehuttodo.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-sourcehuttodo/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/get_me":{"post":{"operationId":"get_me","summary":"Show the SourceHut account the token belongs to: username, canonical name, URL, location and bio. Use for \"Which SourceH","description":"Show the SourceHut account the token belongs to: username, canonical name, URL, location and bio. Use for \"Which SourceHut account is my tickets token for\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_meArguments","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_trackers":{"post":{"operationId":"list_trackers","summary":"List the issue trackers you own with name, description, visibility and dates; page with the returned cursor. Use for \"Wh","description":"List the issue trackers you own with name, description, visibility and dates; page with the returned cursor. Use for \"Which SourceHut issue trackers do I have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"cursor":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor: the cursor value from the previous answer, to get the next page. Leave empty for the first page.","title":"Cursor"}},"title":"list_trackersArguments","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_tracker":{"post":{"operationId":"get_tracker","summary":"Get one tracker by resource id: name, description, visibility, owner and dates. Use for \"Show the SourceHut tracker rid-","description":"Get one tracker by resource id: name, description, visibility, owner and dates. Use for \"Show the SourceHut tracker rid-example-1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"rid":{"description":"Tracker resource id (the rid field returned by list_trackers).","maxLength":200,"title":"Rid","type":"string"}},"required":["rid"],"title":"get_trackerArguments","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_tickets":{"post":{"operationId":"list_tickets","summary":"List the tickets of a tracker (newest activity first as the server orders them) with subject, status, resolution and lab","description":"List the tickets of a tracker (newest activity first as the server orders them) with subject, status, resolution and labels. Use for \"What tickets are open in my SourceHut tracker rid-example-1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"rid":{"description":"Tracker resource id (the rid field returned by list_trackers).","maxLength":200,"title":"Rid","type":"string"},"cursor":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor: the cursor value from the previous answer, to get the next page. Leave empty for the first page.","title":"Cursor"}},"required":["rid"],"title":"list_ticketsArguments","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_ticket":{"post":{"operationId":"get_ticket","summary":"Get one ticket by tracker and number: subject, body text, status, resolution, labels and assignees. Use for \"Show ticket","description":"Get one ticket by tracker and number: subject, body text, status, resolution, labels and assignees. Use for \"Show ticket 1 of my SourceHut tracker rid-example-1\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"rid":{"description":"Tracker resource id (the rid field returned by list_trackers).","maxLength":200,"title":"Rid","type":"string"},"ticket_id":{"description":"Ticket number within the tracker (the id field of a ticket).","minimum":1,"title":"Ticket Id","type":"integer"}},"required":["rid","ticket_id"],"title":"get_ticketArguments","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_labels":{"post":{"operationId":"list_labels","summary":"List the labels defined on a tracker with name and colors. Use for \"Which labels does my SourceHut tracker rid-example-1","description":"List the labels defined on a tracker with name and colors. Use for \"Which labels does my SourceHut tracker rid-example-1 use\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"rid":{"description":"Tracker resource id (the rid field returned by list_trackers).","maxLength":200,"title":"Rid","type":"string"},"cursor":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor: the cursor value from the previous answer, to get the next page. Leave empty for the first page.","title":"Cursor"}},"required":["rid"],"title":"list_labelsArguments","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}}}}