Skip to main content

Authentication

All API endpoints require authentication via an API key sent in the request header.

API Key

Include your API key in the X-API-Key header with every request:

curl -H "X-API-Key: ek_your_api_key_here" \
https://api.easyconfirm.net/api/v1/orders

API keys start with the prefix ek_ and can be generated from the EasyConfirm Dashboard.

Request Headers

HeaderRequiredDescription
X-API-KeyYesYour API key for external integrations (starts with ek_)
Content-TypeYes (for POST)Must be application/json for requests with a body
Accept-LanguageNoLanguage preference: en (default) or ar

Example Request

curl -X GET https://api.easyconfirm.net/api/v1/orders \
-H "X-API-Key: ek_xxxxx..." \
-H "Accept-Language: en"

:::caution Keep Your Key Safe

  • Never expose your API key in client-side code or public repositories.
  • Store it securely in environment variables or a secrets manager.
  • If you suspect your key has been compromised, regenerate it immediately from the dashboard. :::