curl --request GET \
--url https://api.example.com/v1/prompts/:owner/:name/versions{
"items": [
{
"items[].id": "<string>",
"items[].prompt_id": "<string>",
"items[].version": "<string>",
"items[].tarball_url": "<string>",
"items[].created_at": "<string>"
}
],
"404 Not Found": {},
"500 Internal Server Error": {}
}Retrieve all versions for a specific prompt
curl --request GET \
--url https://api.example.com/v1/prompts/:owner/:name/versions{
"items": [
{
"items[].id": "<string>",
"items[].prompt_id": "<string>",
"items[].version": "<string>",
"items[].tarball_url": "<string>",
"items[].created_at": "<string>"
}
],
"404 Not Found": {},
"500 Internal Server Error": {}
}1.0.0, 2.3.15)curl https://api.prompts.dev/v1/prompts/alice/code-review/versions
{
"items": [
{
"id": "660e8400-e29b-41d4-a716-446655440002",
"prompt_id": "abc123",
"version": "2.1.0",
"tarball_url": "alice/code-review/2.1.0.tar.gz",
"created_at": "2026-03-10T15:30:00Z"
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"prompt_id": "abc123",
"version": "2.0.0",
"tarball_url": "alice/code-review/2.0.0.tar.gz",
"created_at": "2026-03-05T10:15:00Z"
},
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"prompt_id": "abc123",
"version": "1.0.0",
"tarball_url": "alice/code-review/1.0.0.tar.gz",
"created_at": "2026-03-01T08:00:00Z"
}
]
}
{
"items": []
}
{
"error": "NOT_FOUND",
"message": "prompt not found"
}
{
"error": "INTERNAL_ERROR",
"message": "failed to fetch versions"
}
created_at timestamp, not by semantic version number.