Docs / Get Current User
GET /v1/auth/me

Get Current User

Get the current authenticated user information

Get Current User

Retrieve information about the currently authenticated user and tenant.

Endpoint

GET /v1/auth/me

Request

Headers

Header Value
Authorization Bearer {access_token}

Example Request

curl -X GET https://api.apimw.com/v1/auth/me \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response

Success Response (200 OK)

{
  "success": true,
  "data": {
    "user": {
      "id": "usr_abc123",
      "email": "developer@example.com",
      "name": "John Developer"
    },
    "tenant": {
      "id": "ten_xyz789",
      "name": "Acme Corp",
      "plan": "professional",
      "status": "active"
    },
    "permissions": [
      "whatsapp:send",
      "whatsapp:templates",
      "webhooks:manage"
    ]
  }
}

Response Fields

Field Description
user.id Unique user identifier
user.email User's email address
tenant.id Tenant/organization identifier
tenant.plan Current subscription plan
permissions List of granted permissions