{"openapi":"3.1.0","info":{"title":"Throughpoint API","version":"1.0.0","description":"Send events that Throughpoint checks against your tools, manage approval rules, and receive webhooks for cards and writes. Authenticate with an API key from Settings → API: `Authorization: Bearer tp_live_…`."},"servers":[{"url":"https://api.throughpoint.dev"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key from Settings → API."}},"schemas":{"ResolvedRef":{"type":"object","properties":{"ref":{"type":"string","description":"The ticket the `ref` you sent was matched to.","example":"TP-482"},"title":{"type":["string","null"],"example":"Auth token refresh"},"probability":{"type":"number","minimum":0,"maximum":1,"description":"How likely the match is right, from 0 to 1.","example":0.93}},"required":["ref","title","probability"]},"EventAccepted":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The event's id. Pass it to `GET /v1/events/{id}`.","example":"6c1f0e0a-7d1b-4a55-9d3e-2f1a6c4b8e10"},"status":{"type":"string","enum":["accepted","resolved","needs_confirmation"],"description":"`accepted`: `ref` is a ticket key; evaluation is async. `resolved`: `ref` wasn't a key, so Throughpoint matched it to a ticket (see `resolved`) and evaluates the event against that. `needs_confirmation`: `ref` wasn't a key and no ticket matched confidently enough; nothing is raised, and `resolved` holds the best guess when there is one. Send the key to act on it."},"resolved":{"$ref":"#/components/schemas/ResolvedRef"}},"required":["id","status"]},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"invalid_request"},"message":{"type":"string","example":"ref: Required"},"request_id":{"type":"string","example":"req_8f3a2c1d9e7b4a60"}},"required":["code","message","request_id"]}},"required":["error"]},"EventInput":{"type":"object","properties":{"source":{"type":"string","minLength":1,"maxLength":64,"description":"Where the event comes from: `deploy`, `incident`, `release`…","example":"deploy"},"ref":{"type":"string","minLength":1,"maxLength":128,"description":"The ticket the event is about: `TP-482`, `ENG-12`, `acme/api#7`. Anything else (`auth refresh`) is matched to a ticket by its words; see `status` in the response.","example":"TP-482"},"status":{"type":"string","minLength":1,"maxLength":64,"description":"What happened to it. `shipped`, `deployed`, `released`, `done` mean done; `in_review` means in review; `in_progress` means in progress.","example":"shipped"},"actor":{"type":"string","maxLength":128,"description":"Who or what caused the event.","example":"ada@acme.dev"},"url":{"type":"string","maxLength":2048,"format":"uri","description":"A link shown on the card.","example":"https://ci.acme.dev/runs/1842"},"occurred_at":{"type":"string","format":"date-time","description":"When it happened. Defaults to now.","example":"2026-10-27T09:41:00Z"}},"required":["source","ref","status"]},"EventStatus":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The event's id."},"status":{"type":"string","enum":["accepted","processed","no_match","gated"],"description":"`accepted`: not evaluated yet. `processed`: a card was raised (`proposal_id`). `no_match`: no card, see `reason`. `gated`: the workspace's plan or billing state doesn't run it."},"reason":{"type":"string","description":"Why there's no card: `unknown_ref` (no synced ticket with that ref), `unknown_status` (a status we can't map), `already_there` (the ticket is already at or past it), `write_disabled` (moving tickets is switched off).","example":"unknown_ref"},"proposal_id":{"type":"string","format":"uuid","description":"The card the event raised (or the open card it joined)."},"source":{"type":"string","description":"The `source` you sent."},"ref":{"type":"string","description":"The `ref` you sent."},"received_at":{"type":"string","format":"date-time","description":"When Throughpoint stored it."}},"required":["id","status","source","ref","received_at"]},"Rule":{"type":"object","properties":{"project":{"type":"string","description":"`jira:KEY`, `linear:KEY`, `github:owner/repo` or `clickup:listId`."},"policy":{"type":"string","enum":["anyone","assignee","leads"],"description":"`anyone`: any member. `assignee`: the ticket's owner, or a lead. `leads`: leads and admins only.","example":"assignee"},"fallback":{"type":"string","enum":["anyone","assignee","leads"],"description":"Who decides an `assignee` card with no matched assignee.","example":"assignee"}},"required":["project","policy","fallback"]},"RuleList":{"type":"object","properties":{"default":{"type":"string","enum":["anyone","assignee","leads"],"description":"`anyone`: any member. `assignee`: the ticket's owner, or a lead. `leads`: leads and admins only.","example":"assignee"},"per_project_applied":{"type":"boolean","description":"False on Starter: rules are kept but not applied until you upgrade."},"rules":{"type":"array","items":{"$ref":"#/components/schemas/Rule"},"description":"Per-project rules, sorted by project."}},"required":["default","per_project_applied","rules"]},"RuleInput":{"type":"object","properties":{"project":{"type":"string","minLength":3,"maxLength":256,"description":"Must match `{project}` in the URL.","example":"jira:TP"},"policy":{"type":"string","enum":["anyone","assignee","leads"],"description":"`anyone`: any member. `assignee`: the ticket's owner, or a lead. `leads`: leads and admins only.","example":"assignee"},"fallback":{"type":"string","enum":["anyone","assignee","leads"],"description":"Who decides when an `assignee` card has no assignee we can match. Default `leads`.","example":"leads"}},"required":["project","policy"]},"RuleRemoved":{"type":"object","properties":{"project":{"type":"string","description":"The project whose rule was removed."},"removed":{"type":"boolean","enum":[true],"description":"Always `true`."}},"required":["project","removed"]},"WebhookEndpoint":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The endpoint's id."},"url":{"type":"string","format":"uri","description":"Where deliveries are POSTed."},"events":{"type":"array","items":{"type":"string","enum":["card.created","card.approved","card.dismissed","card.expired","action.executed","action.failed"],"example":"card.approved"},"description":"Events this endpoint gets."},"active":{"type":"boolean","description":"False when switched off."},"disabled_reason":{"type":["string","null"],"description":"`failing` when Throughpoint switched it off after three days of failures."},"created_at":{"type":"string","format":"date-time","description":"When it was added."},"last_success_at":{"type":["string","null"],"format":"date-time","description":"Last delivery that got a 2xx."},"last_failure_at":{"type":["string","null"],"format":"date-time","description":"Last delivery that failed."}},"required":["id","url","events","active","disabled_reason","created_at","last_success_at","last_failure_at"]},"WebhookEndpointCreated":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"type":"object","properties":{"secret":{"type":"string","description":"Signing secret. Shown once; store it to verify `Throughpoint-Signature`.","example":"whsec_4fN2…"}},"required":["secret"]}]},"WebhookEndpointInput":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri","description":"An https URL on a public host.","example":"https://hooks.acme.dev/throughpoint"},"events":{"type":"array","items":{"type":"string","enum":["card.created","card.approved","card.dismissed","card.expired","action.executed","action.failed"],"example":"card.approved"},"minItems":1,"description":"One or more of the event types.","example":["card.created","action.executed"]}},"required":["url","events"]},"WebhookSecret":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The endpoint's id."},"secret":{"type":"string","description":"The new signing secret, shown once."}},"required":["id","secret"]},"WebhookTestQueued":{"type":"object","properties":{"delivery_id":{"type":"string","format":"uuid","description":"Matches the `Throughpoint-Delivery` header the endpoint receives."}},"required":["delivery_id"]}},"parameters":{}},"paths":{"/v1/events":{"post":{"tags":["Events"],"summary":"Send an event","description":"Report a deploy, incident, release or any other event about a ticket. Throughpoint checks it against your tools like any other source; if the ticket is behind, a card asks to move it. Works on every plan. Send an `Idempotency-Key` header to make retries safe; without one, an identical body is treated as the same event.","security":[{"apiKey":[]}],"parameters":[{"schema":{"type":"string","maxLength":255,"description":"Any unique string per event, for example your CI run id."},"required":false,"name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventInput"}}}},"responses":{"200":{"description":"This event was already received; the original id is returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventAccepted"}}}},"202":{"description":"Accepted. Evaluation runs within seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventAccepted"}}}},"400":{"description":"The request body or parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The API key doesn't have the scope this endpoint needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is larger than 64 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was already used with a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key. Wait for `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side. Safe to retry with the same Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events/{id}":{"get":{"tags":["Events"],"summary":"Check an event","description":"What happened to an event you sent: still waiting, a card was raised, or why not.","security":[{"apiKey":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The event.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventStatus"}}}},"400":{"description":"The request body or parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The API key doesn't have the scope this endpoint needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key. Wait for `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side. Safe to retry with the same Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rules":{"get":{"tags":["Rules"],"summary":"List approval rules","description":"The workspace default policy plus each per-project rule.","security":[{"apiKey":[]}],"responses":{"200":{"description":"The rules.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleList"}}}},"401":{"description":"The API key is missing, invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The API key doesn't have the scope this endpoint needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key. Wait for `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side. Safe to retry with the same Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/rules/{project}":{"put":{"tags":["Rules"],"summary":"Set a project's rule","description":"Decide who can approve cards for one Jira project, Linear team, GitHub repo or ClickUp list. Overrides always win over the workspace default. Team and Enterprise plans.","security":[{"apiKey":[]}],"parameters":[{"schema":{"type":"string","minLength":3,"maxLength":256,"description":"`jira:KEY`, `linear:KEY`, `github:owner/repo` or `clickup:listId`, URL-encoded (`jira%3ATP`).","example":"jira:TP"},"required":true,"name":"project","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleInput"}}}},"responses":{"200":{"description":"The rule as saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rule"}}}},"400":{"description":"The request body or parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The workspace's plan doesn't include this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The API key doesn't have the scope this endpoint needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is larger than 64 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key. Wait for `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side. Safe to retry with the same Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"tags":["Rules"],"summary":"Remove a project's rule","description":"The project goes back to the workspace default.","security":[{"apiKey":[]}],"parameters":[{"schema":{"type":"string","minLength":3,"maxLength":256,"description":"`jira:KEY`, `linear:KEY`, `github:owner/repo` or `clickup:listId`, URL-encoded (`jira%3ATP`).","example":"jira:TP"},"required":true,"name":"project","in":"path"}],"responses":{"200":{"description":"Removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleRemoved"}}}},"400":{"description":"The request body or parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The API key doesn't have the scope this endpoint needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key. Wait for `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side. Safe to retry with the same Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks":{"get":{"tags":["Webhooks"],"summary":"List webhook endpoints","security":[{"apiKey":[]}],"responses":{"200":{"description":"Endpoints.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}},"required":["data"]}}}},"401":{"description":"The API key is missing, invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The API key doesn't have the scope this endpoint needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key. Wait for `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side. Safe to retry with the same Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Webhooks"],"summary":"Add a webhook endpoint","description":"Throughpoint POSTs each subscribed event to `url` (https only), signed with the returned secret.","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointInput"}}}},"responses":{"201":{"description":"Created. The secret is only returned here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreated"}}}},"400":{"description":"The request body or parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"The API key is missing, invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The API key doesn't have the scope this endpoint needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The body is larger than 64 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was already used with a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key. Wait for `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side. Safe to retry with the same Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{id}":{"delete":{"tags":["Webhooks"],"summary":"Delete a webhook endpoint","security":[{"apiKey":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Deleted.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The endpoint's id."},"deleted":{"type":"boolean","enum":[true],"description":"Always `true`."}},"required":["id","deleted"]}}}},"401":{"description":"The API key is missing, invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The API key doesn't have the scope this endpoint needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key. Wait for `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side. Safe to retry with the same Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{id}/rotate-secret":{"post":{"tags":["Webhooks"],"summary":"Rotate the signing secret","description":"The old secret stops working immediately; deliveries after this are signed with the new one.","security":[{"apiKey":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The new secret, shown once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecret"}}}},"401":{"description":"The API key is missing, invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The API key doesn't have the scope this endpoint needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was already used with a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key. Wait for `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side. Safe to retry with the same Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{id}/test":{"post":{"tags":["Webhooks"],"summary":"Send a test event","description":"Queues a sample `card.created` with `\"test\": true` to the endpoint.","security":[{"apiKey":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"id","in":"path"}],"responses":{"202":{"description":"Queued.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestQueued"}}}},"401":{"description":"The API key is missing, invalid or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The API key doesn't have the scope this endpoint needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The Idempotency-Key was already used with a different request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key. Wait for `Retry-After` seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Something went wrong on our side. Safe to retry with the same Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{}}