POST /v1/keys
Issue an anonymous API key. No signup, no email, persistent.
Anonymous bearer keys. No signup, no email, persistent across requests. Rate limit 60 req/min, 5000 req/day per key.
Endpoint
POST /v1/keys
Parameters
| Parameter | Type | Description |
|---|---|---|
agent | string | Free-form label for telemetry (e.g. "my-agent"). |
Request
curl -X POST https://api.b2a.bluepillow.com/v1/keys \
-H "Content-Type: application/json" \
-d '{"agent": "my-agent-name"}'
Response
{
"key": "<your-key>",
"rate_limit": {"per_minute": 60, "per_day": 5000}
}
Usage
Pass the key in Authorization: Bearer <your-key> on every subsequent request.
Keys are not sensitive secrets — they identify a rate-limit bucket, not a billing identity. Embedding them in a public agent config is fine.