Skip to main content

Base URL

All API requests should be made to:
For local development:

Authentication

The hans.ai API uses Bearer token authentication. Include your API key in the Authorization header:

Getting your API Key

  1. Sign in to your hans.ai account
  2. Navigate to Settings → API Keys
  3. Create a new API key or copy an existing one

Request Format

All POST and PUT requests should include:
Request bodies should be valid JSON.

Response Format

All responses are returned as JSON:
Error responses include:

Rate Limiting

API requests are rate limited to:
  • Free tier: 100 requests per hour
  • Pro tier: 1,000 requests per hour
  • Enterprise: Custom limits
Rate limit information is included in response headers:

Pagination

List endpoints support pagination:
Paginated responses include:

Error Codes

SDK Libraries

Official SDKs are coming soon for:
  • JavaScript/TypeScript
  • Python
  • Go
  • Ruby

API Endpoints

Notifications

Create and manage notification tasks

Actions

Configure notification actions

Execute

Manually trigger task execution

Schedule

Manage task schedules