Skip to Content
dropshelf
REST API

Queries of every drop

Admin only. Every query of every drop, newest decision first, with its state, the SQL of the version that serves it, who deployed it, what it runs under and its last seven days. Filter by source (id), drop (slug), state and under.

GET
/api/v1/admin/queries

Admin only. Every query of every drop, newest decision first, with its state, the SQL of the version that serves it, who deployed it, what it runs under and its last seven days. Filter by source (id), drop (slug), state and under.

Authorization

headerAuthorizationBearer <token>

A personal access token, odp_ followed by 43 characters. Create one in the dashboard.

Query Parameters

source?string

A source id.

drop?string

A drop's slug.

under?string

What queries run under: : such as email:, a kind that names nobody such as everyone, or role.

state?string

approved, pending, denied or blocked.

cursor?string

The previous page's nextCursor.

limit?integer

At most 200.

Response Body

A page.

application/json
  1. response
items*array<>
nextCursor?string

Pass as cursor= for the next page.

Example Request
curl -X GET 'https://drop.example.com/api/v1/admin/queries'
Example Response
{  "items": [    {      "boundTo": [        {          "id": "string",          "kind": "string",          "value": "string"        }      ],      "decidedAt": "2019-08-24T14:15:22Z",      "decidedBy": "string",      "deployedBy": "string",      "drop": {        "id": "string",        "slug": "string"      },      "hash": "string",      "name": "string",      "note": "string",      "priorState": "string",      "reason": "string",      "source": {        "id": "string",        "name": "string"      },      "sql": "string",      "state": "approved",      "stats7d": {        "avgMs": 0,        "cacheHits": 0,        "errors": 0,        "lastError": "string",        "lastRunAt": "2019-08-24T14:15:22Z",        "maxMs": 0,        "runs": 0      },      "tool": "string"    }  ],  "nextCursor": "string"}

Generated from dropshelf core at 6a548b2, 26 Nov 2026.