{
  "info": {
    "_postman_id": "4da3b6d9-0d75-46f1-aa1c-e3845df083b9",
    "name": "Plandex Server Accounts Branches API",
    "description": "Management and orchestration REST API exposed by the Plandex server (open-source, Go) used by the Plandex CLI/REPL to drive long-running coding plans across organizations, projects, plans, branches, context, conversation, model packs, and configuration. The same API powered Plandex Cloud (winding down 2025-10-03) and now powers self-hosted / local-mode deployments via Docker. Default local-mode bind is http://localhost:8099.\n\nContact Support:\n Name: Plandex AI",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T02:37:27.000Z",
    "updatedAt": "2026-07-28T02:37:27.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-4da3b6d9-0d75-46f1-aa1c-e3845df083b9"
  },
  "item": [
    {
      "name": "projects",
      "item": [
        {
          "name": "{projectId}",
          "item": [
            {
              "name": "plans",
              "item": [
                {
                  "name": "current_branches",
                  "item": [
                    {
                      "name": "Get Current Branches By Plan",
                      "id": "ea461e4e-151a-4c32-9b72-2ff0619b38a2",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                          "raw": "{{baseUrl}}/projects/:projectId/plans/current_branches",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "projects",
                            ":projectId",
                            "plans",
                            "current_branches"
                          ],
                          "variable": [
                            {
                              "id": "11010ed8-ff11-4c24-a522-5f271ed4821b",
                              "key": "projectId",
                              "value": "<string>",
                              "description": "(Required) "
                            }
                          ]
                        },
                        "description": "Return the current branch for each of the supplied plan IDs."
                      },
                      "response": [
                        {
                          "id": "b187aaf9-05f4-47c5-8165-a63cc929fae9",
                          "name": "Current branches.",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/projects/:projectId/plans/current_branches",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "projects",
                                ":projectId",
                                "plans",
                                "current_branches"
                              ],
                              "variable": [
                                {
                                  "key": "projectId"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T02:37:27.000Z",
                          "updatedAt": "2026-07-28T02:37:27.000Z",
                          "uid": "35240-b187aaf9-05f4-47c5-8165-a63cc929fae9"
                        }
                      ],
                      "createdAt": "2026-07-28T02:37:27.000Z",
                      "updatedAt": "2026-07-28T02:37:27.000Z",
                      "uid": "35240-ea461e4e-151a-4c32-9b72-2ff0619b38a2"
                    }
                  ],
                  "id": "a94eb436-e7f1-4ce3-ac8b-7e8fb18ee462",
                  "createdAt": "2026-07-28T02:37:27.000Z",
                  "updatedAt": "2026-07-28T02:37:27.000Z",
                  "uid": "35240-a94eb436-e7f1-4ce3-ac8b-7e8fb18ee462"
                }
              ],
              "id": "f61f4e21-762e-4824-9b31-875e4c2ea2c1",
              "createdAt": "2026-07-28T02:37:27.000Z",
              "updatedAt": "2026-07-28T02:37:27.000Z",
              "uid": "35240-f61f4e21-762e-4824-9b31-875e4c2ea2c1"
            }
          ],
          "id": "6ca12e0c-5fb0-45f4-8932-c2145f14d963",
          "createdAt": "2026-07-28T02:37:27.000Z",
          "updatedAt": "2026-07-28T02:37:27.000Z",
          "uid": "35240-6ca12e0c-5fb0-45f4-8932-c2145f14d963"
        }
      ],
      "id": "d8171df7-e7bc-418a-be67-a5c0f7ad0737",
      "createdAt": "2026-07-28T02:37:27.000Z",
      "updatedAt": "2026-07-28T02:37:27.000Z",
      "uid": "35240-d8171df7-e7bc-418a-be67-a5c0f7ad0737"
    },
    {
      "name": "plans",
      "item": [
        {
          "name": "{planId}",
          "item": [
            {
              "name": "branches",
              "item": [
                {
                  "name": "{branch}",
                  "item": [
                    {
                      "name": "Delete Plan Branch",
                      "id": "ae254fd3-e011-4478-9b40-ea6a1f2bdad7",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "DELETE",
                        "header": [],
                        "url": {
                          "raw": "{{baseUrl}}/plans/:planId/branches/:branch",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "plans",
                            ":planId",
                            "branches",
                            ":branch"
                          ],
                          "variable": [
                            {
                              "id": "1c87740a-ae31-4c76-8921-9f43f63f7522",
                              "key": "planId",
                              "value": "<string>",
                              "description": "(Required) "
                            },
                            {
                              "id": "c7c6675b-29b5-4e68-806a-d335e2ffdd68",
                              "key": "branch",
                              "value": "<string>",
                              "description": "(Required) "
                            }
                          ]
                        },
                        "description": "Delete an existing branch from the plan."
                      },
                      "response": [
                        {
                          "id": "48dc3c0d-0d4c-488e-9441-10059e351d62",
                          "name": "Branch deleted.",
                          "originalRequest": {
                            "method": "DELETE",
                            "header": [
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/plans/:planId/branches/:branch",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "plans",
                                ":planId",
                                "branches",
                                ":branch"
                              ],
                              "variable": [
                                {
                                  "key": "planId"
                                },
                                {
                                  "key": "branch"
                                }
                              ]
                            }
                          },
                          "status": "No Content",
                          "code": 204,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T02:37:27.000Z",
                          "updatedAt": "2026-07-28T02:37:27.000Z",
                          "uid": "35240-48dc3c0d-0d4c-488e-9441-10059e351d62"
                        }
                      ],
                      "createdAt": "2026-07-28T02:37:27.000Z",
                      "updatedAt": "2026-07-28T02:37:27.000Z",
                      "uid": "35240-ae254fd3-e011-4478-9b40-ea6a1f2bdad7"
                    }
                  ],
                  "id": "8ac30a4a-69a0-4ec3-8a5a-d9cf89cbe493",
                  "createdAt": "2026-07-28T02:37:27.000Z",
                  "updatedAt": "2026-07-28T02:37:27.000Z",
                  "uid": "35240-8ac30a4a-69a0-4ec3-8a5a-d9cf89cbe493"
                },
                {
                  "name": "List Plan Branches",
                  "id": "e427a3b1-dd45-49f7-a5dc-fc717b5ab8e2",
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{baseUrl}}/plans/:planId/branches",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "plans",
                        ":planId",
                        "branches"
                      ],
                      "variable": [
                        {
                          "id": "7fd942f9-27da-4f9d-adf7-b6f4b22a43a4",
                          "key": "planId",
                          "value": "<string>",
                          "description": "(Required) "
                        }
                      ]
                    },
                    "description": "List all branches that exist on the plan."
                  },
                  "response": [
                    {
                      "id": "2280d13d-c4e8-4a11-9b8f-345923e0b1f0",
                      "name": "List of branches.",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/plans/:planId/branches",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "plans",
                            ":planId",
                            "branches"
                          ],
                          "variable": [
                            {
                              "key": "planId"
                            }
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "text",
                      "header": [],
                      "cookie": [],
                      "responseTime": null,
                      "body": null,
                      "createdAt": "2026-07-28T02:37:27.000Z",
                      "updatedAt": "2026-07-28T02:37:27.000Z",
                      "uid": "35240-2280d13d-c4e8-4a11-9b8f-345923e0b1f0"
                    }
                  ],
                  "createdAt": "2026-07-28T02:37:27.000Z",
                  "updatedAt": "2026-07-28T02:37:27.000Z",
                  "uid": "35240-e427a3b1-dd45-49f7-a5dc-fc717b5ab8e2"
                }
              ],
              "id": "172b98be-770e-473c-9c96-6a03a5f15156",
              "createdAt": "2026-07-28T02:37:27.000Z",
              "updatedAt": "2026-07-28T02:37:27.000Z",
              "uid": "35240-172b98be-770e-473c-9c96-6a03a5f15156"
            },
            {
              "name": "{branch}",
              "item": [
                {
                  "name": "branches",
                  "item": [
                    {
                      "name": "Create Plan Branch",
                      "id": "d9c6bb6e-5899-41b6-86be-821cc55ca639",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "POST",
                        "header": [],
                        "url": {
                          "raw": "{{baseUrl}}/plans/:planId/:branch/branches",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "plans",
                            ":planId",
                            ":branch",
                            "branches"
                          ],
                          "variable": [
                            {
                              "id": "f6b5bfc0-1f67-4732-b98a-bba9cfd428e2",
                              "key": "planId",
                              "value": "<string>",
                              "description": "(Required) "
                            },
                            {
                              "id": "a2abf97d-7f73-4502-b3a6-47550d5d5f89",
                              "key": "branch",
                              "value": "<string>",
                              "description": "(Required) "
                            }
                          ]
                        },
                        "description": "Create a new branch off the specified branch of the plan."
                      },
                      "response": [
                        {
                          "id": "633e543b-790d-4ce4-ab68-06965b98a240",
                          "name": "Branch created.",
                          "originalRequest": {
                            "method": "POST",
                            "header": [
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/plans/:planId/:branch/branches",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "plans",
                                ":planId",
                                ":branch",
                                "branches"
                              ],
                              "variable": [
                                {
                                  "key": "planId"
                                },
                                {
                                  "key": "branch"
                                }
                              ]
                            }
                          },
                          "status": "Created",
                          "code": 201,
                          "_postman_previewlanguage": "text",
                          "header": [],
                          "cookie": [],
                          "responseTime": null,
                          "body": null,
                          "createdAt": "2026-07-28T02:37:27.000Z",
                          "updatedAt": "2026-07-28T02:37:27.000Z",
                          "uid": "35240-633e543b-790d-4ce4-ab68-06965b98a240"
                        }
                      ],
                      "createdAt": "2026-07-28T02:37:27.000Z",
                      "updatedAt": "2026-07-28T02:37:27.000Z",
                      "uid": "35240-d9c6bb6e-5899-41b6-86be-821cc55ca639"
                    }
                  ],
                  "id": "cea5f46e-aeae-43b2-a2d3-9a2793c2182a",
                  "createdAt": "2026-07-28T02:37:27.000Z",
                  "updatedAt": "2026-07-28T02:37:27.000Z",
                  "uid": "35240-cea5f46e-aeae-43b2-a2d3-9a2793c2182a"
                }
              ],
              "id": "db375218-933a-444b-ac39-455371cdd399",
              "createdAt": "2026-07-28T02:37:27.000Z",
              "updatedAt": "2026-07-28T02:37:27.000Z",
              "uid": "35240-db375218-933a-444b-ac39-455371cdd399"
            }
          ],
          "id": "12f9ae38-55a6-410d-ae8c-a43b49e05459",
          "createdAt": "2026-07-28T02:37:27.000Z",
          "updatedAt": "2026-07-28T02:37:27.000Z",
          "uid": "35240-12f9ae38-55a6-410d-ae8c-a43b49e05459"
        }
      ],
      "id": "6c79e35e-2b1d-430c-9d07-275bd87f63a4",
      "createdAt": "2026-07-28T02:37:27.000Z",
      "updatedAt": "2026-07-28T02:37:27.000Z",
      "uid": "35240-6c79e35e-2b1d-430c-9d07-275bd87f63a4"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "http://localhost:8099"
    }
  ]
}