User Profile API

GET Profile data

This endpoint is used to retrieve user profile details. It requires a valid access token in the authorization header to retrieve the profile.

HTTP Request

GET https://api.stagemeta.dev/auth/profile

Headers

Name
Type
Description

Authorization:*

string

The user's access token in the format

Bearer <token>

.

{
  "id": 22,
  "createdAt": "2022-09-20T12:21:48.995Z",
  "updatedAt": "2023-04-18T16:09:29.327Z",
  "deletedAt": null,
  "email": "[email protected]",
  "username": "my-username",
  "image": "https://cdn.stagetry.dev/images/a6bbff20-3.....",
  "walletAddress": "0xf5ad068.....cc05c44c91",
  "receiveEmail": true,
  "canGetDeltaEnergy": false,
  "emailVerify": true,
  "emailVerificationCodeExpireTime": "2023-04-14T11:24:16.008Z",
  "access": [],
  "stripeCustomerId": "cus_...51V4..YyH",
  "totalEnergyReceived": 0,
  "totalPings": 0,
  "isStageWallet": false
}

Example Request

Post Profile data

This endpoint allows users to update their profile information.

HTTP Post Request

POST https://api.stagemeta.dev/auth/profile

Headers

Name
Type
Description

Authorization*

string

The user's access token in the format

Bearer <token>

.

Request Body

Name
Type
Description

image

file

The user's profile image.

username

string

The user's username

password

string

The user's password.

phoneNumber

string

The user's phone number.

Example Requests

Last updated