---
title: "Get a SQL database"
method: GET
path: "/storage/sqldbs/{id}"
tags: ["sql databases"]
---

# Get a SQL database

`GET /storage/sqldbs/{id}`

Retrieves a SQL database by its ID, including its provisioning status.

## Path parameters

- `id` string, uuid, required

## Response `200`

SQL database retrieved successfully

- SqlDatabaseResponseWrapper
  - `data` SqlDatabase
    - `record_type` string
    - `id` string, uuid
    - `name` string
    - `status` 'pending' | 'provision_ok' | 'provision_failed' | 'deleting' | 'delete_failed' — Provisioning status. A database is usable once `status` is `provision_ok`. Once deletion completes, the database no longer appears in the API.
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `401` — Unauthorized
- `404` — SQL database not found
- `422` — Validation error — `id` is not a valid identifier
- `500` — Internal server error

## Changes

> 73 revisions in range; 1 not diffed.

- **2026-09-16** `a6a61a29ecdd` — 3 breaking, 3 warning, 6 info
  - the `errors/items/code` response's property type changed from `string` to `integer`, and format from no format to `int32` for status `401`
  - the `errors/items/code` response's property type changed from `string` to `integer`, and format from no format to `int32` for status `404`
  - the `errors/items/code` response's property type changed from `string` to `integer`, and format from no format to `int32` for status `422`
  - removed the optional property `errors/items/meta/url` from the response with the `401` status
  - …8 more
- **2026-08-17** `1571b0380bd7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/changes/storage/sqldbs/:id/get.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/revisions/673109139443?raw)
