Skip to main content
GET
/
api
/
public
/
v1
/
posts
/
filters
List post filters
import requests

url = "https://app.oneperfectslice.ai/api/public/v1/posts/filters"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "data": {
    "filters": [
      {
        "key": "templateType",
        "displayName": "Template Type",
        "values": [
          {
            "key": "scorecard",
            "displayName": "Scorecard"
          }
        ]
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.oneperfectslice.ai/llms.txt

Use this file to discover all available pages before exploring further.

Call this first when building a filter UI. The response tells you exactly which filter keys exist and what values are valid for each.

Authorizations

Authorization
string
header
default:sk_your_api_key
required

API key with sk_ prefix. Create one in Org Settings → API Keys.

Response

Available post filters

data
object
required