Show a custom profile, including its settings, resulting certificate extensions, and eligible target organizations for copying.
GET /organizations/{organizationId}/profiles/{profileId}
GET https://zanpki.com/organizations/{organizationId}/profiles/{profileId}
| Operation ID |
organizations.organizationId.profiles.profileId.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 | |
|---|---|---|---|---|
organizationId
| Path | Required | string (snowflake) | Organization ID. |
profileId
| Path | Required | string (snowflake) | Profile ID. |
Responses
| Status | Description | Schema | Content type |
|---|---|---|---|
| 200 | Show a custom profile, including its settings, resulting certificate extensions, and eligible target organizations for copying. | ProfilePage | application/json, text/html, text/markdown |
| 403 | Your roles do not permit this action. | Problem | application/json, text/html, text/markdown |
| 422 | The request input was rejected. The errors object lists each validation failure. | ValidationProblem | application/json, text/html, text/markdown |
| 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, text/html, text/markdown |
200 Show a custom profile, including its settings, resulting certificate extensions, and eligible target organizations for copying.
| Property | Type | Description | |
|---|---|---|---|
certificate_profiles_id
| string (snowflake) | Required | The profile's ID. |
certificate_profiles_name
| string | Required | Profile name (1 to 100 characters), shown in certificate issuance forms. |
certificate_profiles_base
| one of: 1, 2, 3, 4 | Required | Built-in ZanPKI profile this profile is based on, which determines its certificate purpose and X.509 extensions: 1 (TLS server), 2 (mTLS client), 3 (VPN user), or 4 (TLS server and client). Cannot be changed after creation. |
base_label
| string | Required | Display label of the built-in ZanPKI profile this custom profile is based on. |
certificate_profiles_key_types
| list of one of: 1, 2, 3, 4, 5, 6, 7, 8, 9 | Required | Allowed key types for certificates using this profile (select at least one): 1 (RSA 2048), 2 (RSA 3072), 3 (RSA 4096), 4 (EC P-256), 5 (EC P-384), 6 (EC P-521), 7 (ML-DSA-44), 8 (ML-DSA-65), and 9 (ML-DSA-87). |
certificate_profiles_default_key_type
| one of: 1, 2, 3, 4, 5, 6, 7, 8, 9 | Required | Default key type preselected in issuance forms. Must be one of the profile's allowed key types. If you leave it out, the base profile's default is used when the profile allows it (RSA 4096 for every built-in profile), and otherwise the first allowed key type. |
certificate_profiles_digest
| one of: 1, 2, 3, 4, null | Required | Default signature hash algorithm when none is specified: 1 (SHA-256), 2 (SHA-384), 3 (SHA-512), 4 (pure ML-DSA), or null to match the signing authority's key. An ML-DSA authority always signs with pure ML-DSA, and an RSA or EC authority uses its key's default instead of 4. |
certificate_profiles_default_days
| integer (int32) | Required | Default certificate lifetime in days when none is specified (such as for ACME orders), from 1 up to the maximum days. |
certificate_profiles_most_days
| integer (int32) | Required | Maximum certificate lifetime allowed by this profile (1 to 825 days). |
certificate_profiles_name_kinds
| list of one of: 1, 2, 6, 7 | Required | Allowed subject alternative name (SAN) types for certificates using this profile: 1 (email addresses), 2 (DNS names), 6 (URIs), and 7 (IP addresses). Server profiles require DNS names or IP addresses. |
certificate_profiles_subject_organization
| string, or null | Required | Default subject organization (O) applied when a certificate request omits it. Organizational unit, city, state, and country work the same way. |
certificate_profiles_subject_unit
| string, or null | Required | Default organizational unit (OU) applied to a certificate's subject when omitted. |
certificate_profiles_subject_city
| string, or null | Required | Default city or locality (L) applied to a certificate's subject when omitted. |
certificate_profiles_subject_state
| string, or null | Required | Default state or province (ST) applied to a certificate's subject when omitted. |
certificate_profiles_subject_country
| string, or null | Required | Default two-letter uppercase ISO country code (C) applied to a certificate's subject when omitted. |
page_url
| string | Required | The path of the profile's page. |
pki_organizations_id
| string (snowflake) | Required | The organization's ID. |
pki_organizations_name
| string | Required | Name of the organization (a customer, product, or team that owns authorities, certificates, and machines), up to 100 characters. |
pki_agencies_id
| string (snowflake) | Required | The agency ID, or for an organization, the ID of its parent agency. |
pki_agencies_name
| string | Required | Name of your company or agency (up to 100 characters) that owns its organizations. |
extensions
| string | Required | X.509 extensions included in certificates signed with this profile (inherited from its base profile), one extension per line. |
may_manage
| boolean | Required | Whether the caller can edit, copy, or delete this profile (requires authorities:manage). |
copy_organizations
| list of OrganizationOption | Required | Other organizations in the same agency where the caller can manage profiles and copy this profile to, or an empty list if none. |
403 Your roles do not permit this action.
| 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. |
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/organizations/{organizationId}/profiles/{profileId}' \
-H 'Authorization: Bearer <access token>'