List every certificate your roles permit you to download, along with each certificate's current issuance. Send your cached ETag in If-None-Match to receive 304 Not Modified when nothing has changed. On 503 Service Unavailable, keep your cached certificates and retry after the Retry-After interval.
GET /downloads
GET https://zanpki.com/downloads
| Operation ID |
downloads.get
|
|---|---|
| Access | Browser session signed in through ZanAuth, using the access token cookie alongside its ID token and refresh token cookies. Or: An access token issued for this site by its ZanAuth issuer, or a static key. |
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
If-None-Match
| Header | Optional | string | ETags of lists the caller already has cached. If one matches the current list, the server returns 304 Not Modified with an empty body. |
Responses
| Status | Description | Schema | Content type |
|---|---|---|---|
| 200 | List of all certificates the caller is permitted to download, each with its current issuance. | DownloadsAnswer | application/json |
| 304 | The list has not changed since the provided ETag, so no response body is returned. | ||
| 422 | The request input was rejected. The errors object lists each validation failure. | ValidationProblem | application/json |
| Any other status | The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. | Problem | application/json |
200 List of all certificates the caller is permitted to download, each with its current issuance.
| Property | Type | Description | |
|---|---|---|---|
certificates
| list of DownloadLine | Required | Certificates the caller is authorized to download, ordered by ID, each with its current issuance. Certificates without a usable issuance (unissued, revoked, or expired) are omitted. |
422 The request input was rejected. The errors object lists each validation failure.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
errors
| InputErrors | Required | Validation errors for each rejected value. Parameter errors are returned as a list, and body errors as a tree matching the request body structure. |
Any other status: The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
Example
curl -X GET 'https://zanpki.com/downloads' \
-H 'Authorization: Bearer <access token>'