API reference

Track merges

Fold duplicate tracks together: see what a merge would move, merge one track into another (its links, history, steps, questions, facts, relations, criteria and field values move over; it stays archived), undo a merge within 30 days, and read the duplicates your assistant suggests. 5 endpoints. Add your API key in the authentication panel to send test requests from this page.

Merge a track into another

POST/api/external/v1/tracks/{id}/merge

Merges this track into into (another of yours) with an optional reason (at most 500): what the preview shows moves over, this track stays archived pointing at the other, and both note it (MERGED). Undo it within 30 days (undoUntil). Answers the merge.

Refused with 409 and the reason as code: SAME (a track into itself), ARCHIVED (either is archived), SUGGESTION (either is a suggestion not accepted), MERGED (this one was merged already), CHOICE_CONFLICT (the two are in different open choices).

Errors: 400 MISSING_FIELD (no into), 400 INVALID_ID, 404 TRACK_NOT_FOUND, 409 as above, 409 PLAN_FEATURE.

Parameters

  • idstringpathRequired
  • langstringquery

    The language of the texts the answer words for people (event lines, stage names, playbooks) and of error messages: en, de, es, fr, it, nl, pt or tr. Default: the account's app language.

Request body application/json

object

Responses

  • 200OK

Preview merging a track into another

GET/api/external/v1/tracks/{id}/merge-preview

What merging this track into into would do now, changing nothing: from and into ({id, title, stageKind, stageName, closed, createdAt, lastActivityAt}), moves (how many links, events, steps, asks, facts, relations, criteria, fields, shares, choices, attachments would move), duplicateLinks (stay where they are), relationsDropped (would relate it to itself, repeat or close a cycle), fieldsTaken, conflicts ([{key, label, kept, dropped}]: values the target keeps over this one's) and refusal - null when it can be made, else why not: SAME, ARCHIVED, SUGGESTION, MERGED or CHOICE_CONFLICT (see Merge a track into another).

The target keeps its own title, stage, context and every value it has; it takes the earlier due date and next check, the higher priority, "needs you" from either, the more settled intent, and this one's description under its own.

Errors: 400 MISSING_FIELD (no into), 400 INVALID_ID, 404 TRACK_NOT_FOUND (either track).

Parameters

  • idstringpathRequired
  • intostringqueryRequired

    The track it would be merged into.

  • langstringquery

    The language of the texts the answer words for people (event lines, stage names, playbooks) and of error messages: en, de, es, fr, it, nl, pt or tr. Default: the account's app language.

Responses

  • 200OK

Read a track's place among merges

GET/api/external/v1/tracks/{id}/network

mergedInto: the merge this track went into (null: none); merges: the merges into it, newest first (undone ones too); choice: the choice between tracks it is in (null: none); liveShares: how many live status links show it. A merge is {id, fromId, fromTitle, intoId, intoTitle, mergedAt, mergedBy, via, reason, moved, undoneAt, undoUntil, canUndo, undoRefusal} with moved the counts of what moved.

Errors: 404 TRACK_NOT_FOUND.

Parameters

  • idstringpathRequired
  • langstringquery

    The language of the texts the answer words for people (event lines, stage names, playbooks) and of error messages: en, de, es, fr, it, nl, pt or tr. Default: the account's app language.

Responses

  • 200OK

Undo a merge

POST/api/external/v1/tracks/merges/{mergeId}/undo

Moves back what came from the merged track and is still on the target, restores the relations, takes off the criteria and field values the merge added (unless changed since), restores each value the merge set on the target unless changed since, and brings the merged track back from the archive. Answers the merge, now with undoneAt.

Refused with 409 and the reason as code: UNDONE (undone already), EXPIRED (after its 30 days), SOURCE_CHANGED (the merged track was restored or deleted since), INTO_MERGED (the target was merged into another since: undo that first).

Errors: 404 MERGE_NOT_FOUND, 409 as above, 409 PLAN_LIMIT (no room to bring an open track back), 409 PLAN_FEATURE.

Parameters

  • mergeIdstringpathRequired
  • langstringquery

    The language of the texts the answer words for people (event lines, stage names, playbooks) and of error messages: en, de, es, fr, it, nl, pt or tr. Default: the account's app language.

Responses

  • 200OK

List the duplicates your assistant suggests

GET/api/external/v1/tracks/merges/suggestions

The suggested duplicates waiting for you, newest first: each {relationId, from, into, reason, confidence, source, createdAt} - merge from into into with Merge a track into another, or dismiss it as the relation's DISMISS (PATCH /tracks/{from.id}/relations/{relationId}); a dismissed one is never suggested again. Empty while tracks are off for you. Answers {items}.

Parameters

  • langstringquery

    The language of the texts the answer words for people (event lines, stage names, playbooks) and of error messages: en, de, es, fr, it, nl, pt or tr. Default: the account's app language.

Responses

  • 200OK