Register an ACME account using an External Account Binding created for a machine in the organization.

POST /organizations/{organizationId}/authorities/{authorityId}/acme/new_account

POST https://zanpki.com/organizations/{organizationId}/authorities/{authorityId}/acme/new_account

Operation ID organizations.organizationId.authorities.authorityId.acme.new_account.post
Access Anyone

Parameters

NameInTypeDescription
organizationId Path Required string (snowflake) Organization ID.
authorityId Path Required string (snowflake) Certificate authority ID.
Idempotency-Key Header Optional string This key identifies one request so that sending it again does not carry it out twice. Use a new random value, such as a UUID, for each new request, and send the same value again only with that same request. If you send the same request again with the same key within 10 minutes of the first response, and the first request was carried out, it is not carried out again. Instead, the server returns the first response, or HTTP 409 if that response was too large to keep. The same request means the same method, path, query, body, and Accept header, sent the same way (both as plain HTTP or both as an AI agent's tool call) by the same signed-in person or program, or from the same IP address if you are not signed in. If the first request was refused or failed, sending it again with the same key runs it again. If the first request is still being processed, the server returns HTTP 409. Wait a few seconds, then send the request again with the same key. If the same caller uses the same key for a different request to the same operation, the server returns HTTP 422. The key must be 1 to 255 printable ASCII characters long. If the server cannot record the key, for example during a database fault, the request is carried out without this check.

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 Existing ACME account already registered for this key. AcmeAccountObject application/json
201 ACME account created. AcmeAccountObject 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 Existing ACME account already registered for this key.

PropertyTypeDescription
status string Required The account's status: valid, or deactivated (cannot place new orders).
contact list of string Required Contact mailto: URLs for the account (up to 10); empty if none are set.
orders string Required URL listing the account's open orders.

201 ACME account created.

PropertyTypeDescription
status string Required The account's status: valid, or deactivated (cannot place new orders).
contact list of string Required Contact mailto: URLs for the account (up to 10); empty if none are set.
orders string Required URL listing the account's open orders.

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/new_account' \
  -H 'Content-Type: application/jose+json' \
  -d '{
    "protected": "<string>",
    "payload": "<string>",
    "signature": "<string>"
}'

All documentation