Skip to main content
GET
/
branches
/
{id}
/
schema
Get database schema
curl --request GET \
  --url https://api.specular.dev/branches/{id}/schema \
  --header 'Authorization: Bearer <token>'
{
  "tables": [
    {
      "name": "<string>",
      "columns": [
        {
          "name": "<string>",
          "type": "<string>",
          "nullable": true,
          "default": "<string>"
        }
      ],
      "primaryKey": [
        "<string>"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication with API key (format: Bearer sk_xxx)

Path Parameters

id
string
required

Branch ID

Response

Database schema

Database schema

tables
object[]