Skip to main content
Base64-encode the payload you want to sign and submit it with POST /api/v2/x509/signing-requests, referencing the service and the policy from Step 4. The payload goes in uploadData as base64.
1

Encode the payload

Prepare the payload
2

Submit the signing request

POST /api/v2/x509/signing-requests
Response

Approvals

Because the policy in this guide was deployed with numApprovals: 0, the request is signed immediately: its state becomes Signed without any further action. If the policy requires approvals (numApprovals greater than 0), the request stays in the Approval / Pending state until enough approvers act on it:
POST /api/v2/x509/signing-requests/{uuid}/approve
Approve response
The companion endpoint POST /api/v2/x509/signing-requests/{uuid}/deny rejects a request. The state enum on a signing request is one of None, Approval, Signed, Failed, or Denied; the approvalState enum is None, Pending, Approved, or Denied.