Skip to content
Skip to Content
Full reference

Admin

The signed-in admin

GET
/admin/v1/me

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Response Body

The admin's Supabase user id and email

application/json
  1. response
subject*string
email*string
Example Request
curl -X GET 'https://example.com/admin/v1/me'
Example Response
{  "subject": "string",  "email": "string"}

Find users

GET
/admin/v1/users

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Query Parameters

q?string

email, user id or Supabase user id

Response Body

Matching users

application/json
  1. response
users*array<>
Example Request
curl -X GET 'https://example.com/admin/v1/users'
Example Response
{  "users": [    {}  ]}

One screen about a user

GET
/admin/v1/users/{id}

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Path Parameters

id*string

Response Body

Account, plan, library, search, access, webhooks, outbox and recent admin actions

application/json
  1. response
Example Request
curl -X GET 'https://example.com/admin/v1/users/string'
Example Response
{}
GET
/admin/v1/users/{id}/failed-items

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Path Parameters

id*string

Query Parameters

stage?string

crawl or enrich

since?string

e.g. 7d, 12h, 30m

limit?integer

default 50, at most 1000

Response Body

Items (no titles; URLs cut to their host)

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://example.com/admin/v1/users/string/failed-items'
Example Response
{  "items": [    {}  ]}

A user's webhooks

GET
/admin/v1/users/{id}/webhooks

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Path Parameters

id*string

Response Body

Webhooks

application/json
  1. response
webhooks*array<>
Example Request
curl -X GET 'https://example.com/admin/v1/users/string/webhooks'
Example Response
{  "webhooks": [    {}  ]}

Undo an account deletion

POST
/admin/v1/users/{id}/restore

Only before purge_after (or while the account is held). Withdraws a deletion the user asked for (no supabase_id), or unlocks a locked account onto supabase_id, the Supabase user id the person signs in with now.

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Path Parameters

id*string

Request Body

application/json
  1. body

Every admin change. Unknown fields are refused.

reason*string

Recorded in admin_actions.

dry_run?boolean

Report what would change and change nothing.

yes?boolean

Allow touching more than 100 items.

supabase_id?string
Formatuuid

Response Body

What the restore did (kind is request_withdrawn or unlocked)

application/json
  1. response
user_id*string
kind*string
Value in"request_withdrawn""unlocked"
supabase_id?string
dry_run?boolean
Example Request
curl -X POST 'https://example.com/admin/v1/users/string/restore' \  -H 'Content-Type: application/json' \  -d '{  "reason": "string"}'
Example Response
{  "user_id": "string",  "kind": "request_withdrawn",  "supabase_id": "string",  "dry_run": true}
POST
/admin/v1/items/rerun

Give item_ids, or user_id (queued on bulk). Items already pending are skipped.

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Request Body

application/json
  1. body

Every admin change. Unknown fields are refused.

reason*string

Recorded in admin_actions.

dry_run?boolean

Report what would change and change nothing.

yes?boolean

Allow touching more than 100 items.

stage?string
Value in"crawl""enrich"
item_ids?array<string>
Itemsitems <= 10000
user_id?string
failed_only?boolean

Response Body

What changed, or with dry_run what would have

application/json
  1. response
Example Request
curl -X POST 'https://example.com/admin/v1/items/rerun' \  -H 'Content-Type: application/json' \  -d '{  "reason": "string"}'
Example Response
{}

Embedding queue status

GET
/admin/v1/embed

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Query Parameters

image?boolean

the image queue

Response Body

Depth, claims, errors and stale vectors

application/json
  1. response
Example Request
curl -X GET 'https://example.com/admin/v1/embed'
Example Response
{}
POST
/admin/v1/embed/retry

Give exactly one of item_ids, user_id or errored. Rows being embedded now are left alone.

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Request Body

application/json
  1. body

Every admin change. Unknown fields are refused.

reason*string

Recorded in admin_actions.

dry_run?boolean

Report what would change and change nothing.

yes?boolean

Allow touching more than 100 items.

image?boolean
item_ids?array<string>
Itemsitems <= 10000
user_id?string
errored?boolean

Response Body

What changed, or with dry_run what would have

application/json
  1. response
Example Request
curl -X POST 'https://example.com/admin/v1/embed/retry' \  -H 'Content-Type: application/json' \  -d '{  "reason": "string"}'
Example Response
{}
POST
/admin/v1/embed/requeue

Give item_ids or user_id. Upserts the queue the way the items trigger does.

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Request Body

application/json
  1. body

Every admin change. Unknown fields are refused.

reason*string

Recorded in admin_actions.

dry_run?boolean

Report what would change and change nothing.

yes?boolean

Allow touching more than 100 items.

image?boolean
item_ids?array<string>
Itemsitems <= 10000
user_id?string

Response Body

What changed, or with dry_run what would have

application/json
  1. response
Example Request
curl -X POST 'https://example.com/admin/v1/embed/requeue' \  -H 'Content-Type: application/json' \  -d '{  "reason": "string"}'
Example Response
{}

Unsent outbox rows

GET
/admin/v1/outbox

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Query Parameters

type?string

task type, e.g. item:enrich

errored?boolean
older_than?string

e.g. 10m

limit?integer

Response Body

Rows (no payloads)

application/json
  1. response
rows*array<>
Example Request
curl -X GET 'https://example.com/admin/v1/outbox'
Example Response
{  "rows": [    {}  ]}

Outbox status

GET
/admin/v1/outbox/status

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Response Body

Unsent rows by type and age

application/json
  1. response
Example Request
curl -X GET 'https://example.com/admin/v1/outbox/status'
Example Response
{}
POST
/admin/v1/outbox/retry

Give ids or all_errored.

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Request Body

application/json
  1. body

Every admin change. Unknown fields are refused.

reason*string

Recorded in admin_actions.

dry_run?boolean

Report what would change and change nothing.

yes?boolean

Allow touching more than 100 items.

ids?array<>
all_errored?boolean

Response Body

What changed, or with dry_run what would have

application/json
  1. response
Example Request
curl -X POST 'https://example.com/admin/v1/outbox/retry' \  -H 'Content-Type: application/json' \  -d '{  "reason": "string"}'
Example Response
{}

A webhook's deliveries

GET
/admin/v1/webhooks/{id}/deliveries

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Path Parameters

id*string

Query Parameters

failed?boolean
limit?integer

Response Body

Deliveries (no payloads)

application/json
  1. response
deliveries*array<>
Example Request
curl -X GET 'https://example.com/admin/v1/webhooks/string/deliveries'
Example Response
{  "deliveries": [    {}  ]}

Switch a webhook off

POST
/admin/v1/webhooks/{id}/disable

The user sees a fixed disabled_reason; the reason stays in the audit log.

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Path Parameters

id*string

Request Body

application/json
  1. body

Every admin change. Unknown fields are refused.

reason*string

Recorded in admin_actions.

dry_run?boolean

Report what would change and change nothing.

yes?boolean

Allow touching more than 100 items.

Response Body

What changed, or with dry_run what would have

application/json
  1. response
Example Request
curl -X POST 'https://example.com/admin/v1/webhooks/string/disable' \  -H 'Content-Type: application/json' \  -d '{  "reason": "string"}'
Example Response
{}

Switch a webhook on

POST
/admin/v1/webhooks/{id}/enable

Resets consecutive failures. Refused while the account is being deleted.

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Path Parameters

id*string

Request Body

application/json
  1. body

Every admin change. Unknown fields are refused.

reason*string

Recorded in admin_actions.

dry_run?boolean

Report what would change and change nothing.

yes?boolean

Allow touching more than 100 items.

Response Body

What changed, or with dry_run what would have

application/json
  1. response
Example Request
curl -X POST 'https://example.com/admin/v1/webhooks/string/enable' \  -H 'Content-Type: application/json' \  -d '{  "reason": "string"}'
Example Response
{}
POST
/admin/v1/webhook-deliveries/{id}/redeliver

Refused for a pending delivery, a switched-off webhook, or an account being deleted.

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Path Parameters

id*string

Request Body

application/json
  1. body

Every admin change. Unknown fields are refused.

reason*string

Recorded in admin_actions.

dry_run?boolean

Report what would change and change nothing.

yes?boolean

Allow touching more than 100 items.

Response Body

What changed, or with dry_run what would have

application/json
  1. response
Example Request
curl -X POST 'https://example.com/admin/v1/webhook-deliveries/string/redeliver' \  -H 'Content-Type: application/json' \  -d '{  "reason": "string"}'
Example Response
{}
GET
/admin/v1/audit

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Query Parameters

user_id?string
operator?string
action?string

a prefix, e.g. webhooks.

since?string
limit?integer

Response Body

Audit rows

application/json
  1. response
actions*array<>
Example Request
curl -X GET 'https://example.com/admin/v1/audit'
Example Response
{  "actions": [    {      "id": "string",      "operator": "string",      "operator_id": "string",      "action": "items.rerun",      "user_id": "string",      "target": {},      "details": {},      "reason": "string",      "created_at": "2019-08-24T14:15:22Z"    }  ]}
GET
/admin/v1/admins

Authorization

bearer
headerAuthorizationBearer <token>

Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access. /admin/v1 takes only a Supabase access token from an MFA session (aal2).

Response Body

Admins

application/json
  1. response
admins*array<>
Example Request
curl -X GET 'https://example.com/admin/v1/admins'
Example Response
{  "admins": [    {}  ]}