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