Skip to main content
POST
Run one bounded read-only Dev database query

Authorizations

Authorization
string
header
required

WorkOS access JWT or a user-owned WorkOS API key. User keys are bound to one organization and restricted to their enabled product permissions. Session-only onboarding and session revocation require an interactive access JWT. No cookie session is assumed.

Headers

X-Request-Id
string

Optional caller-provided correlation identifier.

Required string length: 1 - 128

Path Parameters

project_id
string
required

Project identifier.

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$

Body

application/json
environment
string
required
Allowed value: "dev"
statement
string
required
Required string length: 1 - 4096
Pattern: ^\s*(?:SELECT|WITH)\b
parameters
(string | number | boolean | null)[]
required
Maximum array length: 32

Response

At most 100 JSON rows from the Dev project database.

environment
string
required
Allowed value: "dev"
rows
object[]
required
Maximum array length: 100
row_count
integer
required
Required range: 0 <= x <= 100
truncated
boolean
required