---
updatedAt: 2026-09-16T11:13:48.000Z
agentTools:
  projectIndex: https://gtidocs.readme.io/llms.txt
---

# List prompts

Lists the [prompts](https://gtidocs.readme.io/reference/prompt-object) owned by or shared with the authenticated user, with support for filtering, ordering and cursor-based pagination.

## Examples

List the first prompts in your library, filtering by tag and sorting by most recently modified.

```python
import requests

url = "https://www.virustotal.com/api/v3/agent/prompts"
headers = {"accept": "application/json", "x-apikey": <api-key>}
params = {"filter": "tag:malware", "order": "last_updated-", "limit": 10}

response = requests.get(url, headers=headers, params=params)
response.raise_for_status()
page = response.json()

for prompt in page["data"]:
    print(prompt["id"], prompt["attributes"]["name"])

# Follow the cursor to fetch the next page, if any
cursor = page.get("meta", {}).get("cursor")
if cursor:
    next_page = requests.get(
        url,
        headers=headers,
        params={"cursor": cursor, "limit": 10},
    ).json()
```

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Agentic",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://www.virustotal.com/api/v3"
    }
  ],
  "tags": [
    {
      "name": "Prompts",
      "description": "List and retrieve agentic prompts."
    }
  ],
  "security": [],
  "paths": {
    "/agent/prompts": {
      "get": {
        "operationId": "list-prompts",
        "summary": "List prompts",
        "tags": [
          "Prompts"
        ],
        "deprecated": false,
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "Filter expression using [search-modifier syntax](doc:full-list-of-google-threat-intelligence-search-modifiers) (e.g. `tag:malware`, `owner:username`, `shared_with_me:true`). Results are scoped to prompts owned by or shared with the authenticated user.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "description": "Sort spec: `<field>` or `<field>+` ascending, `<field>-` descending (e.g. `last_updated-`). Sortable fields: `last_updated`, `owner`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "A token identifying a page of results, taken from the previous response's `meta.cursor`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of prompts to return per page.",
            "schema": {
              "type": "integer",
              "default": 40,
              "maximum": 40,
              "minimum": 1
            }
          },
          {
            "description": "Your API key.",
            "in": "header",
            "name": "x-apikey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of prompts owned by or shared with the authenticated user.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "data": [
                    {
                      "type": "prompt",
                      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                      "attributes": {
                        "name": "Triage high-detection file",
                        "description": "Summarize the threat posed by a file given its hash.",
                        "content": "Analyze the file with hash {{hash}} and summarize the key findings, associated threat actors and recommended actions.",
                        "tags": [
                          "malware",
                          "triage"
                        ],
                        "creation_date": 1785758400,
                        "last_modification_date": 1785758460
                      },
                      "links": {
                        "self": "https://www.virustotal.com/api/v3/agent/prompts/3fa85f64-5717-4562-b3fc-2c963f66afa6"
                      }
                    }
                  ],
                  "meta": {
                    "cursor": "CsEBCjcaNQ...",
                    "count": 1
                  },
                  "links": {
                    "self": "https://www.virustotal.com/api/v3/agent/prompts",
                    "next": "https://www.virustotal.com/api/v3/agent/prompts?cursor=CsEBCjcaNQ...&limit=10"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter value or malformed order syntax."
          },
          "401": {
            "description": "Missing or invalid API key."
          },
          "403": {
            "description": "User or group lacks permission to access Agentic API features."
          }
        },
        "security": []
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "headers": [],
    "proxy-enabled": false,
    "samples-enabled": true
  }
}
```