GET
/
api
/
v1
/
prompts
/
{prompt_id}
/
history
Python (SDK)
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
    api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

    res = ss_client.prompts.prompts_history(prompt_id=922849)

    # Handle response
    print(res)
[
  {
    "timestamp": "2024-01-01T12:00:00Z",
    "prompt_id": "1",
    "version_number": 1,
    "prompt_text": "You are a weather agent. Answer the user's questions about weather and nothing else.",
    "prompt_description": "Prompt for a weather agent.",
    "prompt_name": "Weather Agent Prompt",
    "llm_config": {
      "provider": "azure_openai",
      "model": "gpt-4o",
      "version": "2024-05-13",
      "api_version": "2024-06-01",
      "temperature": 1,
      "seed": 123
    },
    "comments": "Updated prompt text to include requirement to not answer questions that aren't about weather.",
    "user_email": "user@email.com",
    "linked_tools": [],
    "is_pre_enhancements": true
  }
]

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

prompt_id
integer
required

Response

200
application/json

Successful Response

The response is of type PromptHistory · object[].