Prisma

Verify email address

Verify a user's email address using the verification code sent via email. Required before user can log in.

POST
/api/v1/auth/verify-email

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X post "http://localhost:8000/api/v1/auth/verify-email" \  -H "Content-Type: application/json" \  -d '{    "code": "abc123xyz",    "idp_user_id": "274938572048"  }'
{
  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
  "idp_user_id": "string",
  "email": "string",
  "verified": true,
  "verified_at": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}