import Honcho from 'honcho-ai';
const client = new Honcho({
apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
});
async function main() {
// Automatically fetches more pages as needed.
for await (const metamessage of client.apps.users.metamessages.list('app_id', 'user_id')) {
console.log(metamessage.id);
}
}
main();
Filter by user only: No additional parameters needed
Filter by session: Provide session_id
Filter by message: Provide message_id (and session_id)
Filter by type: Provide label
Filter by metadata: Provide filter object
POST
/
v1
/
apps
/
{app_id}
/
users
/
{user_id}
/
metamessages
/
list
JavaScript
import Honcho from 'honcho-ai';
const client = new Honcho({
apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
});
async function main() {
// Automatically fetches more pages as needed.
for await (const metamessage of client.apps.users.metamessages.list('app_id', 'user_id')) {
console.log(metamessage.id);
}
}
main();