Users

Get current user profile

get
/profile/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

User profile

application/json
get
/profile/
GET /api/v1/profile/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 1,
  "email": "name@gmail.com",
  "name": "text",
  "profile_pic": "text"
}

Update profile

put
/profile/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringOptional
profile_picstring · binaryOptional
Responses
200

Updated user profile

application/json
put
/profile/
PUT /api/v1/profile/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 38

{
  "name": "text",
  "profile_pic": "binary"
}
{
  "id": 1,
  "email": "name@gmail.com",
  "name": "text",
  "profile_pic": "text"
}

Get personal info

get
/personal-info/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Personal info

application/json
get
/personal-info/
GET /api/v1/personal-info/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "date_of_birth": "2025-11-29",
  "goals": "text",
  "therapy_focus": "text",
  "addiction_type": "text",
  "mood": "text",
  "contact_number": "text"
}

Set or update personal info

put
/personal-info/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
date_of_birthstring · date | nullableOptional
goalsstring | nullableOptional
therapy_focusstring | nullableOptional
addiction_typestring | nullableOptional
moodstring | nullableOptional
contact_numberstring | nullableOptional
Responses
200

Updated personal info

application/json
put
/personal-info/
PUT /api/v1/personal-info/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 130

{
  "date_of_birth": "2025-11-29",
  "goals": "text",
  "therapy_focus": "text",
  "addiction_type": "text",
  "mood": "text",
  "contact_number": "text"
}
{
  "date_of_birth": "2025-11-29",
  "goals": "text",
  "therapy_focus": "text",
  "addiction_type": "text",
  "mood": "text",
  "contact_number": "text"
}

Partial update of personal info

patch
/personal-info/
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
date_of_birthstring · date | nullableOptional
goalsstring | nullableOptional
therapy_focusstring | nullableOptional
addiction_typestring | nullableOptional
moodstring | nullableOptional
contact_numberstring | nullableOptional
Responses
200

Updated personal info

application/json
patch
/personal-info/
PATCH /api/v1/personal-info/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 130

{
  "date_of_birth": "2025-11-29",
  "goals": "text",
  "therapy_focus": "text",
  "addiction_type": "text",
  "mood": "text",
  "contact_number": "text"
}
{
  "date_of_birth": "2025-11-29",
  "goals": "text",
  "therapy_focus": "text",
  "addiction_type": "text",
  "mood": "text",
  "contact_number": "text"
}

Last updated