Skip to main content
This guide will walk you through authenticating your requests and retrieving your account profile.

1. Generate an API Token

Before making requests, you need a Personal Access Token:
  1. Log in to the Wenium Cloud Dashboard.
  2. Go to Settings > API Tokens.
  3. Create a new token and save the plain-text token value securely.

2. Authenticate Your Requests

Wenium uses bearer token authentication. Send your token in the Authorization header of all requests:
Authorization: Bearer YOUR_PERSONAL_ACCESS_TOKEN

3. Retrieve Your Profile

You can test your authentication by calling the /user endpoint:
curl -X GET "https://console.wenium.com/api/user" \
     -H "Authorization: Bearer YOUR_PERSONAL_ACCESS_TOKEN" \
     -H "Accept: application/json"
A successful response will return your user details:
{
  "status": true,
  "data": {
    "id": 1,
    "name": "John Doe",
    "email": "john@example.com",
    "status": "active"
  }
}