---
title: "Download the TLS certificate for the database"
method: GET
path: "/v2/databases/{databaseId}/credentials/certificate"
tags: ["Credentials"]
---

# Download the TLS certificate for the database

`GET /v2/databases/{databaseId}/credentials/certificate`

Returns the TLS certificate used by the database, base64-encoded. The database must be running.

## Path parameters

- `databaseId` string, required

## Response `200`

Base64-encoded TLS certificate (PEM).

- object
  - `status` 'success', required
  - `response` object, required
    - `certificate` string, required

## Other responses

- `400` — Database is not running, or the certificate could not be read.
- `401` — The Authorization header is missing, malformed, or the credentials are not valid.
- `404` — The database does not exist or is not owned by the caller.
- `429` — The authenticated user or API key exceeded the global request budget.
- `500` — An unexpected error occurred while processing the request.

---

[API](https://skmtc.dev/squarecloud/apis/square-cloud-api.md) · [All operations](https://skmtc.dev/squarecloud/apis/square-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/squarecloud/square-cloud-api/revisions/54b7733a6b95/schema)
