SSL
Endpoints for managing SSL certificates.
Admins see every SSL certificate on the server. Non-admin users see only certificates belonging to their own websites.
List SSL Certificates
GET /api/v1/ssl
Scope: read:ssl
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page |
integer | Page number. See Pagination |
limit |
integer | Items per page. See Pagination |
Response
{
"data": [
{
"id": 1,
"website_id": 10,
"domain_name": "docuwiki.local",
"type": "selfsigned",
"issuer": "docuwiki.local",
"valid_from": "2026-09-22T13:37:56Z",
"valid_to": "2031-09-22T13:37:56Z",
"status": "active"
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 1,
"total_pages": 1
}
}
| Field | Type | Description |
|---|---|---|
id |
integer | Certificate ID |
website_id |
integer | ID of the website the certificate is attached to |
domain_name |
string | Domain the certificate covers |
type |
string | letsencrypt, custom, or selfsigned |
issuer |
string | Certificate issuer name |
valid_from |
string (RFC 3339) | Start of validity |
valid_to |
string (RFC 3339) | End of validity |
status |
string | active, expired, or error |
Example
curl -H "Authorization: Bearer $TOKEN" \
"https://panel.example.com/api/v1/ssl?page=1&limit=25"
Get SSL Certificate
GET /api/v1/ssl/{id}
Scope: read:ssl
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id |
integer | Certificate ID |
Response
Same shape as a single item in the list response, wrapped in data:
{
"data": {
"id": 1,
"website_id": 10,
"domain_name": "docuwiki.local",
"type": "selfsigned",
"issuer": "docuwiki.local",
"valid_from": "2026-09-22T13:37:56Z",
"valid_to": "2031-09-22T13:37:56Z",
"status": "active"
}
}
Errors
| Code | Status | Condition |
|---|---|---|
not_found |
404 | Certificate does not exist |
forbidden |
403 | The certificate's website belongs to another user |
invalid_request |
400 | id is not a valid integer |
Example
curl -H "Authorization: Bearer $TOKEN" \
https://panel.example.com/api/v1/ssl/1
Related
- Authentication - token format and auth failures
- Responses - success response shape
- Pagination - list parameters and iteration
- Errors - error codes