Skip to content

Get all hints for the acting user and surface

GET
/api/v1/hints
curl --request GET \
--url http://localhost:11044/api/v1/hints \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'
surface
string

Asking surface: ‘me’ or ‘console’. Omit for every surface’s hints.

Every hint the caller should see

Media type*/*
Array<object>

One tip for a UI to show, from the installation, the world’s config or an installed realm. Returned by the /hints endpoints.

object
action

A one-click follow-up that fills the host surface’s chat input. Null when the tip has none

object
chatInput
required

Text to put in the chat input, not sent automatically. Empty when the hint file gives none

string
label
required

Button text for the follow-up; Do It when the hint file gives none

string
body
required

The tip itself, as Markdown. Empty when its file gives none

string
category
required

Grouping the tip belongs to; the stock set uses hint, did-you-know and fun-fact, and a file that names none gets hint

string
icon

Icon name as the hint file gives it, passed through uninterpreted. Null when the file gives none

string
id
required

Identifier built from the hint file’s name and the tip’s position in it: stable while the file is unchanged, unique across files. What GET /hints/random takes in exclude

string
realm

Name of the realm that shipped the tip. Null for a tip from the installation or the world’s own config

string
surface
required

Which UI the tip is for: me (the chat surfaces), console (the worlds console) or all

string
title
required

Short heading for the tip. Empty when its file gives none

string

Basic-auth challenge failed