Skip to content

API Reference

The Creed Space API provides RESTful endpoints for content safety evaluation.

Base URL

https://api.creed.space

Authentication

All endpoints (except /health) require an API key:

bash
curl -H "X-API-Key: cs_live_..." https://api.creed.space/api/v1/safety/evaluate

See Authentication for details.

Endpoints Overview

Safety

MethodEndpointDescription
POST/api/v1/safety/evaluateEvaluate text for safety
GET/api/v1/safety/metricsGet safety metrics

PDP (Policy Decision Point)

MethodEndpointDescription
POST/api/v1/pdp/adjudicateGet policy decision

Constitutions

MethodEndpointDescription
GET/api/v1/constitutionsList constitutions
GET/api/v1/constitutions/{id}Get constitution
GET/api/v1/constitutions/mergedGet merged constitution

API Keys

MethodEndpointDescription
POST/api/v1/ssaas/keysCreate API key
GET/api/v1/ssaas/keysList API keys
GET/api/v1/ssaas/keys/{id}Get key details
DELETE/api/v1/ssaas/keys/{id}Revoke key
POST/api/v1/ssaas/keys/{id}/rotateRotate key

Health

MethodEndpointDescription
GET/healthHealth check (no auth)

Response Format

All responses are JSON:

json
{
  "status": "success",
  "data": { ... }
}

Error responses:

json
{
  "error": "error_code",
  "message": "Human-readable message",
  "details": { ... }
}

HTTP Status Codes

CodeMeaning
200Success
201Created
400Bad request (invalid input)
401Unauthorized (invalid/missing API key)
403Forbidden (insufficient permissions)
404Not found
429Rate limited
500Server error

Rate Limits

Default limits per API key:

TierRequests/minRequests/day
Free10100
Pro10010,000
EnterpriseCustomCustom

Rate limit headers are included in responses:

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1704067200

Constitutional AI for Safer Interactions