Skip to content
Torii docs

Verify sign-up code

POST
/_torii/auth/signup/verify-email
curl --request POST \
--url 'https://your-app.torii.so/_torii/auth/signup/verify-email?_is_native=false' \
--header 'Content-Type: application/json' \
--data '{ "token": "example", "code": "example" }'

Confirms the 6-digit code, creates the verified user, and returns a session.

Host
string
_is_native
boolean
Media type application/json
object
token
required
string
>= 1 characters
code
required
string
>= 1 characters /\d{6}/
Example generated
{
"token": "example",
"code": "example"
}

OK

Media type application/json
object
Example generated
{}