Skip to content
Management API Reference

Run sql query

post/v1/projects/{ref}/database/query

This is an experimental endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.

This endpoint is currently in its Beta stage.

OAuth scopes

  • database:write

The fine-grained token must include the following permissions to access this endpoint:

  • database_read
  • or
  • database_write

Path parameters

  • ref
    Required
    string

    Project ref

Body

  • query
    Required
    string
  • parameters
    Optional
    Array<unknown>
  • read_only
    Optional
    boolean

Response codes

  • 201
  • 401
  • 403
  • 429
  • 500

Response (201)

{}