> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hasmcp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# What is the API route to list a provider's prompts?

> Endpoint documentation for retrieving all Prompts mapped globally to a specific HasMCP provider.

# Listing a Provider's Prompts

To programmatically surface all prompts stored beneath a specific provider abstraction via your automation workflows, query the sub-routed `GET` endpoint.

## Using REST API

### The API Endpoint

**`GET /providers/{providerId}/prompts`**

*(Note: Replace `{providerId}` with the 11-character hash ID of your targeted provider).*

### Fetching the Collection

Transmitting an authenticated `GET` command to this route returns a [`ListProviderPromptsResponse`](/api-reference/providers/prompts/list-provider-prompts) populated with a `prompts` array.

#### Example Request

```bash theme={null}
curl -X GET https://app.hasmcp.com/api/v1/providers/kSuB9Gf6aD4/prompts \
 -H "Authorization: Bearer YOUR_TOKEN"
```

Each item returned dictates the `id` of the prompt itself, its semantic `name`, the expected `arguments` allowing LLMs to parameterize it dynamically, and the actual template array inside `messages`.
