core
Swap a signup code for an API key
Changed onStep 2 of POST /signup with delivery: "code", also without a key. Send the verification_id and the 6 digits the person got by email.
A code works for 10 minutes or 5 attempts, and only once. Entering it accepts the API Terms.
The key is in this response once and is not emailed, so store it straight away. A new address gets a new account. An address that already has one gets its key replaced: the old key stops working, and we try to email the address a notice with no key in it.
After a 503 the same code still works until it expires. Try again in a minute.
post/signup/verify
Request
- Base URLhttps://api.voygr.tech
- URLhttps://api.voygr.tech/signup/verify
- Authnone required
Request body
Example request
{
"verification_id": "Jq3x0bF5yW2mN7tL1cR9eH",
"code": "123456"
}Response
The key, sent with Cache-Control: no-store.
Example response
{
"success": true,
"api_key": "pk_live_...",
"created": true,
"replaced_previous_key": false,
"opening_balance": 2500,
"message": "Save this key now: it is shown once and is not emailed."
}Changes
- info
endpoint added
- info