Skip to main content
All API requests require authentication using your business API key.

Getting Your API Key

Contact the Karma team to create your business account and receive your API key. Your key will start with karma_ followed by 32 alphanumeric characters.

Using Your API Key

Include your API key in the Authorization header of every request:
const response = await fetch('https://api.karmapay.xyz/v0/end-users', {
  headers: {
    'Authorization': `Bearer karma_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`,
    'Content-Type': 'application/json',
  },
});

Security Best Practices

  • Never expose your API key in client-side code or public repositories
  • Store your key securely in environment variables
  • Rotate your key if you suspect it has been compromised by contacting the Karma team