Skip to Content
dropshelf
REST API

Try a query

Runs one SELECT on a source the caller may use, checked as a deploy checks a query (the caller's scope, a view's tables read only through it, read-only, denied functions), at most 100 rows, never cached. :name placeholders take string values from params; viewer parameters are the caller's own. For writing a drop's queries before deploying them.

POST
/api/v1/connectors/{name}/run

Runs one SELECT on a source the caller may use, checked as a deploy checks a query (the caller's scope, a view's tables read only through it, read-only, denied functions), at most 100 rows, never cached. :name placeholders take string values from params; viewer parameters are the caller's own. For writing a drop's queries before deploying them.

Authorization

headerAuthorizationBearer <token>

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

Path Parameters

name*string

The source's name.

Request Body

The statement, or for an MCP server the tool and its args.

application/json
  1. body
args?

The tool's arguments.

params?

Values for its placeholders.

sql?string

One SELECT in the source's dialect.

tool?string

For an MCP server: one of the tools the source allows. It runs once with your own connection.

Response Body

The answer.

application/json
  1. response
columns?array<>
fetchedAt*string

When it was read.

Formatdate-time
result?unknown

For a tool call: what the tool returned. A statement answers columns and rows.

rows?array<array<unknown>>
Example Request
curl -X POST 'https://drop.example.com/api/v1/connectors/string/run' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "columns": [    {      "name": "string",      "type": "string"    }  ],  "fetchedAt": "2019-08-24T14:15:22Z",  "result": null,  "rows": [    [      null    ]  ]}

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