Authentication
All EdgeWrap API access is authenticated using Server API Keys. You create and manage these keys directly from your EdgeWrap dashboard — no login or signup API is required.
Server API Keys
A Server API Key is a long-lived credential that authenticates your application or server when calling any EdgeWrap API. You must create at least one Server API Key from the dashboard before making any API requests.
Creating a Server API Key
- Log in to the EdgeWrap Dashboard at app.edgewrap.pro.
- Navigate to your project and open the API Keys tab.
- Click Create API Key and choose the Server platform type.
- Give the key a descriptive name (e.g.
Production Server). - Click Generate and copy the key immediately — it will only be shown once.
Authenticating Proxy Requests (x-api-key)
To route traffic through the EdgeWrap gateway to your origin, attach your Server API Key in the x-api-key header with every request.
curl https://{your-project}.edgewrap.pro/v1/products \
-H "x-api-key: ek_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"Authenticating Management API Requests
Administrative operations — such as creating projects, reading analytics, or updating WAF rules programmatically — also use your Server API Key. Pass it in the x-api-key header when calling the management API.
curl https://server.edgewrap.pro/v1/projects \
-H "x-api-key: ek_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"API Key Properties
When creating a Server API Key in the dashboard, you can configure these properties to control access and protect against misuse:
- Environment: Scoped to
liveortestenvironments — test keys have separate usage caps. - Platform: Set to
Serverfor server-to-server communication. Server keys require an additional secret (x-api-secret) for double verification. - Rate Limits: Configure custom requests-per-minute (RPM) limits and daily request caps on a per-key basis.
- IP Allowlist: Restrict which server IPs are permitted to use the key for added security.
Forwarding Client Authorization Headers
EdgeWrap acts as a transparent proxy. If your client applications include their own Authorization header (e.g. Authorization: Bearer <user-token>), EdgeWrap will validate the x-api-keyat the gateway and forward the client's Authorization header untouched to your origin.
Authorization: Bearer jwt_...