Navigation Menu
Getting Started / Security

Authentication

All requests to the MsgX API must include your workspace API Key in the authorization headers. Requests made without an API Key or with an expired key will return a 401 Unauthorized response.

How to obtain your API Key

  1. Log in to your MsgX Workspace Control Panel.
  2. Navigate to Settings > API Keys in the left sidebar menu.
  3. Click Generate New Key. Copy the key immediately; it will not be displayed again for security purposes.

Request Header Example

Authorization: Bearer YOUR_API_KEY_HERE
Content-Type: application/json

⚠️ Warning: Keep your API keys secret. Do not hardcode them in frontend environments or push them to public repositories like GitHub.