POST /signup
https://api.voygr.tech/signup
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.codeis for an agent signing someone up. We email them a 6-digit code and return averification_id. Ask them for the code, then send both toPOST /signup/verifywithin 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.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
name | string | required | The person's name. length 1 to 256 |
email | string (email) | required | Their email address. We refuse disposable domains and domains that cannot receive mail. max length 320 |
src | string (max length 512) | null | optional | |
terms_presented | boolean | optional | email_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 |
delivery | string | optional | email_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.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
success | boolean | required | |
message | string | required |
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.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
success | boolean | required | |
verification_id | string | required | Send it to POST /signup/verify with the code. |
expires_in_seconds | integer | required | How long the code works. |
message | string | required |
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."
}On this page
