SkyLight Chat
API Reference

Team Members

Create, list, update, and remove team members on your SkyLight Chat account.

The Team Member object

{
  "id": 5,
  "name": "James Carter",
  "email": "james@acmecorp.com",
  "role": "agent",
  "status": "active",
  "created_at": "2026-01-20T09:00:00.000000Z",
  "updated_at": "2026-01-20T09:00:00.000000Z"
}
FieldTypeDescription
idintegerUnique team member ID
namestringFull name
emailstringEmail address (used for login)
rolestringadmin or agent
statusstringactive or inactive

List team members

GET /api/v1/team
curl https://dashboard.skylightchat.com/api/v1/team \
  -H "Authorization: Bearer sk_live_••••••••••••"

Query parameters

ParameterTypeDescription
pageintegerPage number
per_pageintegerResults per page
rolestringFilter by role: admin, agent

Response

{
  "success": true,
  "data": [
    {
      "id": 5,
      "name": "James Carter",
      "email": "james@acmecorp.com",
      "role": "agent",
      "status": "active"
    },
    {
      "id": 6,
      "name": "Layla Al-Hassan",
      "email": "layla@acmecorp.com",
      "role": "admin",
      "status": "active"
    }
  ],
  "meta": { "current_page": 1, "last_page": 1, "per_page": 15, "total": 2 }
}

Create a team member

POST /api/v1/team

Creates a new team member. An invitation email is sent to the provided email address.

Request body

{
  "name": "James Carter",
  "email": "james@acmecorp.com",
  "role": "agent",
  "password": "SecureP@ssword123"
}
FieldRequiredDescription
nameFull name
emailEmail address (must be unique)
roleadmin or agent
passwordInitial password (min 8 characters)

Example

curl -X POST https://dashboard.skylightchat.com/api/v1/team \
  -H "Authorization: Bearer sk_live_••••••••••••" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "James Carter",
    "email": "james@acmecorp.com",
    "role": "agent",
    "password": "SecureP@ssword123"
  }'

Response 201 Created

{
  "success": true,
  "data": {
    "id": 5,
    "name": "James Carter",
    "email": "james@acmecorp.com",
    "role": "agent",
    "status": "active",
    "created_at": "2026-03-04T12:00:00.000000Z"
  },
  "message": "Team member created successfully."
}

Get a team member

GET /api/v1/team/{id}
curl https://dashboard.skylightchat.com/api/v1/team/5 \
  -H "Authorization: Bearer sk_live_••••••••••••"

Update a team member

PUT /api/v1/team/{id}

All fields are optional. Only provided fields are updated.

{
  "name": "James A. Carter",
  "role": "admin"
}
curl -X PUT https://dashboard.skylightchat.com/api/v1/team/5 \
  -H "Authorization: Bearer sk_live_••••••••••••" \
  -H "Content-Type: application/json" \
  -d '{"role": "admin"}'

Response

{
  "success": true,
  "data": {
    "id": 5,
    "name": "James Carter",
    "role": "admin",
    "status": "active"
  },
  "message": "Team member updated successfully."
}

Delete a team member

DELETE /api/v1/team/{id}

Removes the team member from your account. This action cannot be undone.

curl -X DELETE https://dashboard.skylightchat.com/api/v1/team/5 \
  -H "Authorization: Bearer sk_live_••••••••••••"

Response 204 No Content

No response body.

Deleting a team member permanently removes their access. Any conversations or assignments linked to them will be preserved but unassigned.

Roles

RoleCapabilities
adminFull access: settings, team management, all conversations
agentAccess to assigned conversations, contacts, and bookings