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.

Note
This tutorial assumes you've already created your account and registered at least one authentication method (passkey or TOTP). If not, start with Creating Your Account.
Step-by-Step Guide
1

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_....

Important
Your API key is shown only once at creation time. If you lose it, you'll need to create a new one. Store it in a secrets manager, environment variable, or password manager.
2

Send an approval request

Use curl (or any HTTP client) to create an approval request:

bash
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:

JSON
{
  "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"
}
3

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.

4

Check the status

Poll using the request_id returned above and the same API key. Replace the sample UUID with your actual ID:

bash
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.

JSON
{
  "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"
  }
}
5

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):

bash
curl https://signedapproval.net/api/v1/approvals/8b3c4d5e-2222-4333-8444-23456789abcd/verify

A successful response includes these fields (excerpt):

JSON
{
  "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.

Important
Execute only after local verification succeeds and the signed decision is approved, unexpired, and not a sandbox receipt. Offline signature verification does not extend authorization past expiry. Receipt v1 binds the exact action text, not 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:

  1. Verifies your authentication (passkey challenge, TOTP code, or biometric).
  2. Constructs a canonical JSON payload with the request ID, decision, method, timestamp, expiry, and a random nonce.
  3. Signs the payload with your Ed25519 private key (decrypted from AES-256-GCM encrypted storage).
  4. Stores the signed decision in the database.
  5. 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.

Tip
You can also use the bootstrap flow to let AI agents self-provision their own API keys. See Bootstrap Flow for details.