curl --request GET \
--url https://api.arize.com/v2/prompts/{prompt_id}/versions \
--header 'Authorization: Bearer <token>'{
"prompt_versions": [
{
"id": "pv_002",
"prompt_id": "prompt_001",
"commit_hash": "def789ghi012",
"commit_message": "Updated system prompt",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
}
],
"input_variable_format": "f_string",
"provider": "open_ai",
"model": "gpt-4",
"created_at": "2024-01-02T12:00:00Z",
"created_by_user_id": "user_12345"
},
{
"id": "pv_001",
"prompt_id": "prompt_001",
"commit_hash": "abc123def456",
"commit_message": "Initial version",
"messages": [
{
"role": "system",
"content": "You are an assistant."
}
],
"input_variable_format": "f_string",
"provider": "open_ai",
"model": "gpt-4",
"created_at": "2024-01-01T12:00:00Z",
"created_by_user_id": "user_12345"
}
],
"pagination": {
"next_cursor": "cursor_12345",
"has_more": true
}
}List all versions of a prompt, sorted by creation date with the most recently created versions first.
curl --request GET \
--url https://api.arize.com/v2/prompts/{prompt_id}/versions \
--header 'Authorization: Bearer <token>'{
"prompt_versions": [
{
"id": "pv_002",
"prompt_id": "prompt_001",
"commit_hash": "def789ghi012",
"commit_message": "Updated system prompt",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
}
],
"input_variable_format": "f_string",
"provider": "open_ai",
"model": "gpt-4",
"created_at": "2024-01-02T12:00:00Z",
"created_by_user_id": "user_12345"
},
{
"id": "pv_001",
"prompt_id": "prompt_001",
"commit_hash": "abc123def456",
"commit_message": "Initial version",
"messages": [
{
"role": "system",
"content": "You are an assistant."
}
],
"input_variable_format": "f_string",
"provider": "open_ai",
"model": "gpt-4",
"created_at": "2024-01-01T12:00:00Z",
"created_by_user_id": "user_12345"
}
],
"pagination": {
"next_cursor": "cursor_12345",
"has_more": true
}
}Documentation Index
Fetch the complete documentation index at: https://arize-ax.mintlify.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format
The unique identifier of the prompt A universally unique identifier
"RW50aXR5OjEyMzQ1"
Maximum items to return
1 <= x <= 100Opaque pagination cursor returned from a previous response
(pagination.next_cursor). Treat it as an unreadable token; do not
attempt to parse or construct it.
Was this page helpful?
Suggestions