Your First Approval
End-to-end walkthrough: create an API key, send an approval request, approve it on your phone, and verify the signed decision.
Create an API key
Go to signedapproval.net/dashboard/api-keys (or navigate to Integrations → API Keys from the dashboard). Click Create Key and give it a name like "Test Key".
Your API key will be displayed once — copy it and store it securely. Keys use the format sa_live_....
Send an approval request
Use curl (or any HTTP client) to create an approval request:
curl -X POST https://signedapproval.net/api/v1/approvals/request \
-H "Authorization: Bearer sa_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"action": "Deploy v2.1.0 to production",
"ttl_seconds": 3600,
"context": {
"environment": "production",
"version": "2.1.0"
}
}'The API returns immediately with a pending request, not a decision. Save the returned request_id; IDs and timestamps below are illustrative:
{
"request_id": "7a2b3c4d-1111-4222-8333-123456789abc",
"status": "pending",
"expires_at": "2026-03-23T15:00:00.000Z",
"verify_url": "https://signedapproval.net/verify/7a2b3c4d-1111-4222-8333-123456789abc"
}Approve the request
The request appears in two places:
- Web dashboard — Log in at signedapproval.net/dashboard to see pending requests.
- iOS app — If you've installed the app and enabled push notifications, you'll receive an alert.
Tap or click the request to review the action details, then authenticate with your registered method (passkey, TOTP, or Face ID) and choose Approve or Reject.
Check the status
Poll using the request_id returned above and the same API key. Replace the sample UUID with your actual ID:
curl https://signedapproval.net/api/v1/approvals/7a2b3c4d-1111-4222-8333-123456789abc \
-H "Authorization: Bearer sa_live_your_key_here"Once approved, the response includes a signed receipt in decision (receipt values below are placeholders). Pending and expired responses have no decision; rejected requests can also have signed receipts.
{
"request_id": "7a2b3c4d-1111-4222-8333-123456789abc",
"status": "approved",
"action": "Deploy v2.1.0 to production",
"created_at": "2026-03-23T14:00:00.000Z",
"expires_at": "2026-03-23T15:00:00.000Z",
"requires_individual_decision": false,
"decision": {
"decision_id": "8b3c4d5e-2222-4333-8444-23456789abcd",
"decision": "approved",
"method": "passkey",
"canonical_payload": "<exact signed JSON string>",
"signature": "<base64url Ed25519 signature>",
"public_key_id": "<signing key ID>",
"decided_at": "2026-03-23T14:02:30.000Z"
}
}Verify the decision
The public verification endpoint checks a stored decision on the server, with no authentication. Use decision.decision_id from the status response (the endpoint also accepts request_id):
curl https://signedapproval.net/api/v1/approvals/8b3c4d5e-2222-4333-8444-23456789abcd/verifyA successful response includes these fields (excerpt):
{
"valid": true,
"decision": "approved",
"method": "passkey",
"signed_at": "2026-03-23T14:02:30.000Z",
"expires_at": "2026-03-23T15:00:00.000Z",
"signature_verified": true,
"public_key_id": "<signing key ID>",
"failure_reason": null,
"sandbox": false
}This is the server's verification result. For local verification, pass the receipt's exact canonical_payload, signature, and public_key_id to the SDK's verifyReceipt (Node.js) or verify_receipt (Python). Follow the SDK verification example to pin trusted keys and compare the signed request ID and action hash to your saved inputs.
context; include every input that controls execution in the action text and execute only those saved inputs.What Happens Under the Hood
When you approve a request, SignedApproval:
- Verifies your authentication (passkey challenge, TOTP code, or biometric).
- Constructs a canonical JSON payload with the request ID, decision, method, timestamp, expiry, and a random nonce.
- Signs the payload with your Ed25519 private key (decrypted from AES-256-GCM encrypted storage).
- Stores the signed decision in the database.
- Fires a webhook to the caller (if configured) with the signed payload.
The signature is mathematically bound to the exact payload. Any tampering — changing the decision, timestamp, or any other field — makes the signature invalid.