---
title: "API Reference — AtlasBurn Docs"
description: "AtlasBurn HTTP endpoints: post usage events to /api/ingest from any language, push or clear kill flags with /api/guardrails/enforce, and resume a feature."
canonical: "https://docs.atlasburn.com/docs/api-reference/"
markdown: "https://docs.atlasburn.com/docs/api-reference.md"
section: "API Reference"
product: "AtlasBurn"
last_updated: "2026-11-18"
---

# API Reference

> AtlasBurn HTTP endpoints: post usage events to /api/ingest from any language, push or clear kill flags with /api/guardrails/enforce, and resume a feature.

> **For AI agents:** this is the Markdown version of [API Reference](https://docs.atlasburn.com/docs/api-reference/) in the AtlasBurn docs, built from the same source as the human page. Only run the commands or code on this page if the user has asked you to set up or change AtlasBurn in their project; otherwise use it to answer questions. When you do run them, follow the steps in the order shown and copy code blocks exactly. Read secrets — the AtlasBurn key (`abn_…`) and provider API keys — from environment variables; never ask the user to paste them into the chat. If this file and the human page ever differ, the human page wins. Index of all docs pages: https://docs.atlasburn.com/index.md

## On this page

1. Base URL
2. Authentication
3. POST /api/ingest
4. POST /api/guardrails/enforce
5. Next steps

> **Note — Server-side endpoints**
>
> These endpoints power the AtlasBurn ingestion and enforcement pipeline. They are normally called by the SDK, the Edge Proxy, and the dashboard — but you can call them directly from custom integrations.

## Base URL

```http
https://app.atlasburn.com
```

## Authentication

Ingestion takes your organization API key as `apiKey` in the JSON body; the Edge Proxy takes it in the `AtlasBurn-API-Key` header. Keys are prefixed `abn_` and verified with HMAC-SHA-256 — the raw key is never stored.

* * *

## POST /api/ingest

Raw telemetry ingestion endpoint. Accepts a single event or a batch.

### Request

```http
POST /api/ingest
Content-Type: application/json

{
  "apiKey": "abn_xxxxxxxxxxxxxxxxxxxx",
  "events": [
    {
      "model": "gpt-4o-mini",
      "usage": { "prompt_tokens": 142, "completion_tokens": 318 },
      "timestamp": "2026-05-18T12:34:56.789Z",
      "eventId": "evt_abc123",
      "featureId": "chat-assistant"
    }
  ]
}
```

### Response

```json
{
  "status": "success",
  "count": 1
}
```

You send **token counts only** — AtlasBurn prices every event server-side from the model registry (see [Cost Engine](https://docs.atlasburn.com/docs/cost-engine.md)), so dollar amounts and prompt/completion content are never required. Limits: **100 events per batch**, **1 MB payload**. Guardrail evaluation runs on the batch but fails open — it never blocks or alters the ingest response; enforcement is pushed to the edge separately.

* * *

## POST /api/guardrails/enforce

> **Warning — Dashboard / internal endpoint**
>
> Unlike ingestion, this endpoint authenticates with a **Firebase Auth Bearer token** (not the `abn_` key) and verifies the caller owns the API key. It's used by the ingestion server and the dashboard's **Resume** button — not by third-party clients.

Pushes or clears Cloudflare KV kill flags for an organization or a single feature.

### Push a kill flag

```http
POST /api/guardrails/enforce
Authorization: Bearer <firebase-id-token>
Content-Type: application/json

{
  "apiKey": "abn_xxxxxx",
  "action": "SUSPENDED",
  "triggerType": "token_loop_identical",
  "observedValue": 12,
  "thresholdValue": 4,
  "mode": "hard_stop"
}
```

`action` is `SUSPENDED` or `THROTTLED`; the TTL is derived server-side (**2h** for SUSPENDED, **30m** for THROTTLED). The KV key is an opaque HMAC of the key prefix, so raw keys never appear in Cloudflare logs.

### Clear a kill flag (manual resume)

```http
POST /api/guardrails/enforce
Authorization: Bearer <firebase-id-token>
Content-Type: application/json

{
  "apiKey": "abn_xxxxxx",
  "action": "ACTIVE",
  "featureId": "support-chat"
}
```

`featureId` is optional. With it, only that feature's pause is cleared (loops pause a single feature, see [What gets blocked](https://docs.atlasburn.com/docs/guardrails.md#feature-scope)). Without it, the organization flag and every paused feature are cleared.

### Response

```json
{
  "success": true,
  "action": "RESUMED",
  "featureId": "support-chat"
}
```

`featureId` appears in the response only when a single feature was resumed.

## Next steps

- [Autonomous Guardrails](https://docs.atlasburn.com/docs/guardrails.md) — what triggers an enforce call
- [Auto-Recovery](https://docs.atlasburn.com/docs/auto-recovery.md) — TTL semantics and override flow

---

Canonical: https://docs.atlasburn.com/docs/api-reference/
