Docs/Referencev1.0.0

API reference

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_….

Authentication

Create a key under Settings → API and send it as a bearer token. Keys start with tp_live_ (or tp_test_ on staging) and carry scopes: events:write, rules:write and webhooks:manage. Each key may make 60 requests a minute. Send an Idempotency-Key header on POSTs to make retries safe; every response carries an X-Request-Id.

Every request
-H "Authorization: Bearer $TP_API_KEY"
Events

Send an event

POST/v1/events

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.

Parameters
idempotency-key (header)stringAny unique string per event, for example your CI run id.
Body
source *stringWhere the event comes from: deploy, incident, release…
ref *stringThe 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.
status *stringWhat happened to it. shipped, deployed, released, done mean done; in_review means in review; in_progress means in progress.
actorstringWho or what caused the event.
urlurlA link shown on the card.
occurred_attimestampWhen it happened. Defaults to now.
Response 200 · This event was already received; the original id is returned.
id *uuidThe event's id. Pass it to GET /v1/events/{id}.
status *"accepted" | "resolved" | "needs_confirmation"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.
resolvedobject—
resolved.ref *stringThe ticket the ref you sent was matched to.
resolved.title *string | null—
resolved.probability *numberHow likely the match is right, from 0 to 1.
Response 202 · Accepted. Evaluation runs within seconds.
id *uuidThe event's id. Pass it to GET /v1/events/{id}.
status *"accepted" | "resolved" | "needs_confirmation"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.
resolvedobject—
resolved.ref *stringThe ticket the ref you sent was matched to.
resolved.title *string | null—
resolved.probability *numberHow likely the match is right, from 0 to 1.
curl
curl -X POST https://api.throughpoint.dev/v1/events \
  -H "Authorization: Bearer $TP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source":"deploy","ref":"TP-482","status":"shipped"}'
Events

Check an event

GET/v1/events/{id}

What happened to an event you sent: still waiting, a card was raised, or why not.

Parameters
id *uuid—
Response 200 · The event.
id *uuidThe event's id.
status *"accepted" | "processed" | "no_match" | "gated"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.
reasonstringWhy 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).
proposal_iduuidThe card the event raised (or the open card it joined).
source *stringThe source you sent.
ref *stringThe ref you sent.
received_at *timestampWhen Throughpoint stored it.
curl
curl https://api.throughpoint.dev/v1/events/6c1f0e0a-7d1b-4a55-9d3e-2f1a6c4b8e10 \
  -H "Authorization: Bearer $TP_API_KEY"
Rules

List approval rules

GET/v1/rules

The workspace default policy plus each per-project rule.

Response 200 · The rules.
default *"anyone" | "assignee" | "leads"anyone: any member. assignee: the ticket's owner, or a lead. leads: leads and admins only.
per_project_applied *booleanFalse on Starter: rules are kept but not applied until you upgrade.
rules *object[]Per-project rules, sorted by project.
curl
curl https://api.throughpoint.dev/v1/rules \
  -H "Authorization: Bearer $TP_API_KEY"
Rules

Set a project's rule

PUT/v1/rules/{project}

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.

Parameters
project *stringjira:KEY, linear:KEY, github:owner/repo or clickup:listId, URL-encoded (jira%3ATP).
Body
project *stringMust match {project} in the URL.
policy *"anyone" | "assignee" | "leads"anyone: any member. assignee: the ticket's owner, or a lead. leads: leads and admins only.
fallback"anyone" | "assignee" | "leads"Who decides when an assignee card has no assignee we can match. Default leads.
Response 200 · The rule as saved.
project *stringjira:KEY, linear:KEY, github:owner/repo or clickup:listId.
policy *"anyone" | "assignee" | "leads"anyone: any member. assignee: the ticket's owner, or a lead. leads: leads and admins only.
fallback *"anyone" | "assignee" | "leads"Who decides an assignee card with no matched assignee.
curl
curl -X PUT https://api.throughpoint.dev/v1/rules/jira%3ATP \
  -H "Authorization: Bearer $TP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"project":"jira:TP","policy":"assignee"}'
Rules

Remove a project's rule

DELETE/v1/rules/{project}

The project goes back to the workspace default.

Parameters
project *stringjira:KEY, linear:KEY, github:owner/repo or clickup:listId, URL-encoded (jira%3ATP).
Response 200 · Removed.
project *stringThe project whose rule was removed.
removed *trueAlways true.
curl
curl -X DELETE https://api.throughpoint.dev/v1/rules/jira%3ATP \
  -H "Authorization: Bearer $TP_API_KEY"
Webhooks

List webhook endpoints

GET/v1/webhooks
Response 200 · Endpoints.
data *object[]—
curl
curl https://api.throughpoint.dev/v1/webhooks \
  -H "Authorization: Bearer $TP_API_KEY"
Webhooks

Add a webhook endpoint

POST/v1/webhooks

Throughpoint POSTs each subscribed event to url (https only), signed with the returned secret.

Body
url *urlAn https URL on a public host.
events *"card.created" | "card.approved" | "card.dismissed" | "card.expired" | "action.executed" | "action.failed"[]One or more of the event types.
curl
curl -X POST https://api.throughpoint.dev/v1/webhooks \
  -H "Authorization: Bearer $TP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://hooks.acme.dev/throughpoint","events":["card.created","action.executed"]}'
Webhooks

Delete a webhook endpoint

DELETE/v1/webhooks/{id}
Parameters
id *uuid—
Response 200 · Deleted.
id *uuidThe endpoint's id.
deleted *trueAlways true.
curl
curl -X DELETE https://api.throughpoint.dev/v1/webhooks/6c1f0e0a-7d1b-4a55-9d3e-2f1a6c4b8e10 \
  -H "Authorization: Bearer $TP_API_KEY"
Webhooks

Rotate the signing secret

POST/v1/webhooks/{id}/rotate-secret

The old secret stops working immediately; deliveries after this are signed with the new one.

Parameters
id *uuid—
Response 200 · The new secret, shown once.
id *uuidThe endpoint's id.
secret *stringThe new signing secret, shown once.
curl
curl -X POST https://api.throughpoint.dev/v1/webhooks/6c1f0e0a-7d1b-4a55-9d3e-2f1a6c4b8e10/rotate-secret \
  -H "Authorization: Bearer $TP_API_KEY"
Webhooks

Send a test event

POST/v1/webhooks/{id}/test

Queues a sample card.created with "test": true to the endpoint.

Parameters
id *uuid—
Response 202 · Queued.
delivery_id *uuidMatches the Throughpoint-Delivery header the endpoint receives.
curl
curl -X POST https://api.throughpoint.dev/v1/webhooks/6c1f0e0a-7d1b-4a55-9d3e-2f1a6c4b8e10/test \
  -H "Authorization: Bearer $TP_API_KEY"

Errors

Every error has the same shape. Quote the request_id when you contact us.

Error body
{
  "error": {
    "code": "invalid_request",
    "message": "ref: Required",
    "request_id": "req_8f3a2c1d9e7b4a60"
  }
}
400 invalid_requestThe body or a parameter is invalid; the message names the field.
401 unauthorizedThe API key is missing, invalid or revoked.
402 plan_requiredThe workspace's plan doesn't include this (per-project rules on Starter).
403 insufficient_scopeThe key doesn't have the scope this endpoint needs.
404 not_foundNo such resource in this workspace.
409 seat_conflictThe change needs more seats than the plan has.
413 payload_too_largeThe body is larger than 64 KB.
422 idempotency_key_reusedThe Idempotency-Key was used with a different body.
429 rate_limitedMore than 60 requests a minute for this key. Wait Retry-After seconds.

Machine-readable: /v1/openapi.json

← PreviousQuickstartNext →Webhooks