List public announcements
Lists the school's published blog posts.
GEThttps://api.klasstack.com/v1/public/announcements
- public:read
- Billable
- Public (publishable key)
- Test key: example response
Authorizations
AuthorizationstringheaderrequiredA publishable key as a bearer token, in the form Bearer ks_live_pk_.... It is safe to ship in a browser or app. A secret key works here too. A test key gets the documented example and touches no school data.
Query Parameters
cursorstringqueryThe opaque cursor from the previous page's
meta.pagination.next_cursor.limitintegerqueryRows per page.
Example:
10Required range: 1 <= x <= 100
Response
200, application/json
dataobject[]requiredShow child attributes of each itemHide child attributes of each item
slugstringrequiredtitlestringrequiredexcerptstring or nullrequiredbodystring or nullrequiredSanitised HTML, as the school website renders it.
heroImageUrlstring or nullrequiredpublishedAtstringrequiredISO 8601, UTC.
metaobjectrequiredShow child attributesHide child attributes
request_idstringrequiredAlso returned in the X-Request-ID header.
paginationobjectShow child attributesHide child attributes
limitintegerrequiredRequired range: x <= 100
has_morebooleanrequirednext_cursorstring or nullrequiredSend this back as
cursorfor the next page. Opaque: never parse it.
Errors
- 401invalid_api_keyNo key was presented, or the key is not valid.
- 402insufficient_balanceThe school's service wallet cannot cover this call.
- 403insufficient_scopeThe app does not hold the scope this endpoint needs.
- 404endpoint_not_exposedThis endpoint is not part of the API.
- 429rate_limitedThe rate limit was reached. Retry after the Retry-After header says.
- 503platform_unavailableThe API is not available for this school right now.
What each code means, and what to do about it, is in the errors guide.
Webhook events
This call triggers no webhook event.