Skip to main content
GET
/
auth
/
Get logged in users data
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/auth/ \
  --header 'Authorization: Bearer <token>'
{
  "message": "Successful",
  "user": {
    "fullName": "Emmanuel Umukoro",
    "email": "emma221999@gmail.com",
    "lastLogin": null,
    "TenantId": 1,
    "id": "7c5c54e3-b6e0-4b89-b443-928727b9a931",
    "UserId": "f4b4e2f8-fe5e-4076-9e09-3424ff7f185f",
    "nickName": "iEmmanuel104",
    "paymentSettings": {
      "AccountNumber": "1234567890",
      "accountName": "Royalti Account",
      "bank": "AFRICA FINANCE CORPORATION",
      "bankCode": "44444",
      "paypalcurrency": "USD",
      "wirecurrency": "USD",
      "paypalEmail": "royalti@gmail.com",
      "beneficiaryType": "company",
      "bankCountry": "Nigeria"
    },
    "userType": [
      "Artist"
    ],
    "externalId": null,
    "firstName": "Emmanuel",
    "lastName": "Umukoro",
    "profileImg": null,
    "phone": "080628537875",
    "country": "Algeria",
    "ipi": null,
    "role": "admin",
    "isActive": true,
    "signUpForm": {},
    "permissions": null,
    "createdAt": "2023-05-18T14:09:05.008Z",
    "updatedAt": "2024-03-22T11:10:53.519Z",
    "User": {
      "email": "emma221999@gmail.com"
    }
  },
  "workspace": {
    "name": "Royalti Demo",
    "uid": "7bd60554-4f63-4c62-a5f6-c29c3f67cb2a",
    "bigqueryDataset": "royalti_demo"
  }
}
/auth/ Description:
The /auth/ endpoint provides access to information about the currently logged-in user, including their user data and authentication details.
Method:
GET
Response:
Upon successful retrieval of the user’s data, the endpoint returns the user’s information in the response body.

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Responses

βœ… 200 - Success

⚠️ 401 - Expired Access token

⚠️ 404 - Not Found

❌ 500 - Internal Server Error

Tags

Auth

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Response

Success

message
string
user
object
workspace
object
⌘I