agents
channels.twilio.numbers
agents.test
conversations
data_sources
events
incidents
insights
insights.folders
insights.workflows
insights.tools
custom_messages
prompts
session_labels
sessions.transcript
sessions.full-summary
sessions.latency
session_debug
channels.targets
directory
dashboards
outbound.batches
- GETList Outbound Communication Batches
- POSTCreate Outbound Communication Batch
- GETGet Outbound Communication Batch
- PUTUpdate Outbound Communication Batch
- DELDelete Outbound Communication Batch
- POSTUpload Outbound Communication Batch
- GETFetch Outbound Communication Batch Results
- POSTCreate Outbound Communication Request
- POSTDelete Requests By List Of Reference Ids
outbound.campaigns
language_groups
prompts
Get Prompt History
Get a prompt by ID
GET
/
api
/
v1
/
prompts
/
{prompt_id}
/
history
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=627932)
# Handle response
print(res)
[
{
"timestamp": "2024-01-01T12:00:00Z",
"prompt_id": "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": "<string>",
"comments": "Updated prompt text to include requirement to not answer questions that aren't about weather.",
"user_email": "user@email.com"
}
]
Authorizations
Path Parameters
Response
200
application/json
Successful Response
The response is of type object[]
.
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=627932)
# Handle response
print(res)
[
{
"timestamp": "2024-01-01T12:00:00Z",
"prompt_id": "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": "<string>",
"comments": "Updated prompt text to include requirement to not answer questions that aren't about weather.",
"user_email": "user@email.com"
}
]