Users
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
User profile
application/json
401
Unauthorized – missing or invalid access token
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"
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringOptional
profile_picstring · binaryOptional
Responses
200
Updated user profile
application/json
401
Unauthorized – missing or invalid access token
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"
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
Personal info
application/json
401
Unauthorized – missing or invalid access token
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"
}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
401
Unauthorized – missing or invalid access token
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"
}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
401
Unauthorized – missing or invalid access token
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

