vault/website/content/api-docs/system/internal-ui-authenticated-messages.mdx
Marc Boudreau dcde458e33
VAULT-23051: Documenting API Endpoints (#24845)
* api documentation changes

* document management endpoints

* add new website page to the navigation

* include explanation message retrieval from namespaces up to root namespace

* added clarification statement to the create and update operations documentation

* fixed inconsistency in sample request

* Apply suggestions from code review

Co-authored-by: Jonathan Frappier <92055993+jonathanfrappier@users.noreply.github.com>

---------

Co-authored-by: Jonathan Frappier <92055993+jonathanfrappier@users.noreply.github.com>
2024-01-19 16:13:03 -05:00

60 lines
1.8 KiB
Plaintext

---
layout: api
page_title: /sys/internal/ui/authenticated-messages - HTTP API
description: >-
The `/sys/internal/ui/authenticated-messages` endpoint retrieves active post-login custom messages.
---
# `/sys/internal/ui/authenticated-messages`
The `/sys/internal/ui/authenticated-messages` endpoint is used by the UI to
retrieve the active post-login custom messages so that it can display them.
When retrieving custom messages, the results will include active messages from
the current namespace along with custom messages that exist all of the ancestral
namespaces up to and including the root namespace.
This should only be used internally by the UI. Due to the nature of its
intended usage, there is no guarantee on backwards compatibility for this endpoint.
## Get post-login custom messages
This endpoint lists the active post-login custom messages.
| Method | Path |
| :----- | :------------------------------------------ |
| `GET` | `/sys/internal/ui/authenticated-messages` |
### Sample request
```shell-session
$ curl \
http://127.0.0.1:8200/v1/sys/internal/ui/authenticated-messages
```
### Sample response
```json
{
"data": {
"key_info": {
"01234567-89ab-cdef-0123-456789abcdef": {
"title": "Post-login Advisory",
"message": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur nulla augue, placerat quis risus blandit, molestie imperdiet massa. Sed blandit rutrum odio quis varius. Fusce purus orci, maximus ac libero.",
"type": "modal",
"authenticated": true,
"start_time": "2024-01-01T00:00:00.000000000Z",
"end_time": null,
"options": null,
"link": {
"Details": "https://www.example.org/details"
}
}
},
"keys": [
"01234567-89ab-cdef-0123-456789abcdef"
]
}
}
```