1. Home
  2. Docs
  3. Mavryx API Reference
  4. Objects
  5. Account

Account

The object represents the user accounts details

Endpoints
GET/account/me
GET/account/list
Filed nameJSON TypeTypeRelatedDescription
uuidstringMavryx/Types/UuidMavryx/AccountObject identifier
typestringMavryx/Types/StringObject type
created_timeintegerMavryx/Types/DateTime
updated_timeintegerMavryx/Types/DateTime
deleted_timeintegerMavryx/Types/DateTime
emailstringMavryx/Types/EmailEmail address
first_namestringMavryx/Types/StringFirst name
last_namestringMavryx/Types/StringLast name

Get current account details

Returns the current user account associated with the token.

Endpoint
GET /account/me

Request

CURL
curl -X 'GET' 'https://accounts.mavryx.solutions/account/me' -H 'accept: application/json' -H 'Authorization: access_token iiodias82314312
PHP
$account = $api->accounts->setToken($token)->account()->me([])->item();

Response


{
  "header": {
    "version": 20240101,
    "endpoint": "/account/me",
    "referer": "https://swagger-dev.mavryx.software",
    "raycast": "dd68cf4a998d325570aaf450c09d26a4",
    "request_id": "8cd04489a7042cca9878b12149f549de",
    "response_id": "3bac087c4c41ea20544fde1d9d20bfaf",
    "status": 200,
    "message": "OK"
  },
  "response": {
    "response_type": "item",
    "type": "Mavryx/Account",
    "item": {
      "uuid": "f5a033f9-3ba2-ff48-9db2-5bc91e1d58c5",
      "type": "Mavryx/Account",
      "created_time": 1705331643,
      "updated_time": null,
      "deleted_time": null,
      "is_active": true,
      "email": "john.doe@email.com",
      "first_name": "John",
      "last_name": "Doe"
    }
  }
}
Was this article helpful to you? No Yes

How can we help?