Skip to main content

API Authentication

All API requests require authentication using an API key. The API key must be included in the request headers.

Authentication Header​

x-api-key: YOUR_API_KEY

How to get your API key​

  1. Sign in to xMagic
  2. Click on your profile (top left corner) and click on "Settings"
  3. Go to "API keys" section
  4. Create a new API key if you don't have one yet

More details in the Profile page

Base URL​

The base URL endpoint is:

https://api.xmagic.ai/xmagic-backend/v1