Rich API Skill
This skill covers the Rich API — a powerful service for managing resources and workflows.
Authentication
Use a Bearer token in the Authorization header for all requests:
curl -H "Authorization: Bearer <your-token>" https://api.rich-example.com/v1/resources
Tokens are obtained via OAuth2. Refresh tokens expire after 30 days.
Rate limits apply: 1000 requests per minute per API key. On 429, retry after X-RateLimit-Reset seconds.
Operations
GET /v1/resources— List all resources accessible to the authenticated userPOST /v1/resources— Create a new resource with the given propertiesGET /v1/resources/{id}— Retrieve a specific resource by IDPATCH /v1/resources/{id}— Update an existing resource (partial update)DELETE /v1/resources/{id}— Delete a resource permanently
Errors
Standard HTTP status codes apply:
400— Bad request: malformed JSON or missing required fields401— Unauthorized: missing or invalid Bearer token403— Forbidden: token lacks required scope404— Not found: resource does not exist or is not visible to the caller429— Rate limit exceeded: checkX-RateLimit-RemainingandRetry-Afterheaders500— Internal server error: retry with exponential backoff
# Check rate limit headers
curl -I -H "Authorization: Bearer <token>" https://api.rich-example.com/v1/resources