ALERT:
You need to sign in or sign up before continuing.
Authentication
All /api/v1 endpoints require a Bearer API key.
Primary Example
Authenticated API entrypoint request
curl -sS https://www.agentspapi.com/api/v1 \
-H "Authorization: Bearer {{API_KEY}}"
Required Header
Authorization: Bearer <api_key>
Token Format
rz_live_<key_id>_<secret>
Only Bearer authentication is supported.
Example Requests
cURL
curl -sS https://www.agentspapi.com/api/v1 \
-H "Authorization: Bearer {{API_KEY}}"
JavaScript (fetch)
const res = await fetch("https://www.agentspapi.com/api/v1", {
headers: {
Authorization: `Bearer ${process.env.AGENT_SPAPI_KEY}`,
},
});
const data = await res.json();
Python (requests)
import os
import requests
resp = requests.get(
"https://www.agentspapi.com/api/v1",
headers={"Authorization": f"Bearer {os.environ['AGENT_SPAPI_KEY']}"},
timeout=30,
)
print(resp.json())
Key Lifecycle
- Create a named key from
/developer/api_keys. - Capture the plaintext token immediately. It is shown once and not recoverable later.
- Store it in your secrets system and reference it via environment variables in runtime.
- Use the key for one workload or environment so usage and revocation stay isolated.
- Rotate by creating a replacement key, switching traffic, then revoking the previous key.
- Review per-key usage in the dashboard to verify expected consumers.
Production Key Handling
- Use a secret manager or deployment secret store for
AGENT_SPAPI_KEY. - Never commit API keys to source control, issue trackers, or chat transcripts.
- Avoid sharing one key across multiple services.
- Revoke keys immediately if exposure is suspected.