Skip to content

Swap a signup code for an API key

POST /signup/verify

https://api.voygr.tech/signup/verify

Open in playground

Overview

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

Authentication

No authentication required.

Request body

required

application/json

Schema: SignupVerifyRequest

Responses

200

The key, sent with Cache-Control: no-store.

application/json

Schema: SignupVerified

400

CODE_INCORRECT: the code is wrong. Try again; attempts_remaining says how many tries are left. CODE_INVALID_OR_EXPIRED: the code was used, has expired or is out of attempts, or the verification_id is unknown. Start again with POST /signup.

application/json

codeincorrect

{
  "detail": {
    "success": false,
    "error": "That code is not right. Check it and try again.",
    "error_code": "CODE_INCORRECT",
    "attempts_remaining": 4
  }
}

codeinvalidorexpired

{
  "detail": {
    "success": false,
    "error": "That code is invalid or expired. Start again with POST /signup.",
    "error_code": "CODE_INVALID_OR_EXPIRED"
  }
}

403

The account for this address is suspended. We left it unchanged.

application/json

accountsuspended

{
  "detail": {
    "success": false,
    "error": "This account is suspended. Contact support@voygr.tech.",
    "error_code": "account_suspended"
  }
}

409

The account for this address cannot get a new key here. We left it unchanged. KEY_EXPIRED: its key has expired. ACCOUNT_WITHOUT_PLACECALL: we cannot set its key up to place calls here. Both need support.

application/json

keyexpired

{
  "detail": {
    "success": false,
    "error": "This key expired on 2026-09-30. Contact support to have it renewed.",
    "error_code": "KEY_EXPIRED"
  }
}

accountwithoutplacecall

{
  "detail": {
    "success": false,
    "error": "This email already has a Voygr account. We cannot set its key up to place calls through sign-up. Write to support@voygr.tech.",
    "error_code": "ACCOUNT_WITHOUT_PLACECALL"
  }
}

422

The code is not 6 digits, or the verification_id is malformed.

application/json

malformedcode

{
  "detail": [
    {
      "type": "value_error",
      "loc": [
        "body",
        "code"
      ],
      "msg": "Value error, code must be the 6 digits from the email"
    }
  ]
}

500

We could not replace the existing account's key.

application/json

rotationfailed

{
  "detail": {
    "success": false,
    "error": "Could not complete rotation.",
    "error_code": "ROTATION_FAILED"
  }
}

503

Try again with the same code: after any 503 it still works until it expires. SIGNUP_CAPPED: we are not opening new accounts right now. SIGNUP_VERIFY_UNAVAILABLE: we could not issue the key. account_status_unavailable: we could not check the account's status.

application/json

signupcapped

{
  "detail": {
    "success": false,
    "error": "We're not taking new accounts right now. The same code works until it expires.",
    "error_code": "SIGNUP_CAPPED"
  }
}

signupverifyunavailable

{
  "detail": {
    "success": false,
    "error": "We could not issue your key. Try again in a minute with the same code.",
    "error_code": "SIGNUP_VERIFY_UNAVAILABLE"
  }
}

accountstatusunavailable

{
  "detail": {
    "success": false,
    "error": "Could not check your account just now. Try again shortly.",
    "error_code": "account_status_unavailable"
  }
}

accountbackendunavailable

{
  "detail": {
    "error": "account backend unavailable"
  }
}

Schemas

SignupVerifyRequest

Type: object

FieldTypeRequiredDescription and constraints
verification_idstringrequiredFrom the POST /signup response.
length 1 to 64; pattern `^[A-Za-z0-9_-]{1,64}$`
codestringrequiredThe 6 digits from the email. We ignore spaces and dashes.
length 1 to 32

Example

{
  "verification_id": "Jq3x0bF5yW2mN7tL1cR9eH",
  "code": "123456"
}

SignupVerified

Type: object

The API key, shown once. It is not emailed.

FieldTypeRequiredDescription and constraints
successbooleanrequired
api_keystringrequiredSend it as X-API-Key. Store it now: it is not shown again.
createdbooleanrequiredtrue: a new account was created.
replaced_previous_keybooleanrequiredtrue: the address already had an account, and its previous key no longer works.
opening_balanceintegeroptionalCredits the new account starts with. Present only when created is true.
messagestringrequired

Example

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