Auth

Signs Up New User to the Platform as a Therapist

post/auth/signup

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/auth/signup
  • Auth: none declared

Request body

emailstring email required

Email ID of the User/Therapist

passwordstring required

Password of the User/Therapist (meets strong password requirements)

first_namestring

First Name of the User/Therapist

last_namestring

Last Name of the User/Therapist

Example request

{
  "email": "dr.doolittle@zoolittle.com",
  "password": "IlikeMYanimalsLITTLE@34",
  "first_name": "John",
  "last_name": "Dolittle"
}

Response

User/Therapist created successfully!

access_tokenstring required

The JWT Access Token issued for this User

needs_mfaboolean required

Indicates if the user needs multi-factor authentication

Example response

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "user": {
    "id": "f20e5948-01ba-4113-b453-db05d8bde3bc"
  }
}

Changes

    • ○

      added the required property to the response with the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status