Skip to main content

Get Current User

GET /v2/user/me
Retrieve information about the currently authenticated user, including profile details and workspace memberships.

Headers

x-api-key
string
required
Your API key for authentication

Response

id
string
Unique identifier for the user
email
string
User’s email address
name
string
User’s full name
workspaces
array
List of workspaces the user belongs to
createdAt
string
ISO 8601 timestamp of when the user account was created

Example Request

curl -X GET https://api.beamstudio.ai/v2/user/me \
  -H "x-api-key: your-api-key"

Example Response

{
  "id": "user_abc123",
  "email": "user@example.com",
  "name": "John Doe",
  "workspaces": [
    {
      "id": "workspace_xyz789",
      "name": "My Workspace",
      "role": "owner"
    },
    {
      "id": "workspace_def456",
      "name": "Team Workspace",
      "role": "admin"
    }
  ],
  "createdAt": "2024-01-15T10:30:00Z"
}

Common Use Cases

Workspace Selection

Use this endpoint to retrieve available workspaces and allow users to select which workspace to operate in.

Profile Display

Show user information in your application’s UI.

Permission Checking

Verify user roles and permissions before performing sensitive operations.