For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • POSTList prompts
      • POSTCreate a prompt
      • GETRetrieve a prompt
      • PATCHUpdate a prompt
      • DELDelete a prompt
      • POSTCreate a prompt version
      • GETList prompt versions
      • GETRetrieve a prompt version
      • PATCHUpdate a prompt version
      • DELDelete a prompt version
      • POSTCommit a prompt version
      • POSTDeploy a prompt version
      • GETGet prompts summary
      • POSTGet prompts summary with filters
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferencePrompts

Get prompts summary with filters

POST
https://api.respan.ai/api/prompts/summary/
POST
/api/prompts/summary/
$curl -X POST https://api.respan.ai/api/prompts/summary/ \
> -H "Authorization: Bearer sk_live_xxxxx" \
> -H "Content-Type: application/json" \
> -d '{
> "filters": {
> "name": {
> "value": [
> "support"
> ],
> "operator": "icontains"
> }
> },
> "operator": "AND"
>}'
1{
2 "total_count": 42
3}
Get summary statistics for prompts that match the specified filters.
Was this page helpful?
Previous

Create a dataset

Next
Built with

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
filtersobjectOptional

Prompt filters. See Filters API Reference for operator syntax.

operatorenumOptionalDefaults to AND
Logical operator for combining filters.
Allowed values:

Response

Filtered prompt summary statistics.
total_countinteger
Total number of prompts matching the filters.

Errors

401
Unauthorized Error