Skip to main content
GET
/
prompts
List prompts
curl --request GET \
  --url https://api.adaline.ai/v2/prompts \
  --header 'Authorization: Bearer <token>'
{
  "prompts": [
    {
      "id": "<string>",
      "title": "<string>",
      "icon": {
        "type": "emoji",
        "value": "<string>"
      },
      "projectId": "<string>",
      "createdAt": 17450965800000,
      "updatedAt": 17450965800000
    }
  ],
  "pagination": {
    "limit": 123,
    "returned": 1,
    "hasMore": true,
    "nextCursor": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Workspace API key. Pass as Authorization: Bearer <key>.

Query Parameters

projectId
string
required

Filter prompts by project ID. Unique identifier for an entity, between 20 and 80 characters.

Required string length: 20 - 80
limit
integer
Required range: x <= 200
cursor
string
Minimum string length: 1
sort
enum<string>

Sort order for list endpoints.

Available options:
createdAt:asc,
createdAt:desc
createdAfter
integer | null
Required range: x >= 0
createdBefore
integer | null
Required range: x >= 0
fields
string
Minimum string length: 1

Response

Prompts retrieved.

prompts
Prompt Container · object[]
required
pagination
Pagination · object
required

Pagination metadata for list endpoints with cursor-based navigation.