Get Swimlanes
affinity_get_swimlanesRetrieve pipeline stages (swimlanes) for an Affinity list to display deal columns or filter entries by stage. Returns stage IDs, names, and sort order.
Instructions
Get pipeline stages (swimlanes) for an Affinity list.
Swimlanes are the columns in a deal pipeline view (e.g., Lead, Meeting, Portfolio). They come from the Status field which is a ranked-dropdown.
Parameters:
listId: List ID (required) - get from affinity_list_lists
Returns (JSON): { "listId": number, "listName": string, "statusFieldId": string, // Use this to filter entries "swimlanes": [ { "id": number, // dropdownOptionId - use for filtering "text": "Lead", // Display name "rank": 0, // Sort order (0 = first) "color": "none" // Visual indicator }, { "id": number, "text": "Portfolio", "rank": 7, "color": "purple" } ], "count": number }
Use Cases:
Display pipeline columns in UI
Get stage IDs for filtering list entries
Understand deal flow progression
Note: If no Status field exists, returns error. Not all lists have swimlanes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| listId | Yes | List ID (numeric). Get from affinity_list_lists. | |
| responseFormat | No | Output format: "json" or "markdown". Default: "json" |