Users

Get User Information

This API allows you to retrieve the details of the currently authenticated user.

GEThttps://api.w3ipfs.aioz.network/api/users/me

Headers

Authorization* Bearer your_access_token_here

Response

200: OK
{
    "data": {
        "user": {
            "id": "string",
            "first_name": "string",
            "last_name": "string",
            "email": "string",
            "wallet_address": "string",
            "role": "string",
            "created_at": "2023-05-11T11:11:11.111111Z",
            "updated_at": "2023-06-11T11:11:11.111111Z"
        }
    },
    "status": "success"
}
curl --location --request GET 'https://api.w3ipfs.aioz.network/api/users/me' \
--header 'Authorization: Bearer JWT'

Edit User

Edit the first name and last name of the user's profile

The request body when edited will look like this:

{
    "first_name": string,
    "last_name": string
}
PUThttps://api.w3ipfs.aioz.network/api/users/editProfile

Headers

Authorization* Bearer your_access_token_here

Body

first_name First name
last_name Last name

Response

200: OK
{
    "message": "Profile updated successfully",
    "status": "success"
}
curl --location --request PUT 'https://api.w3ipfs.aioz.network/api/users/editProfile' \
--header 'Authorization: Bearer JWT' \
--header 'Content-Type: application/json' \
--data-raw '{
    "first_name": "First",
    "last_name": "Last"
}'