Skip to main content
GET
/
v1
/
prompts
List Prompts
curl --request GET \
  --url https://api.example.com/v1/prompts/ \
  --header 'X-API-Key: <api-key>'
{
  "data": {
    "data": [
      {
        "id": "<string>",
        "name": "<string>",
        "prompt": "<string>",
        "response_schema": {
          "draft_07": {}
        },
        "version": 123,
        "created_at": 123,
        "description": "<string>"
      }
    ],
    "total": 123,
    "page": 1,
    "page_size": 50
  },
  "links": {
    "self": {
      "href": "<string>",
      "rel": "<string>",
      "method": "GET",
      "title": "<string>"
    },
    "total": 123,
    "prev": {
      "href": "<string>",
      "rel": "<string>",
      "method": "GET",
      "title": "<string>"
    },
    "next": {
      "href": "<string>",
      "rel": "<string>",
      "method": "GET",
      "title": "<string>"
    }
  },
  "response_type": "PaginatedPromptListResponse"
}

Authorizations

X-API-Key
string
header
required

API Key for external integrations (format: greetincs_...)

Query Parameters

page
integer | null

Page number

Required range: x >= 1
page_size
integer | null

Number of prompts per page

Required range: 1 <= x <= 100

Response

Successful Response

Paginated list of prompt summaries.

data
PaginatedPromptListData · object
required

Paginated list of prompt summaries data.

response_type
string
default:PaginatedPromptListResponse