Ads
Ad endpoints require ads:read.
Search ads
Section titled “Search ads”curl https://api.afterlib.com/v1/ads/search \ -H "Authorization: Bearer $AFTERLIB_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "coffee", "limit": 25 }'The response returns ad records and pagination fields:
{ "items": [], "cursor": null, "hasMore": false}Fetch one ad
Section titled “Fetch one ad”curl https://api.afterlib.com/v1/ads/1234567890 \ -H "Authorization: Bearer $AFTERLIB_API_KEY"Use the API reference for the full Ad schema.