---
title: "Get certificates for a website"
method: GET
path: "/v1/hosting/websites/{website_id}/certificate"
tags: ["Certificate"]
---

# Get certificates for a website

`GET /v1/hosting/websites/{website_id}/certificate`

## Request

- Base URL: `https://api.10web.io`
- URL: `https://api.10web.io/v1/hosting/websites/{website_id}/certificate`
- Auth: none declared. Required headers: `x-api-key`
- TypeScript: <https://skmtc.dev/10web/apis/10web-api-v1/docs/v1/hosting/websites/:website_id/certificate/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `website_id` integer, required

## Headers

- `x-api-key` string, required

## Response `200`

List of certificates

- CertificateListResponse
  - `status` 'ok' | 'error'
  - `data` Certificate[]
    - `id` integer: The ID of the certificate
    - `common_name` string: The common name of the certificate
    - `domain_name` string: The domain name for which the certificate is issued
    - `issuer` string: The issuer of the certificate
    - `status` string: The status of the certificate
    - `type` 'custom' | 'free'
    - `valid_from` string, date-time
    - `valid_to` string, date-time

## Other responses

- `403`: Unauthorized access
- `429`: Too many requests
- `500`: Something went wrong

---

[API](https://skmtc.dev/10web/apis/10web-api-v1.md) - [All operations](https://skmtc.dev/10web/apis/10web-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/10web/apis/10web-api-v1/revisions/01afc9651dfc?raw)
