Skip to content

Cards and collaboration ​

Use kaiten_cards_read to find cards and inspect their fields, and kaiten_cards_write to create, edit, move, archive, restore or delete them. Use kaiten_collaboration_read and kaiten_collaboration_write for comments, native external links, memberships, attached tags, blockers, child links and planning dependencies. Each call uses request.operation and its matching request.args.

When a request refers to the current user, call get_current_user in kaiten_workspace_read first. Use its ID in responsible_ids for my cards unless the user or their connection guidance specifies a different filter.

Search and lifecycle ​

IntentOperation and fields
Search in ascending card ID ordersearch_cards with filters at the top level of args. Pass next_cursor as cursor with the same limits and filters to read the next page.
Search with native sorting, projection or filterssearch_cards with mode: "native_page" and a native query. V1 returns an array in result. V2 returns a page with result and position inside the outer result; pass that position as query.start_position with the same filters and sort.
Collect a bounded snapshotscan_cards with native query and optional max_items (default 100, maximum 1,000). If truncated is true, switch to paging to retrieve all matches.
Read a single cardget_card with its numeric card_id. Use format: "full" when you need other native data, such as a card UID for restricted attachments.
Set fields on one cardcreate_card takes a body with title and board ID. update_card takes card_id and a partial body with at least one change. Both preserve the native card fields in result. Resolve the IDs through workspace reads.
Apply the same changes to a setFirst verify the selection with search_cards. Then call batch_update_cards with a selector and attributes, or a column, lane and sort specification. The ID returned is a background job ID.
Remove from active workarchive_card removes the card from active work. Use restore_card to reactivate it. Only use delete_card for deletion.

The native query can accept a structured filter or a pre-encoded string. Use encode_card_filter when you need a portable base64 filter token for another integration. Native search automatically encodes structured filters.

To filter by project, pass query.project_ids to search_cards with mode: "native_page" or to scan_cards. Supply one or more project UUIDs as an array or a comma-separated string without spaces. Call list_card_baselines on a card in the project and use its returned result[].project_id. Keep project_ids with the rest of the query when continuing a native page.

Collaboration ​

  • List comments before editing to obtain the numeric comment ID. Use format: "full" on list_comments to read comment UIDs and attachment metadata. Use text for a JSON comment or form for a legacy multipart comment. For restricted attachment uploads, create the comment first and then upload by UID with the content write tool.
  • Use list_allowed_card_users to find eligible members. For role updates and removal, use the membership record ID returned by list_card_members. type: 2 makes the selected member responsible.
  • Use list_card_external_links to find native links and list_card_tags for tags attached to one card. These lists are separate from custom data and global tag discovery.
  • Use list_card_blockers for one card and list_my_blocked_cards for the token user. Pass the blocker record ID to update or release a blocker, or to change the users and categories attached to it.
  • Use the parent card ID and child card ID to attach or detach an existing child link. To schedule a dependency between cards, choose add_planned_relation, update_planned_relation or remove_planned_relation.

Comments, children and both blocker lists accept server-side limit (default 100, maximum 100) and offset (default 0). Repeat the same arguments with offset: next_offset to continue. A full page can be followed by an empty page. Comments and children return items with the compact projection by default. Set format: "full" to keep native fields such as comment UIDs and child properties. The broken_api flag on child and card-blocker reads controls user custom-property IDs. The blocker responses preserve the native payload in result, including the summary on the current-user list.

Link, member and tag lists slice the already fetched data locally in their compact form. The allowed-user list uses native server-side pagination.

Migrating v2 calls ​

Use these mappings when translating calls from the v2 catalog.

v2 operationsCanonical call
cards.createNewCard, cards.create, create_cardcreate_card. Move the old compact fields into args.body.
cards.updateCard, update_cardupdate_card with args.body in place of args.changes.
cards.deleteCard, delete_carddelete_card; response uses result.
cards.retrieveCard, cards.retrieveCardList, cards.iterateget_card with format: "full", search_cards with mode: "native_page", or scan_cards respectively.
cards.retrieveCardBaselines, cards.retrieveCardLocationHistory, cards.batchUpdateForCards, encodeCardFilterlist_card_baselines, list_card_location_history, batch_update_cards, encode_card_filter.
Native comment, external-link, membership, tag and child list operationsUse the matching list_* operation with format: "full". Comments and children return native record fields in items and accept a server offset. For children, use parent_card_id.
Both v2 comment mutation familiesadd_comment, update_comment or delete_comment. Move body.text to args.text or keep args.form. Supply replacement text or the multipart form when updating a comment.
Both v2 external link, membership, tag and child mutation familiesUse the corresponding snake_case operation in kaiten_collaboration_write. Use link_id and body for link updates. Child removal takes parent_card_id and child_card_id. These mutations return native data in result.
cardAllowedUsers.retrieveUsersListlist_allowed_card_users.
cardBlockerCategories.*list_blocker_categories, add_blocker_category, remove_blocker_category.
cardBlockerUsers.*list_blocker_users, list_my_blocked_cards, add_blocker_user, remove_blocker_user.
cardBlockers.*block_card, list_card_blockers, update_card_blocker, release_card_blocker.
cardPlannedRelations.*add_planned_relation, update_planned_relation, remove_planned_relation.

Released under the MIT License.