{"openapi":"3.1.0","info":{"title":"Achieve CRM Agent API","version":"0.1.0","description":"Read & write a user's Achieve CRM workspace on their behalf."},"servers":[{"url":"https://achieve.irisai.app"}],"components":{"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://achieve.irisai.app/oauth/authorize","tokenUrl":"https://achieve.irisai.app/oauth/token","refreshUrl":"https://achieve.irisai.app/oauth/token","scopes":{"pulse.read":"Read boards, items and dashboards","pulse.write":"Create and update boards, items, statuses and updates"}}}},"apiKey":{"type":"http","scheme":"bearer","description":"A pulse_sk_… workspace API key"}}},"paths":{"/api/v1/tools/list_boards":{"post":{"operationId":"list_boards","summary":"List boards","description":"List all boards in the workspace with their columns and groups.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"}}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/get_board_schema":{"post":{"operationId":"get_board_schema","summary":"Get board schema","description":"A board's COLUMNS and groups, without its rows. Use this whenever you need column titles, types or status labels — to build a filter, set a field, or import rows. get_board loads every record and can take tens of seconds on a large board; this is the same information in one small response. Reach for get_board only when you actually need the rows.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"board":{"type":"string","description":"Board name or id"},"workspace":{"type":"string"}},"required":["board"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/get_board":{"post":{"operationId":"get_board","summary":"Get board","description":"Get a board's items (with resolved field values) by board name or id.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"board":{"type":"string","description":"Board name or id"},"workspace":{"type":"string"}},"required":["board"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/search_items":{"post":{"operationId":"search_items","summary":"Search items","description":"Search items across all boards by name or field text.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/create_item":{"post":{"operationId":"create_item","summary":"Create item","description":"Create a new item (row) on a board, optionally setting its group and a status.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"board":{"type":"string","description":"Board name or id"},"name":{"type":"string","description":"Item name"},"group":{"type":"string"},"status":{"type":"object","properties":{"column":{"type":"string"},"label":{"type":"string"}},"required":["label"]}},"required":["board","name"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/update_status":{"post":{"operationId":"update_status","summary":"Update status","description":"Set the status of an existing item (found by name) to a label.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item":{"type":"string","description":"Item name or id"},"label":{"type":"string","description":"Status label to set"},"column":{"type":"string"},"board":{"type":"string"}},"required":["item","label"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/set_field":{"post":{"operationId":"set_field","summary":"Set field value","description":"Set a field on an item. Value type depends on the column: number, text, ISO date (YYYY-MM-DD), link URL, or a status label.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item":{"type":"string"},"column":{"type":"string","description":"Column title"},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"board":{"type":"string"}},"required":["item","column","value"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/add_update":{"post":{"operationId":"add_update","summary":"Add update","description":"Post an update/comment on an item's timeline.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"item":{"type":"string"},"text":{"type":"string"},"board":{"type":"string"}},"required":["item","text"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/create_board":{"post":{"operationId":"create_board","summary":"Create board","description":"Create a new board with a default Status column and group. Pass `organization` and/or `workspace` — each by NAME or id — to put it somewhere other than your own workspace. Without them the board lands in YOUR workspace, which is rarely what someone means when they name a brand. `list_accessible_boards` shows every workspace with its `companyId`/`companyName`.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"workspace":{"type":"string"},"organization":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/add_column":{"post":{"operationId":"add_column","summary":"Add column","description":"Add a new column to a board. `type` is one of: text, longtext, number, date, status, dropdown, checkbox, link, email, phone, rating, timeline, tags, progress, files, relation, rollup, lookup. For a status or dropdown column, pass `options` to seed its selectable labels. For a `relation` (“Connect boards”) column, pass `linkBoard` to link records on ANOTHER board (a CRM object link, e.g. Contacts → Companies); omit it for a same-board link. For `rollup`/`lookup`, pass `linkColumn` (the relation column's title) and `mirrorField` (the field on the linked board to aggregate/mirror), plus `aggregate` for rollup (count/sum/avg/min/max/list).","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"board":{"type":"string","description":"Board name or id"},"title":{"type":"string","description":"New column title"},"type":{"type":"string","enum":["text","longtext","number","date","status","dropdown","checkbox","link","email","phone","rating","timeline","tags","progress","files","relation","rollup","lookup"],"description":"Column type"},"options":{"type":"array","items":{"type":"string"}},"linkBoard":{"type":"string"},"twoWay":{"type":"boolean"},"linkColumn":{"type":"string"},"mirrorField":{"type":"string"},"aggregate":{"type":"string","enum":["count","sum","avg","min","max","list"]}},"required":["board","title","type"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/add_column_options":{"post":{"operationId":"add_column_options","summary":"Add column options","description":"Add selectable options to an existing status, dropdown or tags column. Existing options are kept and duplicates are ignored. Use this before importing rows that reference custom statuses/plans/tags so the values map to real options instead of being dropped.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"board":{"type":"string","description":"Board name or id"},"column":{"type":"string","description":"Column title or id"},"options":{"type":"array","items":{"type":"string"},"description":"Option labels to add"}},"required":["board","column","options"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/change_column_type":{"post":{"operationId":"change_column_type","summary":"Change column type","description":"Change an existing column's type, converting the values already in it. Converting free text into a status/dropdown builds the option set out of the values in the column, so the data survives instead of being blanked. Values that can't be carried across (e.g. text that isn't a date, when converting to Date) are CLEARED — the result reports how many, so check `cleared` before telling the user the change was clean. This rewrites every row: prefer add_column for a genuinely new field.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"board":{"type":"string","description":"Board name or id"},"column":{"type":"string","description":"Column title or id"},"type":{"type":"string","enum":["text","longtext","number","date","status","dropdown","checkbox","link","email","phone","rating","timeline","tags","progress"],"description":"The type the column should become"}},"required":["board","column","type"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/set_column_products":{"post":{"operationId":"set_column_products","summary":"Set product catalog","description":"Curate the product catalog on a Products/quote column — the things this board sells, so a line item is picked with a consistent price instead of retyped. Products are matched by name: re-sending an existing name updates its price. By default the given products are merged into the catalog; pass replace=true to make them the whole catalog.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"board":{"type":"string","description":"Board name or id"},"column":{"type":"string","description":"Products/quote column title or id"},"products":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Product name, as it appears on a quote line"},"price":{"type":"number","description":"Unit price"},"billing":{"type":"string","enum":["once","monthly","yearly"]},"sku":{"type":"string"}},"required":["name","price"]}},"replace":{"type":"boolean"}},"required":["board","column","products"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/update_column":{"post":{"operationId":"update_column","summary":"Rename column","description":"Rename an existing column. (To add options to a status/dropdown column, use add_column_options.)","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"board":{"type":"string","description":"Board name or id"},"column":{"type":"string","description":"Current column title or id"},"title":{"type":"string","description":"New column title"}},"required":["board","column","title"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/add_group":{"post":{"operationId":"add_group","summary":"Add group","description":"Add a group (section) to a board — e.g. to segment imported rows into Active / Trial / Churned.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"board":{"type":"string","description":"Board name or id"},"title":{"type":"string","description":"Group title"}},"required":["board","title"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/create_dashboard":{"post":{"operationId":"create_dashboard","summary":"Create dashboard","description":"Create a new (empty) standalone dashboard.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/search_contacts_by_email":{"post":{"operationId":"search_contacts_by_email","summary":"Search contacts by email","description":"Look up contacts in the workspace by their email address. Accepts a list of up to 100 emails; returns whichever match, with id/name/email/title/accountId so a follow-up `create_activity` call can attach to the timeline.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string"},"description":"Email addresses to look up (case-insensitive)."}},"required":["emails"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/create_contact":{"post":{"operationId":"create_contact","summary":"Create contact (upsert by email)","description":"Create a new contact in the workspace, or return the existing one if a contact with this email already exists (case-insensitive). Idempotent — safe to call from a notetaker auto-provision flow that runs after a meeting when the attendees weren't in Achieve yet. Name defaults to a derived label from the email local-part when not provided.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":"Contact's email address (unique key)."},"name":{"type":"string"},"title":{"type":"string"},"accountId":{"type":"string"}},"required":["email"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/create_activity":{"post":{"operationId":"create_activity","summary":"Create activity","description":"Drop a typed activity (note, email, call, meeting, task, sms, review, payment) onto a contact's, account's, deal's, or item's timeline. At least one target (contactId, itemId, dealId, or accountId) is required — a floating activity would not appear on any timeline. When `itemId` is set, pass `board` too so we know which board owns the item.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"type":{"type":"string","enum":["note","email","call","meeting","task","sms","review","payment"],"description":"Activity type — the timeline UI switches on this."},"subject":{"type":"string","description":"Short headline. Capped at 500 chars server-side."},"body":{"type":"string"},"contactId":{"type":"string"},"accountId":{"type":"string"},"dealId":{"type":"string"},"itemId":{"type":"string"},"board":{"type":"string"},"dueAt":{"type":"number"},"done":{"type":"boolean"}},"required":["type","subject"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/create_email_campaign":{"post":{"operationId":"create_email_campaign","summary":"Create email campaign (designed)","description":"Create a DRAFT marketing email campaign with a fully-designed, block-based body. Unless you already know this workspace's results, call `campaign_performance` FIRST and let what has actually worked for this audience shape the subject line and copy. Provide `blocks` — an ordered list of content blocks (hero, heading, text, button, image, columns, list, divider, spacer, social) — and an optional `theme` (brand/background hex, font). Iris renders bulletproof, mobile-safe HTML from them, so design a beautiful email: a strong hero, scannable sections, and one clear call to action. Use {{name}} (and any board column title as {{Column}}) to personalise. The audience is the given board/segment; contactless rows are skipped at send time. Optionally set the sender voice with `fromName`/`fromEmail` (the email must be on a Resend-verified domain). To A/B test the voice, also set `fromNameB`/`fromEmailB` (and/or `subjectB`): the audience is split 50/50 and each half sends from its own sender/subject. For a multivariate test of up to 10 arms, pass `variants` (each with its own subject/fromName/fromEmail) and the audience is split evenly across them. This creates a DRAFT for a human to review and send from the Campaigns page — it does NOT send email. Art-directed images are rendered when the reviewer opens the draft, so say how many you asked for.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"name":{"type":"string","description":"Internal campaign name."},"board":{"type":"string","description":"Audience board name or id (recipients are its rows with an email)."},"subject":{"type":"string","description":"Email subject line (may use {{name}})."},"preheader":{"type":"string"},"brandName":{"type":"string"},"fromName":{"type":"string"},"fromEmail":{"type":"string"},"subjectB":{"type":"string"},"fromNameB":{"type":"string"},"fromEmailB":{"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string"},"fromName":{"type":"string"},"fromEmail":{"type":"string"}}}},"autoRollout":{"type":"boolean"},"theme":{"type":"object","properties":{"brandColor":{"type":"string"},"bgColor":{"type":"string"},"cardColor":{"type":"string"},"textColor":{"type":"string"},"fontFamily":{"type":"string","enum":["modern","classic","rounded","mono"]}}},"blocks":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"}},"required":["type"]},"description":"Ordered content blocks. Each is { type, ...fields }. hero:{headline,subtext?,buttonLabel?,buttonUrl?,imagePrompt?}; heading:{text,level?}; text:{text}; button:{label,url}; image:{imagePrompt,alt?,href?}; columns:{columns:[{heading?,text?,imagePrompt?}]} (2-3); list:{items:[..],ordered?}; divider:{}; spacer:{height?}; social:{links:[{platform,url}]}. IMAGES: set `imagePrompt` to a vivid one-sentence description of the photograph you want (subject, setting, light, mood) — the person reviewing the draft renders it with one click. NEVER invent an image URL or set imageSrc/src yourself; a guessed URL renders broken. Describe only the scene: text inside a generated image comes out malformed, so never ask for words, logos or signage — headlines are real text in the block above. Use 1-3 images; an email of stock-looking pictures is worse than one clean photograph. Text supports **bold**, _italic_ and [label](https://url) inline."}},"required":["name","board","subject","blocks"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/list_campaigns":{"post":{"operationId":"list_campaigns","summary":"List campaigns","description":"List the workspace's email/SMS campaigns (newest first) with status and send counts.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/get_campaign":{"post":{"operationId":"get_campaign","summary":"Get campaign","description":"Get one campaign's details + delivery counts by id.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Campaign id (from list_campaigns / create_email_campaign)."}},"required":["id"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/campaign_performance":{"post":{"operationId":"campaign_performance","summary":"What has worked before","description":"Summarise how this workspace's past email campaigns actually performed — average open/click rates, the best and weakest subject lines, and any subject-line patterns that correlate with opens. Call this BEFORE writing a new campaign so the copy is informed by what this audience has responded to, rather than generic best practice. Returns nothing useful until a few campaigns have been sent, which is itself worth knowing.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"number"}}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/test_campaign":{"post":{"operationId":"test_campaign","summary":"Send a test/preview","description":"Send a single TEST copy of a campaign to one address so it can be previewed in a real inbox before the real send. Does NOT send to the audience and records nothing. Use this to let the user eyeball a draft. Requires email/SMS sending to be configured on the server.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Campaign id (from create_email_campaign / list_campaigns)."},"to":{"type":"string","description":"The single email address (or phone for SMS) to send the test to."}},"required":["id","to"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/send_campaign":{"post":{"operationId":"send_campaign","summary":"Send a campaign to its audience","description":"SEND a campaign to its full audience (the board's contactable rows) right now, using the same delivery pipeline as the Campaigns page. This is real: it emails/texts real people. Requires the `pulse.send` scope on the calling key AND `confirm: true`. Best practice: run test_campaign first, confirm the audience size with get_campaign's recipientEstimate, then send. Only ever call this with clear user intent to send.","security":[{"oauth2":["pulse.send"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Campaign id to send."},"confirm":{}},"required":["id","confirm"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/link_items":{"post":{"operationId":"link_items","summary":"Link records","description":"Link a record to one or more records through a `relation` (“Connect boards”) column — e.g. link a Contact to its Company, or a Deal to its Contacts. `linkColumn` is the relation column's title on the source board; `linkTo` are the target records (by name or id) on the board that column points at. Appends by default; pass `replace: true` to overwrite existing links. If the relation is two-way, the reciprocal link is set too.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"board":{"type":"string"},"item":{"type":"string","description":"The source record (name or id) to link FROM"},"linkColumn":{"type":"string","description":"Title of the relation column on the source board"},"linkTo":{"type":"array","items":{"type":"string"},"description":"Target records (names or ids) on the linked board"},"replace":{"type":"boolean"}},"required":["item","linkColumn","linkTo"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/create_workflow":{"post":{"operationId":"create_workflow","summary":"Create a multi-step workflow","description":"Create an n8n-style WORKFLOW: any trigger (including an external app event via webhook) fanning into steps that can branch, filter, loop, call a connected app, send email, write to the CRM, or call an HTTP endpoint. Use this instead of create_automation when the recipe needs more than one board trigger + a flat action list — e.g. external events, if/else, or per-row loops. Returns the workflow id and, for a webhook trigger, the URL to give the external service. Workflows are created DISABLED so a human can review before anything fires.\n\nNode shape: { id, type, name?, config, next?[], nextTrue?[], nextFalse?[], onError? }.\n  action  → config { action: 'app_action'|'send_email'|'create_item'|'set_field'|'add_update', params }\n  branch  → config { conditions: [{path,operator,value}], match } + nextTrue/nextFalse\n  filter  → config { conditions } (stops this path when it doesn't match)\n  foreach → config { source: '{{trigger.body.items}}', as: 'row' }\n  set     → config { vars: { key: 'value or {{template}}' } }\n  http    → config { method, url, headers?, body? }\n  delay   → config { seconds }\nTemplates read the run context: {{trigger.body.x}}, {{steps.<nodeId>.y}}, {{vars.z}}.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"What this workflow does, in a few words"},"description":{"type":"string"},"trigger":{"type":"object","properties":{"type":{"type":"string","enum":["webhook","composio","board_event","schedule","manual"]},"provider":{"type":"string"},"event":{"type":"string"},"cron":{"type":"string"},"timezone":{"type":"string"},"config":{},"conditions":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"operator":{"type":"string"},"value":{}},"required":["path","operator"]}}},"required":["type"]},"nodes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["action","branch","filter","foreach","set","http","delay"]},"name":{"type":"string"},"config":{},"next":{"type":"array","items":{"type":"string"}},"nextTrue":{"type":"array","items":{"type":"string"}},"nextFalse":{"type":"array","items":{"type":"string"}},"onError":{"type":"string","enum":["stop","continue"]}},"required":["id","type"]},"description":"The steps, wired together by id"},"entryNodeId":{"type":"string"},"enabled":{"type":"boolean"}},"required":["name","trigger","nodes"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/list_app_triggers":{"post":{"operationId":"list_app_triggers","summary":"List a connected app's events","description":"List the EVENTS a connected app can raise (Composio trigger types) — e.g. a new Gmail message, a Stripe payment, a Slack mention. Use this to pick `trigger.event` for create_workflow with a composio trigger; the returned `config` says what that subscription needs (a repo name, a label id…).","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","description":"Toolkit slug, e.g. gmail, slack, stripe, github"},"limit":{"type":"number"}},"required":["provider"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/list_workflows":{"post":{"operationId":"list_workflows","summary":"List workflows","description":"List the workspace's workflows with their trigger, step count and on/off state.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/run_workflow":{"post":{"operationId":"run_workflow","summary":"Run a workflow now","description":"Execute a workflow immediately with an optional payload (available to its steps as {{trigger.…}}). This performs the workflow's REAL side effects — sending email, calling connected apps, writing to boards — so only call it when the human means to run it. Returns the run id, status and step log.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Workflow id from list_workflows / create_workflow"},"payload":{}},"required":["id"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/list_workflow_runs":{"post":{"operationId":"list_workflow_runs","summary":"Recent workflow runs","description":"Recent runs for a workflow with their per-step outcome — use this to explain why a workflow did or didn't do what the user expected.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Workflow id"},"limit":{"type":"number"}},"required":["id"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/list_account_structure":{"post":{"operationId":"list_account_structure","summary":"See the whole account: organizations, workspaces, boards","description":"The shape of the user's whole Achieve account — every organization, the workspaces under it, and the boards in each, with whether you can read them. START HERE when the user names an organization, workspace or board you haven't touched yet (\"connect to the Lake Como workspace\", \"what's in Acme?\"). Once you know the workspace name, pass it as the `workspace` argument to any board tool — you do NOT need to be provisioned into it, you just need access.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/list_accessible_boards":{"post":{"operationId":"list_accessible_boards","summary":"See every board in my account","description":"List EVERY board the person you work for can see — across all of their workspaces and organizations, not just your own workspace. Each board says whether you can actually READ its records (`hasAccess`), and which workspace and organization it belongs to (`companyName` is that organization's name). Seeing a board is not reading it: use request_board_access to ask for one you need, and the human approves or denies. When you need several boards in the same organization, ask once with request_organization_access instead of filing a request per board — and prefer it when the person says something like 'give yourself access to all of <organization>'. Use this to answer 'what do I have?' and to find the right board before asking for access.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string"},"onlyAccessible":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/request_board_access":{"post":{"operationId":"request_board_access","summary":"Ask for access to a board","description":"Ask the human for permission to read (or write) a board you can see but can't use. This does NOT grant anything — it files a request they approve or deny in Achieve. Tell them why in `reason`; a specific reason gets approved, a vague one doesn't. Idempotent: it won't duplicate a pending request or ask for access you already have.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"boardId":{"type":"string","description":"Board id from list_accessible_boards, or \"*\" to ask for EVERY board in that workspace at once — ask for the whole workspace when you need several of its boards, rather than filing one request per board."},"workspaceId":{"type":"string","description":"That board's workspace id"},"access":{"type":"string","enum":["read","write"]},"reason":{"type":"string"}},"required":["boardId","workspaceId"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/request_organization_access":{"post":{"operationId":"request_organization_access","summary":"Ask for access to a whole organization","description":"Ask the human for permission to use EVERY board in one organization — every workspace it owns, including workspaces made later. Use this instead of many request_board_access calls when the person asks you to work across an organization, or when you need more than a board or two from it. Find it on list_accessible_boards (the `companyId` / `companyName` fields carry the organization, which is stored under its older name). This grants nothing by itself: the human approves or denies it in Achieve.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"companyId":{"type":"string","description":"The organization's id — the `companyId` field on list_accessible_boards"},"access":{"type":"string","enum":["read","write"]},"reason":{"type":"string"}},"required":["companyId"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/import_csv":{"post":{"operationId":"import_csv","summary":"Import rows (bulk create)","description":"Bulk-create many items (rows) on a board in ONE call — e.g. a lead or contact list parsed from a spreadsheet/CSV. Each row has a `name` and optional `fields` keyed by column TITLE. Far better than looping create_item. Creates the board first if `createBoardIfMissing` is set and it doesn't exist. Fields whose column or status label can't be resolved are skipped and reported in `warnings`.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"board":{"type":"string","description":"Board name or id to import into."},"rows":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The row/item name (e.g. the person or company)."},"fields":{}},"required":["name"]},"description":"Up to 500 rows per call."},"group":{"type":"string"},"createBoardIfMissing":{"type":"boolean"}},"required":["board","rows"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/delete_items":{"post":{"operationId":"delete_items","summary":"Delete items","description":"Delete rows from a board by their item ids (batched, up to 500 per call). Get ids from get_board or search_items. Use this to clean up duplicate rows left by a retried/timed-out import. Deletion is permanent.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"board":{"type":"string","description":"Board name or id"},"itemIds":{"type":"array","items":{"type":"string"},"description":"Item ids to delete (up to 500 per call)."}},"required":["board","itemIds"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/create_sms_campaign":{"post":{"operationId":"create_sms_campaign","summary":"Create SMS campaign","description":"Create a DRAFT SMS marketing campaign to a board's contacts (their phone column). The message supports {{name}} and any column as {{Column}}. Returns a draft + recipientEstimate (contactable phones). This NEVER sends — the human reviews + sends from the Campaigns page. Keep messages short (a segment is ~160 chars).","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"name":{"type":"string","description":"Internal campaign name."},"board":{"type":"string","description":"Audience board name or id (rows with a phone number)."},"message":{"type":"string","description":"SMS body (may use {{name}}/{{Column}})."}},"required":["name","board","message"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/create_sequence":{"post":{"operationId":"create_sequence","summary":"Create a drip sequence","description":"Create a multi-step drip sequence (funnel) for a board — a series of emails and/or texts delivered on cumulative delays (e.g. a welcome series, a nurture, a re-engagement). Created PAUSED (a draft): the human enrolls contacts and activates it from the Funnels page — nothing sends automatically. Each step: { channel?, subject?, body, waitDays }.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"name":{"type":"string","description":"Sequence name."},"board":{"type":"string","description":"Audience board name or id."},"brandName":{"type":"string"},"steps":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms"]},"subject":{"type":"string"},"body":{"type":"string","description":"Email HTML or SMS text; {{merge}} supported."},"waitDays":{"type":"number","description":"Days to wait after the previous step (0 = on enrollment)."},"buttonLabel":{"type":"string"},"buttonUrl":{"type":"string"}},"required":["body","waitDays"]},"description":"Ordered steps (max 12)."}},"required":["name","board","steps"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/pipeline_summary":{"post":{"operationId":"pipeline_summary","summary":"Pipeline summary","description":"Summarize a sales pipeline: item count + total value by stage. Auto-picks the deals/pipeline board (or the one you name), groups items by their status column, and sums a value/amount number column. Answers 'what's in my pipeline'. Read-only.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"board":{"type":"string"},"statusColumn":{"type":"string"},"valueColumn":{"type":"string"}}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/segment_from_campaign":{"post":{"operationId":"segment_from_campaign","summary":"Segment recipients by engagement","description":"Build a follow-up audience from a past email campaign's engagement: who opened, clicked, opened-but-didn't-click, or never opened. Returns the matching contacts (name + email) so you can re-target them (e.g. a nudge to openers who didn't click). Read-only.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"campaign":{"type":"string","description":"Campaign id (from list_campaigns)."},"filter":{"type":"string","enum":["opened","clicked","opened_not_clicked","not_opened"],"description":"Which engagement segment to return."},"limit":{"type":"number"}},"required":["campaign","filter"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/sync_notetaker_session":{"post":{"operationId":"sync_notetaker_session","summary":"Log a Meet session to Achieve","description":"Pull a finished Iris Meet-bot session's summary + action items from the notetaker control plane, match its attendees to contacts in this workspace, and drop a typed `meeting` Activity on each matched contact's timeline. Callable by the connected user's own agent when they say something like \"log that call I had with Acme to Achieve.\"","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","description":"The Iris Meet-bot session id (returned when the bot joined the call)."}},"required":["sessionId"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/enroll_in_sequence":{"post":{"operationId":"enroll_in_sequence","summary":"Enroll a board into a sequence","description":"Enroll a board's contactable rows (optionally one group) into a drip sequence and ACTIVATE it — the steps then send on their delays. Idempotent per contact (re-running won't double-enroll). Use `sequenceId` from create_sequence. This SENDS email/SMS over time, so only call it when the human intends to launch.","security":[{"oauth2":["pulse.send"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"sequenceId":{"type":"string","description":"Sequence (funnel) id from create_sequence."},"board":{"type":"string","description":"Board name or id whose rows to enroll."},"group":{"type":"string"}},"required":["sequenceId","board"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/activate_sequence":{"post":{"operationId":"activate_sequence","summary":"Activate or pause a sequence","description":"Set a drip sequence active (queued steps send) or paused (halts further sends).","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sequenceId":{"type":"string"},"status":{"type":"string","enum":["active","paused"],"description":"active = start sending; paused = stop."}},"required":["sequenceId","status"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/create_automation":{"post":{"operationId":"create_automation","summary":"Create an automation","description":"Create a triggered automation (recipe) on a board: WHEN a trigger fires, THEN run an action. Triggers: item_created (a new row is added — e.g. a new subscriber), status_changed (a status column reaches a value — e.g. → Cancelled), person_assigned. Actions: send_email (to the row's email contact), enroll_funnel (drop the contact into a drip sequence — pass sequenceId), change_status, notify. Perfect for 'new subscriber → welcome drip' or 'status → Cancelled → win-back drip'. NOTE: reliable firing for rows added via API/forms/webhooks requires the server-side automation runner to be deployed.","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"type":"string"},"board":{"type":"string","description":"Board name or id."},"name":{"type":"string","description":"Automation name."},"trigger":{"type":"string","enum":["item_created","status_changed","person_assigned"],"description":"What fires it."},"statusColumn":{"type":"string"},"toStatus":{"type":"string"},"action":{"type":"string","enum":["send_email","enroll_funnel","notify","change_status","app_action"],"description":"What to do."},"emailSubject":{"type":"string"},"emailBody":{"type":"string"},"sequenceId":{"type":"string"},"setStatus":{"type":"string"},"notifyText":{"type":"string"},"appProvider":{"type":"string"},"appAction":{"type":"string"},"appArguments":{},"enabled":{"type":"boolean"}},"required":["board","name","trigger","action"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/list_automations":{"post":{"operationId":"list_automations","summary":"List automations","description":"List the automations on a board (or across the workspace when board is omitted).","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"board":{"type":"string"}}}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/run_app_action":{"post":{"operationId":"run_app_action","summary":"Run an action in a connected app","description":"Execute an action in an external app the workspace has connected via Integrations (Composio) — e.g. post a Slack message, create a HubSpot contact, add a Google Calendar event, send a Gmail. `provider` is the connected app id (slack, gmail, hubspot, googlecalendar, notion, stripe, shopify, …); `action` is the Composio action slug for that app; `arguments` is that action's input object. The app must already be connected on the Integrations page. This performs a real external side effect.","security":[{"oauth2":["pulse.send"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","description":"Connected app id (e.g. 'slack', 'hubspot')."},"action":{"type":"string","description":"Composio action slug (e.g. 'SLACK_SEND_MESSAGE')."},"arguments":{}},"required":["provider","action"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/tools/list_app_actions":{"post":{"operationId":"list_app_actions","summary":"List a connected app's actions","description":"List the available Composio actions for an external app (its `toolkit` slug, e.g. slack, hubspot, gmail, googlecalendar, notion, stripe). Use this to discover the `action` slug + input shape to pass to run_app_action or an app_action automation.","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"toolkit":{"type":"string","description":"App/toolkit slug (e.g. 'slack')."},"limit":{"type":"number"}},"required":["toolkit"]}}}},"responses":{"200":{"description":"Tool result","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing/invalid credentials"},"403":{"description":"Insufficient scope"}}}},"/api/v1/agent/chat":{"post":{"operationId":"agent_chat","summary":"Chat with the workspace's Iris AI agent","description":"Send a message (or a conversation) to the workspace's Iris agent. The agent autonomously calls the Achieve tools to read and modify the CRM, and returns a text reply plus a trace of the tool calls it made.","security":[{"oauth2":["pulse.read","pulse.write"]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A single user message (shorthand for messages)."},"messages":{"type":"array","description":"Full conversation so far; the last message should be from the user.","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","model"]},"content":{"type":"string"}},"required":["role","content"]}}}}}}},"responses":{"200":{"description":"Agent reply","content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"},"steps":{"type":"number"},"toolCalls":{"type":"array","items":{"type":"object"}}}}}}},"401":{"description":"Missing/invalid credentials"},"503":{"description":"AI not configured (GEMINI_API_KEY unset)"}}}},"/api/v1/agent":{"get":{"operationId":"agent_describe","summary":"Describe the workspace's Iris agent and its available tools","security":[{"oauth2":["pulse.read"]},{"apiKey":[]}],"responses":{"200":{"description":"Agent config + tool list"},"401":{"description":"Unauthorized"}}},"post":{"operationId":"agent_configure","summary":"Create or update the workspace's Iris agent (name, persona, model)","security":[{"oauth2":["pulse.write"]},{"apiKey":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"instructions":{"type":"string"},"model":{"type":"string"},"enabled":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated agent config"},"403":{"description":"Insufficient scope"}}}}}}