Connect Tiny Ant to your own tools
REST API, MCP server and webhooks
Use the REST API to work with deals, contacts, tasks, proposals and website visitor data. The MCP server exposes a set of these actions to compatible assistants. An API key can both read and change workspace data, so only connect tools you trust.
Authentication
Every request carries a workspace API key in the Authorization header:
Authorization: Bearer ta_live_...
Workspace admins create keys on the Settings page of the app (section API and MCP). A key is shown once when created and can be revoked at any time. Changing its creator to a member permanently revokes their keys; removing the creator invalidates their keys. Promoting them again does not restore old keys. Keys cannot be used while the workspace is suspended. It acts in the name of the admin who created it: notes, tasks and events are attributed to that person, and anything the key creates is visible to the whole workspace. The API and MCP server are included in Pro and Team. Create and manage keys in Settings → API and MCP.
Requests without a valid key get 401. A workspace on the Free plan gets 403.
Base URL
https://app.tinyant.io/api/v1
Most request bodies and responses use JSON (UTF-8). Proposal uploads use multipart form data, as listed below. Ids look like de_, co_, pe_, ta_ and no_ followed by 12 characters; proposal ids are 12 characters without a prefix. Timestamps are Unix milliseconds. The endpoints below describe the published integration interface. Use the app's network requests as examples where a complete payload is not documented here.
Endpoints
| Method | Path | What it does |
|---|---|---|
| GET POST PUT DELETE | /automations, /automations/:id | CRM Advanced: admin rules and latest 100 accessible runs. POST/PUT requires name, definition, confirmation from preview, revision (0 for new), mode off|simulate|live. Start with simulate; live requires a successful simulation of the unchanged version. API rules stay bound to their original admin and key. Ownership actions are app-only. DELETE archives the rule and cancels pending runs. |
| POST | /automations/preview | Validate {definition}: version:1; trigger deal_created|stage_changed|stalled|proposal_opened; optional pipeline_id, stage_id, owner_id; stalled after_days 1..90. One action: create_task {title,delay_days:0..90,assignee_id}, set_field {field:expected_close,value:YYYY-MM-DD}, or notify {assignee_id}. Assignee is a current member ID or deal_owner. Returns confirmation and at most 20 matching examples. No changes. |
| POST | /automations/:id/simulate, /automations/:id/stop, /automations/:id/cancel | Queue a simulation {deal_id}, stop a rule {}, or cancel a pending run {run_id}. Background execution rechecks current permissions. Changes and receipts commit together; retries never repeat a committed action. No outbound email. |
| GET | /automation-notifications | Current user internal inbox, filtered by current deal access. No email or browser push notifications. |
| GET PUT | /dashboard | Personal dashboard: GET card catalog, saved config and live access-scoped metrics; PUT {revision,config} saves only the current user’s layout and filters. Config version 1: days 7/30/90, owner all/mine/unassigned, nullable pipeline_id and currency, and unique cards {id,size} from the catalog with widths 4/6/8/12. Forecast and outcomes require Advanced admin access; Visitors requires a paid plan. Data is never saved with layouts. API keys keep their existing record scope. |
| GET | /bulk | Current members, activity settings and your 20 most recent bulk batches. Bulk preview/progress is restricted to its creator and the same API key. |
| POST | /bulk/preview | Preview 1 to 100 explicit companies, people or deals using entity, ids and action: activity, plus activity fields as for task creation. Returns selected names, per-record validation and confirmation. Activity creation uses current edit rights and the same scheduling, Advanced type and capacity checks as individual activities. Owner changes are workspace-app only and admin-only, consistent with record access management. |
| GET POST | /bulk/:id | Read a preview/results or POST its confirmation to apply up to five rows atomically per call. Repeat the same ID/hash until done; completed rows never replay. Results are applied, skipped, failed or pending. CRM/access changes invalidate pending work. Check results and preview only remaining records. Up to 100 retained batches per workspace, accessible for seven days, then removed by scheduled cleanup or the next bulk preview. Owner/workspace deletion also removes previews and receipts. No emails or invitations are sent. |
| GET | /imports/catalog | Field and pipeline catalog for import mapping. All CRM members can preview/import; custom-field and extra-pipeline configuration still requires Advanced. |
| POST | /imports/preview | Preview 1 to 100 rows (up to 500 KB) with kind and duplicates: fill or skip. Supports custom_fields by stable ID, pipeline/stage IDs or unambiguous names, and explicit record IDs. Fill only populates empty values; existing deal amount/status/stage remain unchanged. Repeated records are skipped. No CRM records change during preview. Returns row actions/errors, batch ID and confirmation hash. Preview plans and retry receipts expire after seven days and are removed by scheduled cleanup or the next import in that workspace. |
| GET POST | /imports/:id | Only the batch owner can read/resume it. POST confirmation from the reviewed preview applies up to ten rows, each atomically including related contacts, fields, notes and history. Repeat the same ID/hash until done; completed rows never replay. Concurrent CRM changes reject stale previews: read next_row, then preview only remaining rows. Up to 100 retained batches per workspace. |
| POST | /import | Legacy immediate import without safe replay; prefer /imports/preview. Import up to 500 companies, people or deals; returns created, updated, skipped, trimmed and numbered row errors. Existing contacts can be completed at capacity. |
| PUT | /deals/:id | Use before_id (a deal in the target stage, or null for last), stage_id and revision to reorder. Card ordering does not change stage duration. |
| POST | /deals/move | Preview/apply up to 100 open deal moves: deal_ids, pipeline_id, stage_id, preview. Apply with the returned preview_hash. Stale previews fail; results are per deal. |
| GET POST | /views/:entity | Saved views for deals, people or companies. GET returns readable views, field/operator catalog and defaults. Advanced users can create private views; admins can create workspace views. POST name, sharing (private/workspace), revision:0, definition {version:1, columns, sort, filter}. Workspace sharing never expands data access. |
| PUT | /views/:entity/:id | Update a view with its expected revision. Sharing is immutable; save a copy to change it. Only the owner can update a private view; only admins update shared views. archived:true hides a view. Up to 100 active views per workspace. |
| POST | /query/:entity | One validated query for lists and CSV pages. Send definition or view_id, offset (0..100000), limit (1..100) and format (json/csv). Definition: version:1, columns (1..20 IDs), sort (up to 3 {field,direction} entries), filter {op:and/or,rules:[groups or {field,op,value}]}. Up to 20 nodes and depth 3. Values are bound parameters, never SQL. owner_id eq me resolves for the current user; value_cents uses cents. has_task includes undated open tasks, next_task is the earliest dated open task. Response includes total, next_offset and rows or formula-safe CSV. CSV labels replace choice IDs. Empty comparisons use empty/not_empty; other comparisons exclude missing values. Views and export remain readable after Advanced access ends. Paging is ordered with ID tie-breaks, but is not a snapshot across requests. |
| GET PUT | /layouts/:entity | Shared card layout for companies, people or deals. GET returns layout, defaults, revision, schema_revision and fields. Advanced admins can PUT layout {main, side, details}, both revisions and all fields as ordered {id, group_name} objects, including archived fields. Every section and detail key must appear exactly once; no HTML or hidden sections. Members and workspaces without Advanced retain read access. |
| GET POST | /fields/:entity | List or create custom fields for companies, people or deals. Create requires an Advanced admin. Types: text, long_text, number, date, boolean, select, multi_select. Optional group_name and position. |
| PUT | /fields/deals/:id/rules | Advanced admin: preview and replace visible_in/required_in scopes (pipeline_id, optional stage_id). Requires field revision, preview:true, then preview:false with returned preview_hash. Empty visible_in means everywhere; required fields stay visible. Preview reports existing open deals with missing values. |
| PUT | /fields/:entity/:id | Update name, group_name, position, archived and options with expected revision. Existing field types cannot change. Deal creation accepts custom_fields keyed by field ID; missing required stage values return 422 on creation, stage changes and reopening, including import and MCP. Options keep their IDs; omitted old choices are archived. |
| GET PUT | /:entity/:id/fields | Read or patch typed values by field ID. PUT needs values, revision and schema_revision from GET; null clears a value. Choices use option IDs. Archived fields remain readable. These endpoints do not yet support required or stage-specific fields. |
| GET POST | /pipelines | List pipelines (including archived) or create one (name; Advanced admin required) |
| PUT | /pipelines/:id | Update name, position, make_default or archived with expected revision. Move or close open deals before archiving; /deals/move provides a preview and per-deal results. |
| GET | /reports | Report types, calculation notes, filters and personal saved reports (Advanced admin) |
| POST | /reports/run | Run definition or view_id with current record access. Optional group from the response, offset, limit up to 100. Cents stay separate by currency. |
| POST PUT | /reports/views, /reports/views/:id | Save a personal report: name, definition, revision (0 for new); archived:true hides an existing report |
| GET | /capabilities | Current CRM feature entitlements and permitted actions; this does not imply that every feature is implemented |
| GET | /me | Workspace, plan and the user the key acts as |
| GET | /deals?status=open|won|lost&q=&pipeline_id= | List deals with stage, value, company, contact and proposal reading status |
| POST | /deals | Create a deal (name, company_id or company_name, person_id, value, currency, pipeline_id, stage_id, expected_close) |
| GET PUT DELETE | /deals/:id | One deal with timeline; update fields, stage or status; optional Advanced close_details, or next_activity when reopening, with revision; delete |
| POST | /deals/:id/proposals | Link a proposal to the deal ({proposal_id}) |
| DELETE | /deals/:id/proposals/:pid | Unlink a proposal |
| GET POST | /companies | List or create companies |
| GET PUT DELETE | /companies/:id | One company with people, deals and timeline |
| GET POST | /people | List or create people (contacts) |
| GET PUT DELETE | /people/:id | One person with deals and timeline |
| GET PUT | /activity-settings | Read or set your IANA timezone; admins may also set workspace_timezone. Null uses the default. |
| GET POST | /tasks | List or create activities. scope=mine|all|unassigned, status=open|done|cancelled|all (legacy done=0|1|all), record IDs, offset and limit (max 500). Follow next_offset when has_more. |
| GET PUT DELETE | /tasks/:id | Read, edit, complete, cancel or delete an activity. Notes, completed_date, call_result and atomic next_activity are supported. Send revision on edits, ?revision= on deletes; stale writes return 409. |
| POST | /notes | Add a note to a deal, person or company |
| PUT DELETE | /notes/:id | Edit or delete a note |
| GET | /stages?pipeline_id= | Pipeline stages, members and currency (default pipeline when omitted) |
| PUT | /stages | Save stages with pipeline_id and revision. Used stages must have open deals moved or closed first. Omitted stages are archived. |
| GET | /activity?since=&limit=&deal_id=&person_id=&company_id= | Structured event log, newest first. since is a Unix millisecond timestamp |
| GET | /search?q= | Companies, people and deals in one search |
| GET | /visitors?days=7|30|90 | Tiny Ant Visitors: companies that visited your website, pages, last visit, CRM link and the share of home, mobile and data centre visits |
| GET POST | /visitors/settings | Visitors status and snippet; switch on or off ({enabled}), connect or remove ipapi.is ({ipapi_key}) |
| POST | /visitors/companies/:id/add | Add a visiting company to the CRM |
| GET | /proposals?status=active|won|closed|archived | Proposals with visits, reading time and linked deal |
| GET | /proposals/:id | One proposal with reading time per page, recipients, activity and versions |
| POST | /proposals | Upload a proposal (same body as the app: multipart with a PDF file, name and pages) |
| POST | /proposals/:id/status | Set the status ({status: active|closed|won}) |
Activities
The task endpoints also store calls, meetings and follow-ups for workspaces with CRM Advanced on Team, Enterprise or an active pilot. Send activity_type (task, call, meeting or follow_up), due_date (YYYY-MM-DD), optional due_time (HH:mm), timezone (IANA name), duration_minutes (1 to 1440), assignee_id and optional deal_id, person_id or company_id. Day-only tasks keep their calendar date. A missing time zone defaults to the user preference, then the workspace, then UTC. A nonexistent local time is rejected; a repeated time requires occurrence: earlier or later. Read an activity before editing and send its revision; stale edits return 409. Legacy clients may omit revision. Null clears optional fields. List with scope=mine, all or unassigned, done=0, 1 or all, optional record IDs, limit up to 500 and offset; follow next_offset when has_more is true. After Advanced access ends, existing typed activities remain editable and completable, and new basic tasks remain available. Activities do not make calls, send messages or invite people to meetings. Completing one does not mark a deal or proposal won.
Log email, SMS, LinkedIn or other contact as activity_type: follow_up with contact_channel: email, sms, linkedin or other (Advanced). Activity notes accept up to 10,000 characters. done: true records completion; completed_date is YYYY-MM-DD, no later than today. Completing a call requires call_result: answered, no_answer or busy. cancelled: true cancels without deletion; done and cancelled cannot both be true. List using status: open, done, cancelled or all; cancelled records are excluded from open worklists and activity reports.
An activity write can include next_activity: {title, due_date, activity_type, contact_channel, notes, assignee_id}; the new record inherits the deal, and its date must be today or later. Existing-record compound writes require revision. Both changes commit atomically. An Advanced admin can enable require_next_activity on a pipeline. An open deal must then retain an open activity when its last activity is completed, cancelled, removed or unlinked, and when reopening the deal. Creating or moving a deal without an activity is still allowed. The requirement stops applying when Advanced access ends.
Advanced deal updates can include close_details with status won or lost and revision: close_date (no later than today), open_activities (keep or cancel), optional notes, and won_reason for wins, or loss_category for losses. Loss categories are price, timing, no_need, competitor, no_response, no_authority_or_budget, in_house, poor_fit and other. Optional competitor applies to the competitor category; revisit_date must be a future date and does not create a reminder. Won requires a positive deal value. Closing and any cancellation commit together under current record permissions. To reopen, send status: open and, if needed, next_activity. Reopening clears closing details but does not restore cancelled activities. Legacy status-only updates remain supported.
Examples
List open deals:
curl https://app.tinyant.io/api/v1/deals?status=open \
-H "Authorization: Bearer ta_live_..."
Create a deal and let Tiny Ant create or match the company by name:
curl -X POST https://app.tinyant.io/api/v1/deals \
-H "Authorization: Bearer ta_live_..." \
-H "Content-Type: application/json" \
-d '{"name": "Website redesign", "company_name": "Acme Ltd", "value": 12500}'
Everything that happened since a timestamp, for example to sync your own system:
curl "https://app.tinyant.io/api/v1/activity?since=1760000000000&limit=100" \
-H "Authorization: Bearer ta_live_..."
MCP server
The MCP (Model Context Protocol) server lives at:
https://app.tinyant.io/mcp
Transport is Streamable HTTP, stateless, JSON-RPC over POST. Authentication is the same Bearer key. There are no server-initiated streams, so a plain HTTP client is enough.
Claude Code. One line in your terminal, then ask Claude about your deals:
claude mcp add --transport http tiny-ant https://app.tinyant.io/mcp --header "Authorization: Bearer ta_live_..."
Other MCP clients. Use a client that supports Streamable HTTP and a custom Authorization header. Set the server URL to the address above and the header value to Bearer followed by your API key. Check the client's current connection options. Where direct MCP support is unavailable, a custom integration can call the REST API. Tiny Ant does not provide a ready-made integration for every client.
OAuth. The published Tiny Ant MCP connection currently uses a static Bearer key. A client that requires OAuth cannot use that connection directly. Check compatibility before choosing a client.
MCP tools
Each tool calls the same API as above and returns the JSON response as text.
| Tool | Description |
|---|---|
search | Search companies, people and deals in the CRM by name, email or domain. |
list_deals | List deals. |
get_deal | Full view of one deal: details, company, contact, proposals with reading data, tasks and the timeline of notes and events. |
create_deal | Create a deal. |
update_deal | Update a deal: rename, change value, move to a stage, mark won or lost, link a company or contact. |
list_companies | List companies with people count, open deals and open value. |
get_company | One company with its people, deals and timeline. |
create_company | Create a company. |
list_people | List people (contacts), optionally for one company. |
get_person | One person with deals and timeline. |
create_person | Create a contact. |
add_note | Add a note to a deal, person or company. |
list_tasks | List open tasks for the key owner (mine) or everyone. |
create_task | Create a task, optionally linked to a deal, person or company. |
get_task | Read an activity including its revision. |
update_task | Edit an activity. |
get_activity_settings | Read the effective activity time zone and available types. |
complete_task | Mark a task done (or reopen it with done=false). |
get_crm_capabilities | Current CRM feature entitlements and allowed actions for this user. |
list_stages | Stages in one pipeline (default when omitted), workspace members and currency. |
move_deals | Preview or apply a move of up to 100 open deals. |
get_dashboard | Read your personal dashboard with live access-scoped metrics. |
save_dashboard | Save your own dashboard layout and filters with a revision from get_dashboard. |
list_automations | Read your API-key-bound automation rules and the latest accessible run results. |
preview_automation | Validate a rule and preview matching open deals without changes. |
save_automation | Create or edit a rule with the confirmation from preview. |
simulate_automation | Queue one simulation for a current matching deal. |
stop_automation | Turn off a rule and cancel its pending runs. |
archive_automation | Archive a rule and cancel its pending runs. |
cancel_automation_run | Cancel a pending run. |
list_automation_notifications | Read your internal automation notifications with current deal access. |
list_reports | Read report types, calculation notes, filters and personal saved reports (Advanced admin). |
run_report | Run a report with current record access. |
save_report | Save a personal report definition. |
list_views | List readable saved views, field/operator catalog and defaults. |
query_records | Page a validated CRM view. |
preview_bulk_change | Preview 1 to 100 selected CRM records. |
get_bulk_change | Read your bulk preview and durable row results for seven days, using the same API key. |
apply_bulk_change | Apply up to five previewed rows atomically per row. |
preview_import | Preview up to 100 CRM rows without changing records. |
get_import | Read your import preview and durable progress; batches expire after seven days. |
apply_import | Apply up to ten previewed rows atomically per row. |
save_view | Create or update a personal view, or a workspace view as admin (Advanced). |
get_card_layout | Read shared card sections, detail order and custom field groups. |
set_card_layout | Replace shared card layout and custom field groups (Advanced admin). |
list_fields | List custom field definitions, including archived fields and stable options. |
create_field | Create a custom field (Advanced admin). |
update_field | Rename, reorder, group or archive a field (Advanced admin). |
set_field_rules | Preview or save deal-field visibility and required scopes (Advanced admin). |
get_record_fields | Read a record’s custom fields, values and revision. |
set_record_fields | Patch custom field values by field ID. |
list_pipelines | List workspace pipelines, including archived ones, and the default pipeline. |
create_pipeline | Create a pipeline with four initial stages. |
update_pipeline | Rename, reorder, archive or set a pipeline as default. |
set_stages | Replace active stages in a pipeline. |
activity | Structured event log of the workspace, newest first: deals created and moved, won and lost, notes, tasks, proposals linked and read. |
list_proposals | Proposals with reading status: visits, total reading time, reading now, linked deal. |
get_proposal | One proposal: reading time per page, recipients, activity, versions, linked deal. |
list_visitors | Companies that visited your website (Tiny Ant Visitors): named company networks with pages viewed, last visit and the CRM company if linked, plus how many visits came from home, mobile or data centre networks. |
link_proposal | Link an existing proposal to a deal so its reading shows on the deal timeline. |
Rate limits and fair use
MCP accepts one JSON-RPC message per POST, up to 512 KiB. JSON arrays are rejected without running any tools. Send separate requests. CRM non-GET requests, including imports, bulk operations and query previews, share an additional 120-per-minute workspace allowance across the app, REST and MCP; a refusal returns 429 and Retry-After. These edge allowances are local to a Cloudflare location.
CRM fair-use storage limits apply per table (deals, tasks and notes): Free 500, Pro 20,000, Team and Enterprise 50,000. Free also has a separate 10-open-deal limit. Completed tasks and closed deals still count towards storage limits; existing records are retained when a plan is downgraded.
Visitors intake is limited per workspace and UTC day: Pro 5,000, Team 20,000 and Enterprise 50,000 page views. Excess traffic is discarded; collection resumes the next day. The daily cap uses a shared database counter; edge protection also limits a source address to 60 and a public Visitors key to 600 beacons per minute per Cloudflare location. A failed lookup or write after reservation can consume a daily slot. The customer’s ipapi.is quota is separate.
Each key may make 120 requests per minute across the REST API and the MCP server, and each address 300 per minute. Requests without a valid key are limited to 30 per minute per address. Over a limit you get 429 with a Retry-After header; wait and retry. Poll /activity with since instead of re-reading whole lists, keep to one key per integration so you can revoke it alone, and do not share a key with people outside your workspace. A workspace can have up to 10 active keys.
CRM Advanced automation rules start with simulation. Limits are 50 active rules and 1,000 runs per rolling 24 hours per workspace. Deal creation and stage changes queue atomically. Confirmed external proposal openings are limited to one per proposal per UTC day. Stalled-deal deadlines have a seven-day catch-up window. Runs and internal notifications are retained for 90 days. No customer data is sent to an AI model or external messaging service.
Advanced admins can run open-pipeline, won/lost and win-rate, stage-history, activity and weighted-forecast reports. Dates are inclusive UTC days (up to 366); scheduled activities use their own due date. Forecasts use current open deals and stage probabilities, with undated deals and currencies kept separate. Baseline observations are not historical stage entries or known durations. Saved personal reports store choices, not result snapshots. Every run and drill-down applies current record access.
With CRM Advanced, record access is enforced across the app, REST, MCP and exports. API keys and webhooks default to workspace-shared records, including shared parent records. An admin can explicitly create an integration for all workspace records, including private records. The scope is shown in Settings. Existing restrictions stay in force after Advanced access ends. Public proposal recipient links remain a separate sharing channel.
Webhooks
If you want Tiny Ant to call you instead, outgoing webhooks are set up on the same Settings page. They send a signed JSON POST when a proposal is opened, when a reading ends, when a status changes and when a deal is created or moves between stages.
Questions
Write to hello@tinyant.io. Changes to the API are announced on this page.