Prisma

Register new user

Register a new user account. A verification email will be sent to the provided email address. User must verify their email before they can log in.

POST
/api/v1/auth/register

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/register" \  -H "Content-Type: application/json" \  -d '{    "accept_terms": true,    "email": "[email protected]",    "first_name": "Jane",    "last_name": "Doe",    "organization_name": "Acme Corp",    "password": "SecureP@ssw0rd!"  }'
{
  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
  "idp_user_id": "string",
  "email": "string",
  "display_name": "string",
  "state": "pending_verification",
  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
  "verification_sent": true,
  "created_at": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}