For the complete documentation index, see llms.txt. This page is also available as Markdown.

/api/v1/message

Admin-managed fylr messages shown in the web front end, optionally requiring per-user confirmation (confirm_every_version, show_always) and optionally scoped to a start_time/end_time window. A message is addressed to user groups via _groups, not to individual users. All operations require the system.message system right (or system.root); a user who holds it sees and manages every message — there is no per-user sender/recipient scoping.

Differs from easydb 5: the message kind is the webfrontend_type field (free-form) and the body text is message; easydb 5 named these type (with values such as eula) and message_html.

GET /message — List all messages.

List all messages.

get

Returns every stored message (no per-user filter), ordered by _id ascending. Requires the system.message system right.

Authorizations
AuthorizationstringRequired

Access token in the Authorization header: Authorization: Bearer <token>.

Query parameters
limitinteger · int64Optional

Maximum number of messages to return. Results are ordered by _id ascending.

Default: 1000
offsetinteger · int64Optional

Number of leading messages to skip (for paging).

Default: 0
Responses
200

Array of messages.

application/json

An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.

_basetypestring · enumRequired

Fixed marker identifying this object as a message.

Possible values:
_created_atstring · date-timeOptional
_updated_atstring · date-timeOptional

POST /message — Create or update one or more messages.

Create or update one or more messages.

post

Each array element is upserted by message._version: send _version: 1 to create a new message; send the stored version + 1 together with message._id to update an existing one (a mismatch returns VersionMismatch, 400). A save replaces the message's _groups set with the one supplied (an omitted/empty _groups clears it). Allowed in read-only mode.

Authorizations
AuthorizationstringRequired

Access token in the Authorization header: Authorization: Bearer <token>.

Bodyobject · MessageApi[]

An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.

_basetypestring · enumRequired

Fixed marker identifying this object as a message.

Possible values:
_created_atstring · date-timeOptional
_updated_atstring · date-timeOptional
Responses
200

The messages were created or updated.

application/json

An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.

_basetypestring · enumRequired

Fixed marker identifying this object as a message.

Possible values:
_created_atstring · date-timeOptional
_updated_atstring · date-timeOptional

PUT /message — Create or update one or more messages (alias for POST).

Create or update one or more messages (alias for POST).

put

Identical to POST /message: the same handler decodes the body and upserts each element by message._version.

Authorizations
AuthorizationstringRequired

Access token in the Authorization header: Authorization: Bearer <token>.

Bodyobject · MessageApi[]

An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.

_basetypestring · enumRequired

Fixed marker identifying this object as a message.

Possible values:
_created_atstring · date-timeOptional
_updated_atstring · date-timeOptional
Responses
200

The messages were created or updated.

application/json

An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.

_basetypestring · enumRequired

Fixed marker identifying this object as a message.

Possible values:
_created_atstring · date-timeOptional
_updated_atstring · date-timeOptional

GET /message/{id} — Retrieve a single message by id.

Retrieve a single message by id.

get

Returns the matching message wrapped in a one-element array (the same handler shape as the list endpoint), not a bare object.

Authorizations
AuthorizationstringRequired

Access token in the Authorization header: Authorization: Bearer <token>.

Path parameters
idinteger · int64 · min: 1Required

The message's _id.

Responses
200

A one-element array containing the message.

application/json

An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.

_basetypestring · enumRequired

Fixed marker identifying this object as a message.

Possible values:
_created_atstring · date-timeOptional
_updated_atstring · date-timeOptional

DELETE /message/{id} — Delete a message by id.

Delete a message by id.

delete
Authorizations
AuthorizationstringRequired

Access token in the Authorization header: Authorization: Bearer <token>.

Path parameters
idinteger · int64 · min: 1Required
Responses
200

The message was deleted.

application/json

Last updated