Skip to content

Sign up for a free API key

POST /signup

https://api.voygr.tech/signup

Open in playground

Overview

You do not need a key to call this. delivery decides how the person gets theirs.

  • email_key (the default) emails the key. The response never contains it. If the address already has an account, we send no new key: recover it at /recover.
  • code is for an agent signing someone up. We email them a 6-digit code and return a verification_id. Ask them for the code, then send both to POST /signup/verify within 10 minutes. We create nothing before then. We send at most 3 codes per address per 24 hours. Past that the response looks the same, but no email goes out.

In both modes, a 200 looks the same for every address. It does not tell you whether the address has an account. terms_presented only applies to email_key. With code, entering the code accepts the API Terms.

Authentication

No authentication required.

Request body

required

application/json

Schema: SignupRequest

Responses

200

SignupKeyEmailed for email_key, SignupCodeSent for code.

application/json

Schema: SignupKeyEmailed | SignupCodeSent

422

We refused the address: a disposable email domain, a domain that cannot receive mail, or a malformed body. Nothing was sent.

application/json

disposableemaildomain

{
  "detail": {
    "success": false,
    "error": "We don't accept this email provider.",
    "error_code": "DISPOSABLE_EMAIL_DOMAIN"
  }
}

invalidemail

{
  "detail": [
    {
      "type": "value_error",
      "loc": [
        "body",
        "email"
      ],
      "msg": "Value error, Invalid email: An email address must have an @-sign."
    }
  ]
}

429

Too many signups from this IP address. Try again later.

application/json

ipratelimited

{
  "detail": {
    "success": false,
    "error": "Too many signup attempts. Try again later.",
    "error_code": "SIGNUP_IP_RATE_LIMITED"
  }
}

503

We could not send the email.

application/json

emailfailed

{
  "detail": {
    "success": false,
    "error": "Failed to send email. Please try again."
  }
}

Schemas

SignupRequest

Type: object

Who to sign up, and how they get their key.

FieldTypeRequiredDescription and constraints
namestringrequiredThe person's name.
length 1 to 256
emailstring (email)requiredTheir email address. We refuse disposable domains and domains that cannot receive mail.
max length 320
srcstring (max length 512) | nulloptional
terms_presentedbooleanoptionalemail_key only. Set true only if, before submitting, you showed the person the API Terms and Privacy Policy and told them that continuing accepts them. Ignored for code, where entering the code accepts the API Terms.
default False
deliverystringoptionalemail_key emails the key. code emails a 6-digit code to swap for the key at POST /signup/verify.
one of email_key, code; default email_key

Example

{
  "name": "Ada",
  "email": "ada@example.com",
  "delivery": "code"
}

SignupKeyEmailed

Type: object

The response to delivery: "email_key", the same for every address.

FieldTypeRequiredDescription and constraints
successbooleanrequired
messagestringrequired

Example

{
  "success": true,
  "message": "If this is a new email, an API key has been sent. If an account already exists, click “Recover your key” below to receive a new API key."
}

SignupCodeSent

Type: object

The response to delivery: "code", the same shape for every address.

FieldTypeRequiredDescription and constraints
successbooleanrequired
verification_idstringrequiredSend it to POST /signup/verify with the code.
expires_in_secondsintegerrequiredHow long the code works.
messagestringrequired

Example

{
  "success": true,
  "verification_id": "Jq3x0bF5yW2mN7tL1cR9eH",
  "expires_in_seconds": 600,
  "message": "We emailed a 6-digit code to that address. Ask the person who owns it for the code, then call POST /signup/verify. Entering the code accepts the API Terms."
}