Skip to content

Developers

API keys and authentication

Connect to the Hitapo REST API: creating API keys, Bearer authentication, base URL, error format, pagination and rate limits.

With the REST API and webhooks you can connect Hitapo to your own systems (CRM, e-commerce, ERP). Everything you see in the dashboard runs on the same API.

Creating an API key

  1. Step 1:
    Open Settings › Developer.
  2. Step 2:
    In the API keys section, click Create key.
  3. Step 3:
    Enter a Key name that reminds you where it's used (e.g. “Shopify integration”).
  4. Step 4:
    The key starts with hp_ and is shown only once. Save it somewhere safe right away (e.g. an environment variable on your server).
  • Keys have full access: they act like an Admin in your business. Use them on the server side only; never put them in browser or mobile app code.
  • We store a hash (SHA-256) of the key, not the key itself. If you lose a key we can't recover it; create a new one.
  • The list shows the first characters of each key and when it was Last used.
  • Revoke disables a key immediately; every integration using it stops working.
  • A business can have up to 50 keys.

Your first request

All endpoints live under https://api.hitapo.com/api/v1. Your API address also appears in the example request on the REST API card in Settings › Developer. Send the key in the Authorization: Bearer header:

List open conversations
curl https://api.hitapo.com/api/v1/conversations?status=open \
  -H "Authorization: Bearer $HITAPO_API_KEY"
Response
{
  "items": [
    {
      "id": "6f1c…",
      "channelType": "whatsapp",
      "status": "open",
      "priority": "normal",
      "handlingMode": "human",
      "assigneeId": null,
      "tags": ["shipping"],
      "lastMessagePreview": "When will my order arrive?",
      "createdAt": "2026-10-14T08:12:44.000Z"
    }
  ],
  "nextCursor": "…"
}

OpenAPI schema

The OpenAPI 3 schema for conversations, messages, contacts, channels, campaigns and reports is public at GET /api/v1/developer/openapi.json. You can import it straight into Postman or Insomnia.

Error format

Example error
{
  "error": "validation_error",
  "message": "Mesaj boş olamaz",
  "field": "content"
}
HTTPerrorMeaning
400validation_error, bad_requestThe request body or parameters are invalid.
401unauthorizedThe key is missing, invalid or revoked.
402plan_upgrade_required, seat_limit, channel_limit, ai_quota_exceeded, voice_quota_exceeded, spend_cap_reachedA plan limit or quota was reached.
403forbiddenYou don't have permission for this action.
404not_foundThe record doesn't exist.
409conflict, contact_exists, shortcut_takenConflict; for example, a contact with the same email already exists.
429rate_limitedToo many requests; the message tells you how many seconds to wait.
500server_errorUnexpected error. Send the code in the message to our support team.

The message field is always a human-readable explanation you can show to users. It's in Turkish by default; send Accept-Language: en to get it in English.

Pagination

List endpoints return { items, nextCursor }. For the next page, send the nextCursor value as the cursor parameter; if nextCursor is empty, you're on the last page. Set the page size with limit (up to 100 for conversations, 200 for contacts).

Rate limits

AI copilot endpoints are limited to 60 requests per minute, and the AI test endpoint to 30 requests per minute. Request bodies can be up to 20 MB, and file uploads up to 25 MB. If you go over a limit, you get 429.

Next steps

Last updated: