API and MCP Settings and Documentation
Connect other systems and AI tools to Hanna. Find API and MCP access settings and links to the technical documentation.
How to Access API and MCP Settings
- Open System Settings.
- Select API and MCP from the left-hand menu.
- On the page that opens, you will see active keys and connections, their associated users, status, expiration dates, and last usage times.
If you do not see this section, please contact an administrator. An administrator must grant API and MCP access in your staff profile. Access to this section does not alter the user's role or grant additional CRM data access.
Where to Find API Documentation
Click API Documentation at the top of the page. This opens the API v4 documentation tailored to your account. Here you can:
- select a CRM module;
- view available operations for searching, retrieving, creating, editing, and deleting;
- check parameters and field formats;
- view response schemas and examples;
- download the OpenAPI specification. The direct URL for the documentation is generated based on your account:
https://{your-account}.hannacrm.app/api/docs
API v4 base URL:
https://{your-account}.hannacrm.app/api/v4
OpenAPI YAML definition:
https://{your-account}.hannacrm.app/api/openapi.yaml
Always open the documentation using your account's domain. This ensures you see the modules, fields, and server address relevant to that specific account.
You can also use the centralized Hanna CRM API v4 reference in the public Hanna Help Center to find endpoints, parameters, authentication details, and request examples. This reference uses default.hannacrm.app as its base URL, so replace default with your Hanna account subdomain before sending a request. Use your account's /api/docs page when you need the exact modules and fields enabled for that account.
Where to find MCP documentation
Click MCP Documentation on the same page. It outlines the tools available to MCP clients, along with their purposes and parameters. Direct URL:
https://{your-account}.hannacrm.app/mcp/docs
The MCP documentation describes tools such as record search, retrieving a single record, and creating or updating records. These are not standard REST endpoints; instead, these actions are invoked by the MCP client.
YAML definition for MCP tools:
https://{your-account}.hannacrm.app/mcp/openapi.yaml
MCP documentation is separate from the Help Center's API documentation section. The latter contains the REST API v4 reference; always use your account's /mcp/docs page for MCP tools.
Differences between API and MCP
API v4 uses a key you generate and is suitable for system integrations, data exchange, and automated processes.
MCP uses OAuth authentication and allows a compatible MCP client to view and invoke "Hanna" tools based on granted permissions.
In both cases, the rules regarding CRM modules, team member, roles, and field visibility apply. If a field or module is disabled in the account, the integration may not be able to see it either.
Data and actions through API v4 and MCP
Duplicate Leads
When API v4 recognises a duplicate Lead-creation request, it returns HTTP 200 with duplicate: true instead of creating another Lead. If the existing Lead is readable by the key, record contains that Lead. If the match is not a readable Lead, duplicate_of can identify the record type; its UUID is returned only when the caller may read it. Check the duplicate flag before treating the response as a newly created Lead.
Call history and recordings
API v4 supports GET /api/v4/calls, GET /api/v4/calls/{uuid} and GET /api/v4/calls/{uuid}/recording for recordings stored in Hanna. Use updated_since for incremental call synchronisation. MCP tools can read calls, transcripts and summaries. Call-history and recording permissions still apply.
Ticket replies, attachments and Supplier Orders
Read Ticket replies, notes and history using GET /api/v4/ticket_replies, /api/v4/ticket_notes and /api/v4/ticket_history, with filter[ticket] and filter[created_since]. GET /api/v4/tickets/{uuid}/files lists Ticket attachments; GET /api/v4/supplier_orders includes order lines. Purchase prices require the Supplier Order price permission. Matching read tools are available through Hanna MCP.
Item custom fields
API v4 and MCP can set custom fields when creating or editing an Item. The custom-field reference data includes the items module. Use the interactive documentation for the exact request fields.
Project participants
API v4 can list Project participants from the Participants tab and retrieve a participant, with filtering by Project. Event management must be enabled. A participant is visible only when its Project is visible.
Creating and editing Supplier Orders
API v4 and MCP can create and edit Supplier Orders, including lines and custom fields. Changing an order status can trigger the same actions as in Hanna, including Tasks from templates and accounting export when enabled. Check the status automation before using a write operation.
Files
The MCP tool files_search lists attachments on a record; for Tickets it also includes email attachments. file_get_content reads a file up to 5 MB and file_upload attaches one up to 5 MB. Use the documented API v4 download action for larger files.
Upload checks edit permission on the parent record and the allowed file types. Deletion requires the appropriate delete permission. Files belonging to inaccessible parent records are inaccessible too. Attaching a file does not itself send an email to a customer.
Partial updates and other actions
API v4 and MCP provide task comments, checklists, timer, approval, rejection and copy actions. Opportunities can be copied, and changes to item lines recalculate totals. Responses include the CRM record ID alongside the UUID where the module schema provides it.
For PATCH, send only the fields you intend to change: omitted custom fields and supported Object and Contract relationships are retained. An omitted field, an empty list and null have different meanings; consult the individual field schema. Use Idempotency-Key for retried writes and check the interactive API documentation for deleted-record and pagination options when synchronising.
MCP request limits
The default Hanna MCP tool-call limits are 100 calls per minute per user and 500 per tenant, with up to 5 concurrent calls per user and 20 per tenant. Deployment configuration can change these limits. Exceeding the applicable limit returns HTTP 429 and a waiting time. Wait before retrying.