Overview

The Hyperclast API provides programmatic access to your pages, projects, and organizations.

Base URL

All API endpoints are relative to:

<BASE_URL>/api/v1/

Note: The previous base path /api/ continues to work as a backwards-compatible alias but is not recommended for new integrations.


Authentication

All requests require a bearer token in the Authorization header:

Authorization: Bearer <ACCESS_TOKEN>

Getting your token:

  1. Log in to the web app
  2. Go to Settings
  3. Copy your token from the "Developer" section

Example request:

curl -H "Authorization: Bearer <ACCESS_TOKEN>" \
     <BASE_URL>/api/v1/pages/

Request Format

Include these headers with all requests:

Header Value
Authorization Bearer <ACCESS_TOKEN>
Content-Type application/json

Response Format

Success

Status Meaning
200 Success
201 Created
204 No content (delete)

Single resource:

{
  "external_id": "abc123",
  "title": "My Page",
  "created": "2025-01-15T10:30:00Z"
}

List (paginated):

{
  "items": [...],
  "count": 42
}

Errors

Status Meaning
400 Bad request
401 Not authenticated
403 Permission denied
404 Not found
422 Validation error

All error responses (status 400+) use a consistent shape:

{
  "error": "error_code",
  "message": "Human-readable description",
  "detail": null
}
Field Type Description
error string Machine-readable error code (e.g., "forbidden", "error")
message string Human-readable description, always present
detail object/array/null Additional context. Array for validation errors (422), null for most errors

Validation error (422):

{
  "error": "error",
  "message": "An error occurred.",
  "detail": [
    {
      "loc": ["body", "title"],
      "msg": "Field required",
      "type": "missing"
    }
  ]
}

Pagination

List endpoints support pagination:

Param Default Max Description
limit 100 100 Items per page
offset 0 Items to skip
GET /api/v1/pages/?limit=20&offset=40

Timestamps

All timestamps use ISO 8601 format in UTC:

2025-01-15T10:30:00Z
Field Description
created When resource was created
modified Last user modification
updated Last update (including system)

Resources

Resource Description
Ask AI-powered Q&A about your pages
Comments Page comments with AI persona reviews
Organizations Manage organizations and members
Projects Manage projects and sharing
Pages Manage pages and content
Users User info and tokens