Search the organization's certificates by issuing authority and profile.

POST /organizations/{organizationId}/certificates/search

POST https://zanpki.com/organizations/{organizationId}/certificates/search

Operation ID organizations.organizationId.certificates.search.post
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

NameInTypeDescription
organizationId Path Required string (snowflake) Organization ID.

Request body

Required, sent as application/x-www-form-urlencoded, application/json.

Schema: CertificateSearchBody

PropertyTypeDescription
page integer (int32) Optional The page number to show, starting at 1. Values past the last page return the last page.
results_per_page one of: 10, 25, 50, 100 Optional How many results to show on each page.
certificates_authority_id string (snowflake), or null Optional ID of the organization's signing authority, or null for an imported certificate signed by an external issuer. Pass null in searches to match any authority.
certificates_profile one of: 1, 2, 3, 4, null Optional Certificate profile determining its extended key usage: 1 (TLS server, for a website, service, or VPN), 2 (mTLS client, for a service), 3 (VPN user, for client authentication), or 4 (TLS server and client, for both roles). Pass null in searches to match any profile.

Responses

StatusDescriptionSchemaContent type
200 One page of matching search results. CertificateSearchAnswer application/json
422 The request input was rejected. The errors object lists each validation failure. ValidationProblem application/json
503 The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. Problem 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 One page of matching search results.

PropertyTypeDescription
pagination Pagination Required Pagination details for this page of results.
rows list of CertificateLine Required Certificates on this page, newest first.

422 The request input was rejected. The errors object lists each validation failure.

PropertyTypeDescription
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.

503 The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.

PropertyTypeDescription
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.

Any other status: The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.

PropertyTypeDescription
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 POST 'https://zanpki.com/organizations/{organizationId}/certificates/search' \
  -H 'Authorization: Bearer <access token>' \
  -H 'Content-Type: application/json' \
  -d '{}'

All documentation