View Certificate
This method is used to view the certificate issued for a specified domain.
Request Parameters
Headers
- Content-Type: application/json
- Authorization: Bearer
$access_token
Path
| Parameter | Type | Constraints | Description | Example |
|---|---|---|---|---|
| id | integer | > 0, required | Domain ID | 1 |
Response Parameters
GET /api/clients/v1/domains/{id}/getCertificate/
JSON body
| Parameter | Type | Description |
|---|---|---|
| domain_id | integer | Domain ID |
| domain_name | string | Domain name |
| is_custom | boolean | Indicates the certificate was uploaded manually |
| issuer | string | Certificate issuer |
| serial | string | Certificate serial number |
| issue_date | datetime | Certificate issue date |
| expiry_date | datetime | Certificate expiration date |
Examples
200 OK
Certificate information
{
"domain_id": 1,
"domain_name": "example.com",
"is_custom": false,
"issuer": "C = US, O = Let's Encrypt, CN = Artificial Apricot R3",
"serial": "2B9C69E943BE4ECD9945FB0E9C05C0316FEG",
"issue_date": "2024-05-17T15:46:40.108Z",
"expiry_date": "2024-08-17T15:46:40.108Z"
}
400 Bad Request
Invalid path parameters provided
{
"id": [
"A valid integer is required."
]
}
401 Unauthorized
Authentication credentials are missing or invalid
{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
}
403 Forbidden
Only project participants can view this certificate
{
"detail": "Only project participants can view certificates"
}
404 Not Found
Domain with the specified ID not found or has no certificate
{
"detail": "Domain not found or does not have a certificate"
}