v18

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-2112360218.7 KB
Prompt Payloads

Create a Prompt Payload

Creates a new sample payload for the specified prompt. Only editors of the team can create.

post/v1/prompts/{id}/payloads

Path parameters

idstring uuid required

Unique prompt UUID.

Request body

variablesobject required

JSON object containing variable names and sample values.

Example request

{
  "variables": {
    "user": "Arpit",
    "role": "Admin"
  }
}

Response

Prompt payload created successfully

Example response

{
  "payload": {
    "variables": {
      "user": "Arpit",
      "role": "Admin"
    }
  }
}