Ploi Core

Get user

Get user

Get a specific user

GET api/users/{user}

Example request:

curl -X GET "https://panel.example.hosting.com/api/users/1" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": {
        "id": 1,
        "avatar": "https://www.gravatar.com/avatar/your-profile-hash?s=150",
        "name": "John Doe",
        "email": "john@doe.com",
        "package_id": null,
        "blocked": null,
        "created_at": "2022-07-23T13:35:51.000000Z"
    },
}