Get a prompt

This endpoint returns the details of a single prompt by its unique ID.

📘

Requesting a prompt you cannot access returns 404

Requesting a prompt that belongs to another user and has not been shared with you returns 404 NotFoundError, not 403. Existence is hidden on purpose to prevent enumeration of private prompts, so do not treat a 404 as 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"])
Path Params
string
required

The unique identifier of the prompt.

Headers
string
required

Your API key.

Responses

404

Prompt not found.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json