Skip to main content
Authentication in the FusionDesk SDK is handled once globally at initialization time. You pass your API key to initializeSdk, and every subsequent request made by the SDK automatically includes that key in the X-API-KEY header.

Initializing the SDK

Initialize the SDK state at application startup. The example below reads the API key from environment variables.
JavaScript / TypeScript

API Key Format

All FusionDesk API keys follow a specific structured format verified by the SDK’s validation engine:
  • Type: org (organization-level key) or customer (customer-level key).
  • Classification: pk (public key) or sk (secret key).
  • Hex String: A 32-character hexadecimal key.
Example valid public key: org.pk.0123456789abcdef0123456789abcdef