get
https://www.virustotal.com/api/v3/agent/prompts/
This endpoint returns the details of a single prompt by its unique ID.
Requesting a prompt you cannot access returns 404Requesting a prompt that belongs to another user and has not been shared with you returns
404 NotFoundError, not403. Existence is hidden on purpose to prevent enumeration of private prompts, so do not treat a404as proof that a prompt ID is invalid.
Examples
Retrieve a single prompt by its ID.
import requests
prompt_id = "3fa85f64-5717-4562-b3fc-2c963f66afa6"
url = f"https://www.virustotal.com/api/v3/agent/prompts/{prompt_id}"
headers = {"accept": "application/json", "x-apikey": <api-key>}
response = requests.get(url, headers=headers)
response.raise_for_status()
prompt = response.json()["data"]
print(prompt["attributes"]["content"]) 404Prompt not found.