> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo-platform/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo-platform/_mcp/server.

# List Prompts By Workspace

GET /apis/models/v2/workspaces/{workspace}/prompts

List prompts for a specific workspace.

Reference: https://docs.nvidia.com/nemo-platform/nemo-platform/v0.3.0/documentation/reference/api-reference/prompts/list-prompts-apis-models-v-2-workspaces-workspace-prompts-get

## Request

### Path parameters

- `workspace` (string, required)

### Query parameters

- `page` (integer, optional, default: 1) — Page number.
- `page_size` (integer, optional, default: 100) — Page size.
- `sort` (enum, optional, default: created_at) — The field to sort by. To sort in decreasing order, use `-` in front of the field name.
  - Allowed values: `name`, `-name`, `created_at`, `-created_at`, `updated_at`, `-updated_at`
- `filter` (object, optional) — Filter prompts by workspace, project, name, description, created_at, and updated_at.
  - `workspace` (string, optional) — Filter by workspace.
  - `project` (string, optional) — Filter by project URN.
  - `name` (string, optional) — Filter by name.
  - `description` (string, optional) — Filter by description.
  - `created_at` (object, optional) — Filter by creation date.
    - `$gte` (datetime, optional) — Filter for results greater than or equal to this datetime.
    - `$lte` (datetime, optional) — Filter for results less than or equal to this datetime.
  - `updated_at` (object, optional) — Filter by update date.
    - `$gte` (datetime, optional) — Filter for results greater than or equal to this datetime.
    - `$lte` (datetime, optional) — Filter for results less than or equal to this datetime.

## Response

### 200

Return prompts for a workspace

- `data` (list of object, required)
  - `name` (string, required) — Name of the entity. Name/workspace combo must be unique across all entities. Name must start with a lowercase letter, be 2-63 characters, and use lowercase letters, digits, hyphens, and dots (no consecutive hyphens, cannot end with a hyphen).
  - `workspace` (string, required) — The workspace of the entity. Allowed characters: letters (a-z, A-Z), digits (0-9), underscores, hyphens, and dots.
  - `created_at` (datetime, required) — The timestamp of model entity creation
  - `updated_at` (datetime, required) — The timestamp of the last model entity update
  - `id` (string, optional) — Unique identifier for the prompt.
  - `project` (string, optional) — The URN of the project associated with this entity.
  - `description` (string, optional) — Optional description of the prompt.
  - `messages` (list of object, optional) — Ordered list of chat messages that make up the prompt.
    - `role` (enum, required) — The role of the message author.
      - Allowed values: `system`, `developer`, `user`, `assistant`
    - `content` (string, required) — Templated message content. May contain template variables.
  - `input_variables` (list of string, optional) — Names of the Jinja2 template variables the prompt expects.
  - `tools` (list of object, optional) — Optional OpenAI-compatible tool definitions to send with the prompt.
    - `type` ("function", required) — The type of the tool. Currently only 'function' is supported.
    - `function` (object, required) — The function definition for this tool.
      - `name` (string, required) — The name of the function to be called.
      - `description` (string, optional) — A description of what the function does, used by the model to decide when and how to call it.
      - `parameters` (map from string to any, optional) — The parameters the function accepts, described as a JSON Schema object.
      - `strict` (boolean, optional) — Whether to enforce strict schema adherence when generating the function call.
  - `tool_choice` (string or map from string to any, optional) — Controls which (if any) tool is called: 'none', 'auto', 'required', or a named-tool object.
  - `response_format` (map from string to any, optional) — Optional OpenAI-compatible response_format, e.g. a json_schema structured-output spec.
  - `inference_params` (object, optional) — Optional default model and sampling parameters (temperature, top_p, max_tokens, ...).
    - `model` (string, optional) — Model identifier
    - `temperature` (double, optional) — Float value between 0 and 1. temp of 0 indicates greedy decoding, where the token with highest prob is chosen. Temperature can't be set to 0.0 currently
    - `max_tokens` (integer, optional) — Max tokens to generate
    - `max_completion_tokens` (integer, optional) — Max tokens to generate
    - `top_p` (double, optional) — Float value between 0 and 1; limits to the top tokens within a certain probability. top_p=0 means the model will only consider the single most likely token for the next prediction
    - `stop` (list of string, optional)
  - `tags` (list of string, optional) — Optional free-form tags for organizing prompts.
- `pagination` (object, optional) — Pagination information.
  - `page` (integer, required) — The current page number.
  - `page_size` (integer, required) — The page size used for the query.
  - `current_page_size` (integer, required) — The size for the current page.
  - `total_pages` (integer, required) — The total number of pages.
  - `total_results` (integer, required) — The total number of results.
- `sort` (string, optional) — The field on which the results are sorted.
- `filter` (map from string to any, optional) — Filtering information.

## Examples

**Response**

```json
{
  "data": [
    {
      "name": "llama-3.1-8b",
      "workspace": "string",
      "created_at": "2024-01-15T09:30:00Z",
      "updated_at": "2024-01-15T09:30:00Z",
      "id": "string",
      "project": "string",
      "description": "string",
      "messages": [
        {
          "role": "system",
          "content": "string"
        }
      ],
      "input_variables": [
        "string"
      ],
      "tools": [
        {
          "type": "string",
          "function": {
            "name": "string",
            "description": "string",
            "parameters": {},
            "strict": true
          }
        }
      ],
      "tool_choice": {},
      "response_format": {},
      "inference_params": {
        "model": "string",
        "temperature": 1.1,
        "max_tokens": 1,
        "max_completion_tokens": 1,
        "top_p": 0.5,
        "stop": [
          "string"
        ]
      },
      "tags": [
        "string"
      ]
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 1,
    "current_page_size": 1,
    "total_pages": 1,
    "total_results": 1
  },
  "sort": "string",
  "filter": {}
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/apis/models/v2/workspaces/workspace/prompts"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.example.com/apis/models/v2/workspaces/workspace/prompts';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/apis/models/v2/workspaces/workspace/prompts"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.example.com/apis/models/v2/workspaces/workspace/prompts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.example.com/apis/models/v2/workspaces/workspace/prompts")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/apis/models/v2/workspaces/workspace/prompts');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/apis/models/v2/workspaces/workspace/prompts");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/apis/models/v2/workspaces/workspace/prompts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```