REST API Reference

Endpoints, authentication, and code examples to integrate Contextaify programmatically.

Base URL

https://api.contextaify.com/v1

Authentication

All requests require a Bearer token in the Authorization header.

bash
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.contextaify.com/v1/contexts

Rate limits

PlanLimitBurst
Free60 req/min10
Pro300 req/min50
Business1,000 req/min100
EnterpriseCustomCustom

Endpoints

Contexts

GET/v1/contexts

docs.api.ep.listContexts

bash
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.contextaify.com/v1/contexts
GET/v1/contexts/:id

docs.api.ep.getContext

bash
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.contextaify.com/v1/contexts/ctx_abc123
POST/v1/contexts

docs.api.ep.createContext

bash
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Brand Guidelines",
    "content": "# Brand Guidelines\n\nOur brand...",
    "tags": ["brand", "marketing"]
  }' \
  https://api.contextaify.com/v1/contexts
PUT/v1/contexts/:id

docs.api.ep.updateContext

bash
curl -X PUT \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "# Updated Brand Guidelines\n\n..."
  }' \
  https://api.contextaify.com/v1/contexts/ctx_def456
DELETE/v1/contexts/:id

docs.api.ep.deleteContext

bash
curl -X DELETE \
  -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.contextaify.com/v1/contexts/ctx_def456

Versions

GET/v1/contexts/:id/versions

docs.api.ep.listVersions

bash
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.contextaify.com/v1/contexts/ctx_abc123/versions

Export

GET/v1/contexts/:id/export

docs.api.ep.exportContext

bash
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.contextaify.com/v1/contexts/ctx_abc123/export?format=pdf"

Error codes

CodeMeaning
400docs.api.errors.400
401docs.api.errors.401
403docs.api.errors.403
404docs.api.errors.404
429docs.api.errors.429
500docs.api.errors.500

We use cookies

We use cookies to improve your experience, analyze traffic, and personalize content. You can accept all, reject optional ones, or configure your preferences. Cookie policy