Settings API

This article and the rest of the API documentation in this section are written for a technical audience — integrators and developers connecting external systems to Tickiti. Familiarity with HTTP, REST, JSON and bearer-token authentication is assumed.

The Settings API exposes the personal/shared Settings screens — perspectives, watchlists, hashtags and stock responses — over the bearer-token API. Every endpoint runs as the token’s owner and is gated by the settings ability plus the owner’s staff role, so a call can do exactly what that user could do in the interface (a non-admin still can’t edit a shared perspective, for example).

Abilities and conventions

  1. settings:read — read endpoints.
  2. settings:write — create / update / delete endpoints. Write implies read, so a write token also satisfies the read endpoints.

All endpoints are POST and JSON. Request and response shapes match the corresponding Settings screen; the notes below highlight the key fields. Validation, plan caps and ownership rules are the same as the UI because the API reuses that code.

Endpoints

Method & pathAbilityPurpose
POST /api/v1/settings/perspectivessettings:readList the caller’s perspectives
POST /api/v1/settings/perspectives/createsettings:writeCreate a perspective (name, shared, conditions, orders)
POST /api/v1/settings/perspectives/updatesettings:writeUpdate a perspective by perspective_id
POST /api/v1/settings/perspectives/deletesettings:writeDelete a perspective by perspective_id
POST /api/v1/settings/watchlistssettings:readList visible watchlists (+ colour pickers)
POST /api/v1/settings/watchlists/createsettings:writeCreate a watchlist (name, icon, shared)
POST /api/v1/settings/watchlists/updatesettings:writeUpdate a watchlist by watchlist_id
POST /api/v1/settings/watchlists/deletesettings:writeDelete a watchlist by watchlist_id
POST /api/v1/settings/watchlists/add-ticketssettings:writeAdd ticket_ids to a watchlist
POST /api/v1/settings/watchlists/remove-ticketssettings:writeRemove ticket_ids from a watchlist
POST /api/v1/settings/watchlists/reordersettings:writeReorder a watchlist’s tickets
POST /api/v1/settings/hashtagssettings:readList/search hashtags (optional q)
POST /api/v1/settings/hashtags/deletesettings:writeDelete a tag everywhere (tag; admin only)
POST /api/v1/settings/stock-responsessettings:readList stock responses
POST /api/v1/settings/stock-responses/showsettings:readFetch one stock response by template_id
POST /api/v1/settings/stock-responses/createsettings:writeCreate a stock response
POST /api/v1/settings/stock-responses/updatesettings:writeUpdate a stock response
POST /api/v1/settings/stock-responses/deletesettings:writeDelete a stock response by template_id

Notes

  1. The stock-response endpoints act on stock responses only. Templates and FAQs are managed through the Templates API.
  2. Hashtag delete requires the owner to be an admin (enforced in-app), even with a settings:write token.
  3. Shared perspectives/watchlists can only be created or edited by an admin owner; everyone else is limited to their own.