Skip to main content
IllumiChat uses Auth0 for identity management. Most API endpoints require an authenticated session.

Session Authentication

Session-based authentication is the primary method for browser-based applications. When a user logs in at beta.illumichat.com, Auth0 issues a session cookie that is automatically included in subsequent requests.
DetailValue
Cookie nameauthjs.session-token
Set byAuth0 login flow
Scopebeta.illumichat.com
For browser-based integrations, include credentials: "include" in your fetch calls:
const response = await fetch("https://beta.illumichat.com/api/assistants", {
  method: "GET",
  credentials: "include",
});

API Key Authentication (Coming Soon)

API key authentication for server-to-server integrations is coming soon. Currently, all authenticated endpoints use session-based authentication via Auth0.
Once available, you’ll authenticate using a Bearer token:
curl -X GET https://beta.illumichat.com/api/assistants \
  -H "Authorization: Bearer <your-api-key>" \
  -H "Content-Type: application/json"

Public Endpoints

The following endpoints do not require authentication:

Widget Endpoints

MethodEndpointDescription
GET/api/widget/{assistantId}/configRetrieve widget configuration
POST/api/widget/{assistantId}/sessionCreate a widget chat session
POST/api/widget/{assistantId}/chatSend a message via the widget
POST/api/widget/{assistantId}/leadCapture a lead from the widget
POST/api/widget/{assistantId}/feedbackSubmit conversation feedback
GET/api/widget/{assistantId}/historyRetrieve widget chat history
POST/api/widget/tickets/createCreate a support ticket (rate limited)

SMS Webhooks

MethodEndpointDescription
POST/api/sms/webhook/{assistantId}Inbound SMS from Twilio
POST/api/sms/status/{assistantId}Twilio delivery status callback
SMS webhook endpoints validate the Twilio request signature to verify that incoming requests originate from Twilio.

Authorization

After authentication, IllumiChat checks your permissions before processing each request.

Workspace Roles

RoleCapabilities
ownerFull control including billing, workspace deletion
adminManage members, assistants, settings
memberUse assistants, create and view chats
guestLimited read-only access

Assistant Visibility

VisibilityWho Can Access
publicAll workspace members
workspaceActive workspace members
privateCreator, admins, and explicitly granted users

Auth Error Responses

StatusMeaningWhat to Do
401Unauthorized — missing or expired sessionRedirect the user to login
403Forbidden — authenticated but lacks permissionCheck the user’s workspace role
Session tokens expire based on Auth0 configuration. If you receive a 401 response, prompt the user to re-authenticate rather than retrying.