Return the ACME authorization for one of an order's identifiers.

POST /organizations/{organizationId}/authorities/{authorityId}/acme/orders/{orderId}/authorizations/{identifierIndex}

POST https://zanpki.com/organizations/{organizationId}/authorities/{authorityId}/acme/orders/{orderId}/authorizations/{identifierIndex}

Operation ID organizations.organizationId.authorities.authorityId.acme.orders.orderId.authorizations.identifierIndex.post
Access Anyone

Parameters

NameInTypeDescription
organizationId Path Required string (snowflake) Organization ID.
authorityId Path Required string (snowflake) Certificate authority ID.
orderId Path Required string (snowflake) ACME order ID.
identifierIndex Path Required integer (int32) Zero-based index of the identifier in the order.

Request body

Required, sent as application/jose+json.

Flattened JSON Web Signature (JWS) signed by the ACME account key, or by the new account key when registering an account.

Schema: AcmeJwsBody

PropertyTypeDescription
protected string Required Base64url-encoded JSON JWS protected header containing alg (ES256, RS256, or EdDSA), nonce, url, and either jwk (for a new account) or kid (the account URL).
payload string Required Base64url-encoded JSON request payload, or empty for a POST-as-GET request.
signature string Required Base64url-encoded signature over the protected header and payload, signed with the account's private key.

Responses

StatusDescriptionSchemaContent type
200 ACME authorization object (already valid). AcmeAuthorizationObject application/json
400 ACME problem response whose type is a URN under urn:ietf:params:acme:error. Problem application/json
403 ACME problem response whose type is a URN under urn:ietf:params:acme:error. Problem application/json
404 ACME problem response whose type is a URN under urn:ietf:params:acme:error. Problem application/json
422 The request input was rejected. The errors object lists each validation failure. ValidationProblem application/json
429 ACME problem response whose type is a URN under urn:ietf:params:acme:error. Problem application/json
503 ACME problem response whose type is a URN under urn:ietf:params:acme:error. 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 ACME authorization object (already valid).

PropertyTypeDescription
identifier AcmeIdentifier Required The authorized identifier: the order's identifier, or the base domain without the *. prefix for a wildcard.
status string Required Always valid, because the names in the binding are pre-authorized.
expires string Required When the authorization expires (matching the order's expiration), as an RFC 3339 timestamp in UTC.
challenges list of string Required Always empty, because the names in the binding are pre-authorized.
wildcard boolean Required Whether the order's identifier is a wildcard (such as *.example.com) matching the base domain in identifier.

400 ACME problem response whose type is a URN under urn:ietf:params:acme:error.

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.

403 ACME problem response whose type is a URN under urn:ietf:params:acme:error.

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.

404 ACME problem response whose type is a URN under urn:ietf:params:acme:error.

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.

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.

429 ACME problem response whose type is a URN under urn:ietf:params:acme:error.

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.

503 ACME problem response whose type is a URN under urn:ietf:params:acme:error.

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}/authorities/{authorityId}/acme/orders/{orderId}/authorizations/{identifierIndex}' \
  -H 'Content-Type: application/jose+json' \
  -d '{
    "protected": "<string>",
    "payload": "<string>",
    "signature": "<string>"
}'

All documentation