# Ingest Devin usage

Source: https://immiscible.fly.dev/docs/api/post-v1-ingest-devin

`POST /v1/ingest/devin`

Pull Devin session usage with a Devin API token and attribute it to people, teams and merged PRs. Reconciled, not governed: records are marked `governed: false`.

## Authentication

Workspace key, admin scope. A gateway key issued with the `admin` scope, sent as `Authorization: Bearer`. An inference-scoped key gets `403` here.

## Request

curl:

```bash
curl -X POST "https://immiscible.fly.dev/v1/ingest/devin" \
  -H "authorization: Bearer $IMMISCIBLE_ADMIN_KEY" \
  -H "content-type: application/json" \
  -d '{
    "token": "devin_...",
    "since": "2026-09-01",
    "acuUsd": 2.25
  }'
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/v1/ingest/devin', {
  method: 'POST',
  headers: {
    authorization: `Bearer ${process.env.IMMISCIBLE_ADMIN_KEY}`,
    'content-type': 'application/json',
  },
  body: JSON.stringify({
    token: 'devin_...',
    since: '2026-09-01',
    acuUsd: 2.25,
  }),
});
const data = await res.json();
console.log(res.status, data);
```

Python:

```python
import os
import requests

res = requests.post(
    "https://immiscible.fly.dev/v1/ingest/devin",
    headers={
        "authorization": f"Bearer {os.environ['IMMISCIBLE_ADMIN_KEY']}",
        "content-type": "application/json",
    },
    json={
        "token": "devin_...",
        "since": "2026-09-01",
        "acuUsd": 2.25,
    },
)
print(res.status_code, res.json())
```
