GET /2024-09/users/current

Fetches detailed information about the current authorized user

Responses

  • 200 application/json

    A successful response returning the user's details.

    Hide response attribute Show response attribute object
    • data object

      Additional properties are NOT allowed.

      Hide data attributes Show data attributes object
      • name string

        The name of the user.

        Maximum length is 255.

      • email string(email)

        The email address of the user.

        Maximum length is 255.

      • id string(uuid)

        The UUID of the resource.

      • created_at string(date-time)

        The date and time the resource was created.

      • updated_at string(date-time)

        The date and time the resource was last updated.

  • 401 application/json

    The request requires user authentication or the user is not authorized to access this resource.

    Hide response attribute Show response attribute object
    • message string
  • 404 application/json

    The specified resource was not found

    Hide response attribute Show response attribute object
    • message string
GET /2024-09/users/current
curl \
 --request GET 'https://app.merchanthq.com/api/2024-09/users/current' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
    "created_at": "2025-01-10T10:37:11Z",
    "updated_at": "2025-01-10T10:37:11Z"
  }
}
Response examples (401)
{
  "message": "Unauthorized"
}
Response examples (404)
{
  "message": "Not found"
}