Skip to main content

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 populated with a prompts array.

Example Request

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.