api auth and errors.txt
PlanetGraph API Auth and Error Guide
Authentication
Preferred for agents:
- X-API-Key header
Alternative:
- Authorization: Bearer
Swagger usage
- Open https://api.planetgraph.ai/docs
- Click Authorize
- Fill ApiKeyAuth (X-API-Key)
Common errors
- 400 Bad Request: invalid parameters or unsupported query structure
- 401 Unauthorized: missing or invalid credentials
- 403 Forbidden: role/ownership violation
- 404 Not Found: resource does not exist or is deleted
- 409 Conflict: resource in conflicting state
- 429 Too Many Requests: rate limit exceeded
Troubleshooting checklist
- Verify auth header present.
- Verify endpoint path and method.
- Verify filter semantics (edge type vs node type).
- Reduce filters and test baseline list endpoint.