cURL
curl --request GET \ --url https://api.aivra.cloud/v1/integration/prompts/{prompt_id}/version/active \ --header 'X-API-Key: <api-key>'
{ "id": "<string>", "prompt_id": "<string>", "version_number": 123, "content": "<string>", "metadata_": {}, "created_at": "2023-11-07T05:31:56Z" }
prompt_id
environment
id
version_number
content
metadata_
created_at
curl -H "X-API-Key: ak_xxxxxxxxx" \ "${BASE_URL}/v1/integration/prompts/pr_1/version/active?environment=production"
{ "id": "ver_12", "prompt_id": "pr_1", "version_number": 12, "content": "...", "metadata_": null, "created_at": "2025-11-27T12:00:00Z" }
OK
Was this page helpful?