POST
/
v1
/
apps
/
{app_id}
/
users
/
{user_id}
/
metamessages
/
list
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();
{
  "items": [
    {
      "id": "<string>",
      "metamessage_type": "<string>",
      "content": "<string>",
      "message_id": "<string>",
      "metadata": {},
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 1,
  "page": 2,
  "size": 2,
  "pages": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

app_id
string
required
user_id
string
required

Query Parameters

reverse
boolean | null
default:false
page
integer
default:1

Page number

Required range: x >= 1
size
integer
default:50

Page size

Required range: 1 <= x <= 100

Body

application/json
filter
object | null
metamessage_type
string | null

Response

200
application/json
Successful Response
items
object[]
required
total
integer
required
Required range: x >= 0
page
integer
required
Required range: x >= 1
size
integer
required
Required range: x >= 1
pages
integer
Required range: x >= 0