Show examples in:
Javascript HTTP
Endpoint info
Available examples
Content Management API > Emoji suggestions

Retrieve emoji suggestions

Warning: Experimental API

Please note that this API method is marked as unstable and should be avoided in production environments. Changes may occur at any time without warning, potentially impacting your scripts. We recommend contacting our Support Team to explore alternative approaches that are safer and more reliable!

Query parameters

term string

The term for which we are seeking suggestions for emojis

Example: "Blog post"

Returns

Returns a resource object of type emoji_suggestions

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const emojiSuggestions = await client.emojiSuggestions.find();
// Check the 'Returned output' tab for the result ☝️
console.log(emojiSuggestions);
}
run();
{ id: "Blog post", emojis: [] }