Retrieve User Profile by Email

GET /user/user/{email}/

The GET /user/user/{email}/ endpoint allows you to retrieve the profile details of a user based on their email. It provides the user's personal information, including their name, profile picture, gender, birth date, education level, and other related details.


Parameters

Name

Description

email

Required — The email of the user whose profile you want to retrieve. This is a path parameter.


Responses

Code

Description

200

Successful retrieval of the user profile data.

Response Content Type: application/json

Example Response:

{
  "id": 123,
  "first_name": "John",
  "last_name": "Doe",
  "profile_pic": "http://example.com/profile.jpg",
  "gender": "Male",
  "date_of_birth": "1990-01-01",
  "workshop_location": "123 Workshop St.",
  "education_level": "Bachelor's Degree",
  "call_token": "ABC123456",
  "user": "john.doe@example.com",
  "supported_document": "http://example.com/document.pdf",
  "car_speciality": [1, 2, 3],
  "services": [10, 11, 12]
}

Fields:

Field

Type

Description

id

Integer

The unique ID of the user.

first_name

String

The first name of the user.

last_name

String

The last name of the user.

profile_pic

String

URL of the user's profile picture.

gender

String

The gender of the user. Values can be: [Male, Female, Other].

date_of_birth

String (Date)

The user's date of birth (nullable).

workshop_location

String (nullable)

The location of the user's workshop.

education_level

String (nullable)

The user's highest education level (nullable).

call_token

String (nullable)

The call token used by the user for any calls (nullable).

user

String

The email address of the user.

supported_document

String (nullable)

URL of the user's supporting document (nullable).

car_speciality

Array of Integers

List of IDs representing the car specialties the user is associated with.

services

Array of Integers

List of IDs representing the services the user provides.

Last updated