Zum Inhalt springen
HatcherWebsite
v1

API Reference

Integrate your Hatcher agents into any application. Manage agents, send messages, and monitor status programmatically.

Authentication

All API requests require authentication using your platform API key. Include it in the Authorization header as a Bearer token.

Authorization: Bearer hk_your_api_key

You can find and regenerate your API key on the Settings page. Keys are prefixed with hk_ for easy identification.

curl -H "Authorization: Bearer hk_your_api_key" \
  https://api.hatcher.host/api/v1/agents

Never expose your API key in client-side code or public repositories. Use environment variables and server-side requests to keep your key safe.

Rate Limits

API usage is rate-limited per day based on your plan. Rate limit information is included in every response header.

TierRequests / DayPrice
Free100$0
Starter10,000$6.99/mo
Pro100,000$19.99/mo
Business500,000$49.99/mo

Check the following response headers to monitor your usage:

X-RateLimit-LimitYour daily request limit
X-RateLimit-RemainingRequests remaining today
X-RateLimit-ResetUTC timestamp when the limit resets

Agents

Chat

Lifecycle

Account

Response Format

All API responses follow a consistent JSON structure. Successful responses include a data field. Error responses include error and code fields.

Success

{
  "success": true,
  "data": { ... }
}

Error

{
  "success": false,
  "error": "Not found",
  "code": "NOT_FOUND"
}

Error Codes

CodeHTTPDescription
AUTH_REQUIRED401Missing or invalid API key
FORBIDDEN403Not authorized for this resource
NOT_FOUND404Agent or resource not found
RATE_LIMIT_EXCEEDED429Daily API limit reached
VALIDATION_ERROR400Invalid request body or parameters
AGENT_NOT_RUNNING409Agent must be running for this action
SERVER_ERROR500Internal server error

Need help integrating? Check out the platform-specific guides.

Hatcher

Wähle deinen Benutzernamen

Gib deinem Hatcher-Konto einen eigenen Namen. Er erscheint in deinem Profil und bei geteilten Agenten.

3–30 Zeichen: Buchstaben, Zahlen, Unterstriche oder Bindestriche.