curl --request POST \
--url https://api.example.com/v1/prompts/:id/versions \
--header 'Content-Type: application/json' \
--data '
{
"version": "<string>"
}
'{
"id": "<string>",
"prompt_id": "<string>",
"version": "<string>",
"tarball_url": "<string>",
"created_at": "<string>",
"401 Unauthorized": {},
"403 Forbidden": {},
"404 Not Found": {},
"409 Conflict": {},
"413 Payload Too Large": {},
"422 Validation Error": {}
}Upload a new version of a prompt as a tarball
curl --request POST \
--url https://api.example.com/v1/prompts/:id/versions \
--header 'Content-Type: application/json' \
--data '
{
"version": "<string>"
}
'{
"id": "<string>",
"prompt_id": "<string>",
"version": "<string>",
"tarball_url": "<string>",
"created_at": "<string>",
"401 Unauthorized": {},
"403 Forbidden": {},
"404 Not Found": {},
"409 Conflict": {},
"413 Payload Too Large": {},
"422 Validation Error": {}
}MAJOR.MINOR.PATCH (e.g., 1.0.0, 2.3.15)Must match the regex pattern: ^\d+\.\d+\.\d+$.tar.gz) containing the prompt filesapplication/gzip.tar.gzcurl -X POST https://api.prompts.dev/v1/prompts/abc123/versions \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "version=1.0.0" \
-F "tarball=@./prompt.tar.gz"
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"prompt_id": "abc123",
"version": "1.0.0",
"tarball_url": "user123/my-prompt/1.0.0.tar.gz",
"created_at": "2026-03-10T15:30:00Z"
}
{
"error": "VALIDATION_ERROR",
"message": "validation failed",
"details": {
"version": "must match ^\\d+\\.\\d+\\.\\d+$"
}
}
{owner_id}/{prompt_name}/{version}.tar.gz