Skip to main content
GET
/
prompts
List all prompts
curl --request GET \
  --url https://api.getbasalt.ai/prompts \
  --header 'Authorization: Bearer <token>'
{
  "prompts": [
    {
      "slug": "my-prompt",
      "name": "My Prompt",
      "status": "live",
      "description": "This is a description of the prompt",
      "availableVersions": [
        "1.0.0",
        "1.0.1"
      ],
      "availableTags": [
        "latest",
        "production"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

featureSlug
string

The feature slug to filter prompts by

Example:

"feature-slug"

Response

Array of prompts.

prompts
object[]
required

The list of prompts

Example:
[
{
"slug": "my-prompt",
"name": "My Prompt",
"status": "live",
"description": "This is a description of the prompt",
"availableVersions": ["1.0.0", "1.0.1"],
"availableTags": ["latest", "production"]
}
]
I