Get prompt by ID

GET/agent/prompts/{id}

Retrieves a specific prompt by its ID

RequiresBearerauthentication

Path parameters

idstringrequired

Prompt ID

Returns  

Prompt retrieved successfully

Response fields

successbooleanoptional
messagestringoptional
dataobjectoptional
idstringoptional

Prompt ID

namestringoptional

Prompt name

descriptionstringoptional

Prompt description

contentstringoptional

Prompt content

is_defaultbooleanoptional

Whether this is a default prompt

tagsstring[]optional

Tags for categorizing the prompt

GETRequest
# Get authentication token
PHENOML_TOKEN=$(curl -X POST "https://experiment.app.pheno.ml/v2/auth/token" \
  -u "$PHENOML_CLIENT_ID:$PHENOML_CLIENT_SECRET" \
  | jq -r '.access_token')

curl -X GET "https://experiment.app.pheno.ml/agent/prompts/{id}" \
  -H "Authorization: Bearer $PHENOML_TOKEN"
200 OKExample Response
{
  "success": true,
  "message": "Prompt retrieved successfully",
  "data": {
    "id": "prompt_123",
    "name": "Medical Assistant System Prompt",
    "description": "System prompt for medical assistant agent",
    "content": "You are a helpful medical assistant...",
    "is_default": false,
    "tags": [
      "medical",
      "system"
    ]
  }
}