HTTP Basic auth

Pass your project ID as the username and project secret as the password:
curl -u "PROJECT_ID:PROJECT_SECRET" \
  "https://api.interactions.co.in/api/projects/PROJECT_ID/skyline/users"

Credential format

FieldExampleNotes
Project IDa1b2c3d4-e5f6-…UUID from dashboard
Project secretsk_live_…Shown once at creation; store securely

SDK runtime auth

The SDK exchanges the same credentials for a short-lived runtime token via the broker:
curl -X POST "https://api.interactions.co.in/v1/auth/token" \
  -H "Content-Type: application/json" \
  -d '{
    "projectId": "PROJECT_ID",
    "projectSecret": "PROJECT_SECRET",
    "platform": "imessage"
  }'
Response:
{
  "succeed": true,
  "data": {
    "token": "eyJ…",
    "ttl": 3600,
    "endpoints": [
      { "address": "line.interactions.co.in:50051", "phone": "+15551234567" }
    ]
  }
}
The SDK handles token refresh automatically at 80% of the TTL.

CLI auth

The CLI uses device login for dashboard operations, then targets a project with -p / INTERACTIONS_PROJECT_ID. Management calls reuse your session token; the SDK path uses project credentials directly.
sky login
export INTERACTIONS_PROJECT_ID=your-project-id
sky skyline users ls