Authentication

Secure your API requests with API keys. All authenticated endpoints require a valid API key in the request headers.

API Keys

API keys are used to authenticate requests to the Offerlia API. You can generate and manage API keys from your publisher dashboard under Settings → API Keys.

Using Your API Key

Include your API key in the Authorization header of all API requests:

Authorization: Bearer YOUR_API_KEY

Example Request

curl https://api.offerlia.com/v1/offers \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Security Best Practices

Never expose API keys client-side

API keys should only be used server-side. Never include them in client-side JavaScript or mobile apps.

Rotate keys regularly

Generate new API keys periodically and revoke old ones to maintain security.

Use environment variables

Store API keys in environment variables, never commit them to version control.