curl -X GET "https://api.apitraffic.io/v1/authentication/me" \
  -H "Authorization: Bearer your-jwt-token"
{
  "sid": "usr_abc123def456ghi789",
  "firstName": "John",
  "lastName": "Doe", 
  "email": "john.doe@example.com",
  "timezone": "America/New_York",
  "defaultAccountSid": "acc_xyz789uvw012rst345",
  "createdAt": "2023-12-01T10:30:00.000Z",
  "accounts": [
    {
      "sid": "acc_xyz789uvw012rst345",
      "name": "My Company",
      "role": "owner"
    }
  ],
  "chat": {
    "userHash": "a1b2c3d4e5f6g7h8i9j0"
  }
}

Get User Profile

Returns the authenticated user’s profile information including account details.

Headers

Authorization
string
required
Bearer token for authentication

Response

sid
string
User’s unique identifier
firstName
string
User’s first name
lastName
string
User’s last name
email
string
User’s email address
timezone
string
User’s timezone setting
defaultAccountSid
string
Default account identifier
createdAt
string
ISO 8601 timestamp of user creation
accounts
array
Array of account objects the user has access to
chat
object
curl -X GET "https://api.apitraffic.io/v1/authentication/me" \
  -H "Authorization: Bearer your-jwt-token"
{
  "sid": "usr_abc123def456ghi789",
  "firstName": "John",
  "lastName": "Doe", 
  "email": "john.doe@example.com",
  "timezone": "America/New_York",
  "defaultAccountSid": "acc_xyz789uvw012rst345",
  "createdAt": "2023-12-01T10:30:00.000Z",
  "accounts": [
    {
      "sid": "acc_xyz789uvw012rst345",
      "name": "My Company",
      "role": "owner"
    }
  ],
  "chat": {
    "userHash": "a1b2c3d4e5f6g7h8i9j0"
  }
}

Verify Token

Verifies the validity of an authentication token.

Headers

Authorization
string
required
Bearer token to verify

Response

accountSid
string
Account identifier associated with the token
curl -X GET "https://api.apitraffic.io/v1/authentication/verify" \
  -H "Authorization: Bearer your-jwt-token"
{
  "accountSid": "acc_xyz789uvw012rst345"
}

Sign Out

Signs the user out of their current session.

Headers

Authorization
string
required
Bearer token for the session to terminate

Response

success
boolean
Indicates if the sign out was successful
curl -X GET "https://api.apitraffic.io/v1/authentication/signout" \
  -H "Authorization: Bearer your-jwt-token"
{
  "success": true
}