Information

Get your own user information.


GET/api/user

Get user information

This endpoint returns your account information including name, email, plan, and billing details.

Request

GET
/api/user
curl -G "https://ploi.io/api/user" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": {
    "avatar": "https://www.gravatar.com/avatar/your-profile-hash?s=300",
    "name": "John Doe",
    "email": "[email protected]",
    "billing_details": null,
    "country": "en",
    "timezone": "UTC",
    "created_at": "2018-03-01 00:00:00",
    "plan": "Unlimited",
    "plan_expires_at": "2020-01-01 00:00:00"
  }
}