Get Current User
GET/api/profile
Get Current User
Request
Header Parameters
X-Company-Slug stringrequired
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
id string
email string
name stringnullable
surname stringnullable
language stringnullable
phone_number stringnullable
remember_me_token booleannullable
birthday datenullable
created_at date-time
updated_at date-time
timezone stringnullable
employers
array
required
id stringrequired
whitelabel_id numberrequired
code stringrequired
slug stringrequired
Possible values: <= 25 characters
name stringrequired
about stringnullablerequired
address stringnullablerequired
email stringnullablerequired
created_at stringrequired
updated_at stringrequired
country_id numbernullablerequired
package_id numberrequired
valid_until stringrequired
phone numbernullablerequired
full_phone numbernullablerequired
cf_vendor objectnullablerequired
cf_customer objectnullablerequired
settings objectnullablerequired
cf_reservation objectnullablerequired
modules string[]nullablerequired
city stringnullablerequired
working_hours
object
monday stringnullable
tuesday stringnullable
wednesday stringnullable
thursday stringnullable
friday stringnullable
saturday stringnullable
sunday stringnullable
last_payment date-timerequired
employees
object[]
required
id string
email string
name stringnullable
surname stringnullable
language stringnullable
phone_number stringnullable
remember_me_token booleannullable
birthday datenullable
created_at date-time
updated_at date-time
timezone stringnullable
meta
object
required
pivot_working_hours
object
nullable
required
monday stringnullable
tuesday stringnullable
wednesday stringnullable
thursday stringnullable
friday stringnullable
saturday stringnullable
sunday stringnullable
pivot_company_id stringrequired
pivot_user_id stringrequired
pivot_is_admin booleanrequired
pivot_is_active booleanrequired
pivot_created_at stringrequired
pivot_updated_at stringrequired
package
object
required
id numberrequired
name stringrequired
price numberrequired
currency stringrequired
whitelabel_id numberrequired
modules string[]nullablerequired
created_at date-timerequired
updated_at date-timerequired
interval stringnullablerequired
Possible values: [yearly
, monthly
]
type stringnullablerequired
Possible values: [subscription
, email
, sms
]
code stringrequired
quantity numberrequired
is_admin booleanrequired
meta object
{
"id": "1",
"email": "[email protected]",
"name": "Test",
"surname": "User 1",
"language": "en",
"phone_number": "+90123123213",
"remember_me_token": true,
"birthday": "1990-01-01",
"created_at": "2024-02-20T19:18:45.782+03:00",
"updated_at": "2024-04-11T01:11:24.889+03:00",
"timezone": "Europe/Istanbul",
"employers": [
null
],
"is_admin": true,
"meta": {}
}
Loading...