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) orcustomer(customer-level key). - Classification:
pk(public key) orsk(secret key). - Hex String: A 32-character hexadecimal key.
org.pk.0123456789abcdef0123456789abcdef
