diff --git a/README.md b/README.md index 9178f9b..aaa3b02 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,7 @@ For custom requirements (eIDAS-qualified timestamps, on-premise deployment): [co | `GET` | `/v1/health` | Health check | | `GET` | `/v1/pricing` | Plans and limits | | `POST` | `/v1/proxy` | Certified proxy call | -| `POST` | `/v1/keys/free-signup` | Create free API key | +| `POST` | `/v1/keys/free-signup` | Request a free API key (202, key sent by email after confirmation) | | `POST` | `/v1/keys/setup` | Subscribe to Pro, Enterprise, or Platform (Stripe Checkout) | | `POST` | `/v1/keys/portal` | Open Stripe Billing Portal | | `POST` | `/v1/keys/overage` | Enable/disable overage billing | diff --git a/docs/quick-reference.md b/docs/quick-reference.md index d3c7596..3bcb097 100644 --- a/docs/quick-reference.md +++ b/docs/quick-reference.md @@ -50,6 +50,7 @@ Use case: certified GitHub comments, Slack messages, # Free (500/month, no card) curl -X POST https://trust.arkforge.tech/v1/keys/free-signup \ -d '{"email": "you@example.com"}' +# → 202 {"status": "pending_confirmation"}: confirm from the email, the key is sent by email only # Pro Test (development) curl -X POST https://trust.arkforge.tech/v1/keys/setup \ @@ -180,7 +181,7 @@ if 'provider_payment' in result['proof']: ## Key endpoints ```bash -# Free signup +# Free signup (202, key sent by email after confirmation) POST https://trust.arkforge.tech/v1/keys/free-signup # Pro/Test setup diff --git a/docs/user-guide.md b/docs/user-guide.md index 46acb21..5b3c884 100644 --- a/docs/user-guide.md +++ b/docs/user-guide.md @@ -236,15 +236,13 @@ curl -X POST https://trust.arkforge.tech/v1/keys/free-signup \ -d '{"email": "you@example.com"}' ``` -**Response:** +**Response (`202`, identical for a new or a known address):** ```json -{ - "api_key": "mcp_free_abc123...", - "plan": "free", - "limit": "500 proofs/month" -} +{"status": "pending_confirmation"} ``` +The key is never returned by the API. Open the confirmation link in the email (valid 24 hours, single use) and confirm on the page: your `mcp_free_...` key is then sent to that address. Limits: 3 emails per address per 24 hours, 5 requests per IP per hour (`429`); `503` if the service cannot guarantee the limits, retry later. + No credit card required. ---