Download OpenAPI specification:Download
This documentation describes how to manage and acknowledge login messages.
This API requires the login message feature. Managing login messages is only available to users with the "Login Messages - Manage" administrator permission.
Retrieve a paginated list of all login messages for the organisation.
q | string Example: q=Policy Search login messages by title |
status | string Enum: "active" "inactive" Example: status=active Filter login messages by status |
frequency_period | string or null Enum: "once" "days" "weeks" "months" "always" Example: frequency_period=days Filter login messages by the frequency period. Use |
frequency_number | integer or null Example: frequency_number=7 Filter login messages by the frequency number |
created_by | integer Example: created_by=123 Filter login messages by the user who created them (by user ID) |
Array of objects (Login Message) | |
object |
{- "data": [
- {
- "id": 567,
- "created_by": {
- "id": 46485,
- "display_name": "John Smith",
- "title": "Mr",
- "can_manage": true,
- "role_name": "Volunteer",
- "team_name": "Kent",
- "status": {
- "id": "1",
- "name": "Active",
- "contactable": true
}
}, - "disabled_by": {
- "id": 46485,
- "display_name": "John Smith",
- "title": "Mr",
- "can_manage": true,
- "role_name": "Volunteer",
- "team_name": "Kent",
- "status": {
- "id": "1",
- "name": "Active",
- "contactable": true
}
}, - "created_at": "2020-01-01 13:00:00",
- "updated_at": "2020-01-01 13:00:00",
- "title": "Compulsory training login message",
- "message": "Lorem markdownum quae. Lapis adeo latices male Hyperione rapuere eminet,\nprohibent caeruleum, et glacialis, ait tua. A animoque vetus. Hunc dentes\nimplet! Itys secundo cuspide ausus, nec prodis artibus spectes conducit valeant\nquantum ora cum dolore.\n\n- Montano mirabile perire\n- Mota coniectos tractum retia quem caput indicat\n- Illud umeris\n\nQuam pellor vertit. Viget ramis est Ulixis postquam Amyntor in in inquit\nobscenae gratissime et invasit amores.",
- "frequency_period": "days",
- "frequency_number": 7,
- "status": "active"
}
], - "meta": {
- "pagination": {
- "total": "string",
- "count": "string",
- "per_page": "string",
- "current_page": "string",
- "total_pages": "string",
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Creates a new login message for the organisation.
title required | string Updated Safeguarding Policy |
message required | string Login message (markdown) |
frequency_period required | string Enum: "once" "days" "weeks" "months" "always" Login message frequency period. Use |
frequency_number required | integer or null Login message frequency number. |
status required | string Enum: "active" "inactive" Login message status |
object (Login Message) |
{- "title": "Updated Safeguarding Policy",
- "message": "Lorem markdownum quae. Lapis adeo latic",
- "frequency_period": "days",
- "frequency_number": 7,
- "status": "active",
- "clear_logs": false
}
{- "data": {
- "id": 567,
- "created_by": {
- "id": 46485,
- "display_name": "John Smith",
- "title": "Mr",
- "can_manage": true,
- "role_name": "Volunteer",
- "team_name": "Kent",
- "status": {
- "id": "1",
- "name": "Active",
- "contactable": true
}
}, - "disabled_by": {
- "id": 46485,
- "display_name": "John Smith",
- "title": "Mr",
- "can_manage": true,
- "role_name": "Volunteer",
- "team_name": "Kent",
- "status": {
- "id": "1",
- "name": "Active",
- "contactable": true
}
}, - "created_at": "2020-01-01 13:00:00",
- "updated_at": "2020-01-01 13:00:00",
- "title": "Compulsory training login message",
- "message": "Lorem markdownum quae. Lapis adeo latices male Hyperione rapuere eminet,\nprohibent caeruleum, et glacialis, ait tua. A animoque vetus. Hunc dentes\nimplet! Itys secundo cuspide ausus, nec prodis artibus spectes conducit valeant\nquantum ora cum dolore.\n\n- Montano mirabile perire\n- Mota coniectos tractum retia quem caput indicat\n- Illud umeris\n\nQuam pellor vertit. Viget ramis est Ulixis postquam Amyntor in in inquit\nobscenae gratissime et invasit amores.",
- "frequency_period": "days",
- "frequency_number": 7,
- "status": "active"
}
}
Retrieve an individual login message.
id required | integer Example: 654 Login message ID |
object (Login Message) |
{- "data": {
- "id": 567,
- "created_by": {
- "id": 46485,
- "display_name": "John Smith",
- "title": "Mr",
- "can_manage": true,
- "role_name": "Volunteer",
- "team_name": "Kent",
- "status": {
- "id": "1",
- "name": "Active",
- "contactable": true
}
}, - "disabled_by": {
- "id": 46485,
- "display_name": "John Smith",
- "title": "Mr",
- "can_manage": true,
- "role_name": "Volunteer",
- "team_name": "Kent",
- "status": {
- "id": "1",
- "name": "Active",
- "contactable": true
}
}, - "created_at": "2020-01-01 13:00:00",
- "updated_at": "2020-01-01 13:00:00",
- "title": "Compulsory training login message",
- "message": "Lorem markdownum quae. Lapis adeo latices male Hyperione rapuere eminet,\nprohibent caeruleum, et glacialis, ait tua. A animoque vetus. Hunc dentes\nimplet! Itys secundo cuspide ausus, nec prodis artibus spectes conducit valeant\nquantum ora cum dolore.\n\n- Montano mirabile perire\n- Mota coniectos tractum retia quem caput indicat\n- Illud umeris\n\nQuam pellor vertit. Viget ramis est Ulixis postquam Amyntor in in inquit\nobscenae gratissime et invasit amores.",
- "frequency_period": "days",
- "frequency_number": 7,
- "status": "active"
}
}
Update an existing login message.
id required | integer Example: 654 Login message ID |
title | string Updated Safeguarding Policy |
message | string Login message (markdown) |
frequency_period | string Enum: "once" "days" "weeks" "months" "always" Login message frequency period. Use |
frequency_number | integer or null Login message frequency number. |
status | string Enum: "active" "inactive" Login message status |
clear_logs | boolean Default: false |
object (Login Message) |
{- "title": "Updated Safeguarding Policy",
- "message": "Lorem markdownum quae. Lapis adeo latic",
- "frequency_period": "days",
- "frequency_number": 7,
- "status": "active",
- "clear_logs": false
}
{- "data": {
- "id": 567,
- "created_by": {
- "id": 46485,
- "display_name": "John Smith",
- "title": "Mr",
- "can_manage": true,
- "role_name": "Volunteer",
- "team_name": "Kent",
- "status": {
- "id": "1",
- "name": "Active",
- "contactable": true
}
}, - "disabled_by": {
- "id": 46485,
- "display_name": "John Smith",
- "title": "Mr",
- "can_manage": true,
- "role_name": "Volunteer",
- "team_name": "Kent",
- "status": {
- "id": "1",
- "name": "Active",
- "contactable": true
}
}, - "created_at": "2020-01-01 13:00:00",
- "updated_at": "2020-01-01 13:00:00",
- "title": "Compulsory training login message",
- "message": "Lorem markdownum quae. Lapis adeo latices male Hyperione rapuere eminet,\nprohibent caeruleum, et glacialis, ait tua. A animoque vetus. Hunc dentes\nimplet! Itys secundo cuspide ausus, nec prodis artibus spectes conducit valeant\nquantum ora cum dolore.\n\n- Montano mirabile perire\n- Mota coniectos tractum retia quem caput indicat\n- Illud umeris\n\nQuam pellor vertit. Viget ramis est Ulixis postquam Amyntor in in inquit\nobscenae gratissime et invasit amores.",
- "frequency_period": "days",
- "frequency_number": 7,
- "status": "active"
}
}
Retrieve a paginated list of all logs for a login message.
id required | integer Example: 654 Login message ID |
date | string Example: date=2024-06-26T00:00:00.000Z Filter logs by acknowledgement date |
user | integer Example: user=123 Filter logs by the user (user ID) |
Array of objects (Login Message Log) | |
object |
{- "data": [
- {
- "id": 567,
- "user": {
- "id": 46485,
- "display_name": "John Smith",
- "title": "Mr",
- "can_manage": true,
- "role_name": "Volunteer",
- "team_name": "Kent",
- "status": {
- "id": "1",
- "name": "Active",
- "contactable": true
}
}, - "created_at": "2020-01-01 13:00:00",
- "updated_at": "2020-01-01 13:00:00"
}
], - "meta": {
- "pagination": {
- "total": "string",
- "count": "string",
- "per_page": "string",
- "current_page": "string",
- "total_pages": "string",
- "links": {
- "next": "string",
- "previous": "string"
}
}
}
}
Retrieve all login messages that a user has not acknowledged.
This endpoint can only retrieve login messages for the currently authenticated user.
userId required | integer Example: 865 User ID |
Array of objects (User Login Message) |
{- "data": [
- {
- "id": 567,
- "title": "Daily notification",
- "message": "Daily information that is of interested for the current logged user."
}
]
}
Acknowledge a login message for a user.
This endpoint can only acknowledge login messages for the currently authenticated user.
userId required | integer Example: 865 User ID |
id required | integer Example: 654 Login message ID |
acknowledged required | boolean Acknowledge a message |
{- "acknowledged": true
}
{- "message": "Unauthorized action",
- "status_code": "403"
}