Nirmos
Prompts

List Prompt Branches

List Prompt Branches — Nirmos Control Plane REST API.

GET
/v1/prompts/{id}/branches

Authorization

better-auth.session_token<token>

Production cookie uses __Secure- prefix.

In: cookie

Path Parameters

id*string
Length1 <= length <= 128

Query Parameters

limit?integer
Range1 <= value <= 100
Default50
cursor?string
Length1 <= length <= 128

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/prompts/string/branches"
{  "data": {    "items": [      {        "_count": {},        "contentBlocks": [],        "detectedVariables": [],        "messages": [],        "tags": [],        "segmentIds": [],        "usedBySuiteIds": [],        "evaluatorIds": [],        "caseIds": [],        "versions": [],        "columns": [],        "cases": [],        "branches": [],        "targets": [],        "segments": [],        "labels": []      }    ],    "nextCursor": "string"  },  "requestId": "string"}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}