Overview
The Hitler API is a RESTful API that powers all Hitler functionality. Whether you’re building a custom integration, bot adapter, or admin tool, this API provides the foundation.Base URL
Authentication
Most endpoints require authentication via JWT bearer token.Request Format
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes* | Bearer token for authenticated endpoints |
Content-Type | Yes | application/json for POST/PATCH requests |
Request Body
POST and PATCH requests expect JSON:Response Format
Success Response
Error Response
Status Codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request - Invalid input |
401 | Unauthorized - Missing or invalid token |
403 | Forbidden - Insufficient permissions |
404 | Not Found |
409 | Conflict - Resource already exists |
500 | Internal Server Error |
Rate Limiting
| Endpoint Type | Limit |
|---|---|
| Standard endpoints | 100 requests/minute |
| Auth endpoints | 20 requests/minute |
| Webhook endpoints | 1000 requests/minute |
Pagination
List endpoints support pagination:Filtering
Many endpoints support query filters:SDKs & Libraries
TypeScript SDK
Official SDK for Node.js and browser
OpenAPI Spec
Download the OpenAPI 3.0 specificationDownload JSON
Interactive Docs
For interactive API exploration, visit our Swagger UI:- Production: api.hitler.app/docs
- Development: localhost:3000/docs
API Modules
Auth
Login, register, token management
Organizations
Organization management
Users
User CRUD operations
Tasks
Task and draft management
Chat
Conversational AI interface
Moods
Mood tracking
Flags
Wellbeing flags