Skip to content
bliptracedocs

API and tokens

Integration API v1

A REST API for platforms that switch on error tracking for the apps they deploy, with projects, ingest keys, issues, stats and deploy markers.

On this page

The Integration API lets a platform (a deployment tool, an internal developer portal, a CI job) create a project for each app, issue its ingest key, read issue counts and record deploys, with no manual steps. G8Deck uses it.

Basics

Item Value
Base URL https://app.bliptrace.com/api/v1
Auth Authorization: Bearer <token>, a personal token
Abilities integration:read for GET, integration:write for POST, PATCH, DELETE. * is not accepted
Tenancy The token acts as its user. Another account’s project returns 404, never 403
IDs Public UUIDs only
Format JSON, snake_case, ISO-8601 UTC times
Single resource {"data": {...}}
Lists {"data": [...], "meta": {"next_cursor": "...", "per_page": 25}}. Pass ?cursor= until it is null; per_page up to 100
Rate limit 120 requests a minute per token, X-RateLimit-* headers, Retry-After on 429
Idempotency POST accepts an Idempotency-Key header, kept 24 hours. Projects are also idempotent on external_ref
Secrets A plain ingest key appears only in the response that created it. Elsewhere: prefix and last4. prefix is per key: blip_ for new keys; keys created before 23 Nov 2026 start with g8s_ and keep working

Endpoints

Method Path Ability Purpose
GET /me read Check the token: user, abilities, ingest_endpoint, mcp_endpoint, app_url
GET /projects read List projects. ?external_ref= for an exact match
POST /projects write Create a project: name (required), external_ref, environment. An existing external_ref returns that project with 200
GET /projects/{project} read One project with stats
PATCH /projects/{project} write Rename: name
DELETE /projects/{project} write Archive: every key is revoked at once; data stays until retention. 204
GET /projects/{project}/keys read Ingest keys, masked, including revoked ones
POST /projects/{project}/keys write Issue a key: name. The response includes key, shown once
DELETE /projects/{project}/keys/{key} write Revoke a key. 204
GET /projects/{project}/issues read Issues: ?status=open|resolved|muted|acknowledged, ?level=, ?environment=, newest activity first
GET /projects/{project}/stats read ?window=1h|24h|7d: open_issues, events, new_issues, regressions, last_event_at
POST /projects/{project}/deploys write Deploy marker: release (required), environment, commit_sha, url, deployed_at

Writes also need your project role: rename, keys and deploys need owner or admin; archive needs owner.

Walkthrough

B=https://app.bliptrace.com/api/v1
H="Authorization: Bearer $BLIPTRACE_TOKEN"

# 1. Check the token and read the ingest endpoint
curl -s -H "$H" $B/me

# 2. Create (or find) the project; the same external_ref never creates a duplicate
curl -s -H "$H" -H 'Content-Type: application/json' -H "Idempotency-Key: $(uuidgen)" \
  -d '{"name":"shop-api · production","external_ref":"acme:shop-api:production","environment":"production"}' \
  $B/projects

# 3. Issue an ingest key; "key" is in THIS response only, write it straight into the app's env
curl -s -H "$H" -H 'Content-Type: application/json' -H "Idempotency-Key: $(uuidgen)" \
  -d '{"name":"deploy-bot"}' $B/projects/<project-uuid>/keys

# 4. Record each deploy
curl -s -H "$H" -H 'Content-Type: application/json' -H "Idempotency-Key: $DEPLOY_ID" \
  -d '{"release":"1.4.0","environment":"production","commit_sha":"a1b2c3d"}' \
  $B/projects/<project-uuid>/deploys

# 5. Show health next to the deployment
curl -s -H "$H" "$B/projects/<project-uuid>/stats?window=24h"
curl -s -H "$H" "$B/projects/<project-uuid>/issues?status=open&per_page=5"

Then give the app these variables:

Variable Value
BLIPTRACE_KEY data.key from the key response
BLIPTRACE_ENDPOINT The ingest endpoint from /me without the /v1/ingest path: https://ingest.bliptrace.com
BLIPTRACE_ENVIRONMENT The deployment’s environment
BLIPTRACE_RELEASE The release or commit SHA, the same value you send to /deploys
BLIPTRACE_ENABLED true

Shapes

// Project
{ "id": "uuid", "name": "shop-api · production", "slug": "shop-api-production", "external_ref": "acme:shop-api:production",
  "environment": "production", "dashboard_url": "https://app.bliptrace.com/projects/<uuid>",
  "created_at": "…", "stats": { "open_issues": 3, "events_24h": 120, "last_event_at": "…" } }

// IngestKey (list)                          // create response adds:
{ "id": "uuid", "name": "deploy-bot", "prefix": "blip_", "last4": "7Tai",  "key": "blip_…full…"
  "created_at": "…", "last_used_at": "…", "revoked_at": null }

// Issue
{ "id": "uuid", "title": "RuntimeException", "message": "…(scrubbed)…", "level": "error", "status": "open",
  "events": 5, "first_seen_at": "…", "last_seen_at": "…", "environments": ["production"],
  "url": "https://app.bliptrace.com/issues/<uuid>" }

// Deploy (201)
{ "id": "uuid", "release": "1.4.0", "environment": "production", "commit_sha": "a1b2c3d",
  "url": null, "deployed_at": "…", "created_at": "…" }

commit_sha is 7 to 64 hex characters, url must be http(s), deployed_at defaults to now.

Errors

Every error uses {"error": {"code": "...", "message": "...", "fields": {...}}}.

Status error.code What to do
400 invalid_idempotency_key Keep Idempotency-Key under 255 characters
401 unauthenticated Token missing, wrong or revoked: reconnect
403 insufficient_ability The token lacks the ability (or is *-only): create one with the right boxes
403 forbidden Your project role does not allow this write
403 account_suspended The Bliptrace user is suspended
404 not_found Gone, archived or not yours: offer to re-provision, don’t loop
409 idempotency_key_reused / idempotency_in_progress Use a fresh key for a different request; retry later if in flight
422 validation_failed Fix the fields in error.fields
429 rate_limited Wait Retry-After seconds

Retry a POST with the same Idempotency-Key and you get the original response back, marked Idempotent-Replayed: true; nothing is created twice. A replayed key-creation returns the same plain key within the 24-hour window.

Rules for integrators

  • Store the API token encrypted. Never log it or show it back.
  • Store the plain ingest key only in the app’s environment. If it is lost, issue a new key and revoke the old one; keys can never be read back.
  • Use external_ref so retries never create duplicate projects. Archiving frees the external_ref for re-provisioning.
  • Treat 404 on a project as “gone”.

OpenAPI

The machine-readable spec (OpenAPI 3.1) is published at /docs/openapi/integration-v1.yaml. Use it to generate a client or import it into an API tool.

Documentation