List prompts
GET/:organization_id/prompts
Returns a paginated and filterable list of prompts for an organization.
Filtering:
The filters
parameter accepts a JSON array of filter objects. Each filter object has:
field
: The field to filter on (name, description, entity_id)comparison
: The comparison operator (eq, not_eq, lt, lte, gt, gte, contains, not_contains, start, end, true, false, blank, not_blank)value
: The value to compare against (can be a single value or an array of values). Note: Arrays automatically create OR conditions between values.
Examples:
- Filter by name containing "Audio":
[{"field":"name","comparison":"contains","value":"Audio"}]
- Filter by entity_id:
[{"field":"entity_id","comparison":"eq","value":123}]
- Array of values (OR):
[{"field":"name","comparison":"contains","value":["Audio","Welcome"]}]
Request
Responses
- 200
- 401
- 403
- 422
Successful response
Unauthorized
Forbidden
Unprocessable Entity - Invalid input