Get a token and try an endpoint
The API Reference pages include a Try-It console that lets you send live requests directly from your browser. This guide walks you through getting your API key and using it to authorize the console.
Try-It sends requests directly from your browser to client.apimetrics.io. For those requests to succeed, the API server must include Access-Control-Allow-Origin: https://docs.apicontext.com in its responses. If you see a network error or a CORS error in the browser console, contact the APIContext team — this is an API platform configuration, not a docs issue.
Step 1: Get your API key
- Log in to client.apimetrics.io.
- Open Settings (gear icon in the top-right).
- Select API Keys.
- Click + New API Key, give it a name, and copy the generated key.
Keep this key safe — it provides full access to your account.
Step 2: Authorize the console
- Open any page in the API Reference.
- Click the Authorize button (lock icon, top-right of the page).
- In the dialog, paste your API key into the ApiKeyAuth field.
- Click Authorize, then Close.
The lock icon turns closed when authorization is stored.
Step 3: Send a request
- Expand any endpoint — for example, List all calls under API Settings.
- Click Try it out.
- Fill in any required parameters.
- Click Execute.
- The console shows the full request URL, response code, headers, and body.
A 200 response confirms your credentials are working and CORS is configured correctly.
Troubleshooting
| Symptom | Likely cause |
|---|---|
| Browser shows CORS error | CORS headers missing on client.apimetrics.io — contact API Platform |
401 Unauthorized | API key not set or expired — re-authorize |
403 Forbidden | Key lacks the required permission level |
| Network error, no response | CORS preflight blocked — same as CORS error above |