GET
/
prompts
curl --request GET \
  --url https://api.portkey.ai/v1/prompts \
  --header 'x-portkey-api-key: <api-key>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "slug": "<string>",
      "name": "<string>",
      "collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "model": "<string>",
      "status": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "last_updated_at": "2023-11-07T05:31:56Z",
      "object": "prompt"
    }
  ],
  "total": 123
}

Authorizations

x-portkey-api-key
string
header
required

Query Parameters

collection_id
string
workspace_id
string
current_page
integer
page_size
integer

Response

200
application/json
List of prompts
data
object[]
total
integer