Skip to main content
GET
/
v1
/
apps
/
{app_id}
/
users
/
{user_id}
/
metamessages
/
{metamessage_id}
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() {
  const metamessage = await client.apps.users.metamessages.get('app_id', 'user_id', 'metamessage_id');

  console.log(metamessage.id);
}

main();
import os
from honcho import Honcho

client = Honcho(
api_key=os.environ.get("HONCHO_API_KEY"), # This is the default and can be omitted
)
metamessage = client.apps.users.metamessages.get(
metamessage_id="metamessage_id",
app_id="app_id",
user_id="user_id",
)
print(metamessage.id)
curl --request GET \
--url http://localhost:8000/v1/apps/{app_id}/users/{user_id}/metamessages/{metamessage_id} \
--header 'Authorization: Bearer <token>'
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/v1/apps/{app_id}/users/{user_id}/metamessages/{metamessage_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "http://localhost:8000/v1/apps/{app_id}/users/{user_id}/metamessages/{metamessage_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("http://localhost:8000/v1/apps/{app_id}/users/{user_id}/metamessages/{metamessage_id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("http://localhost:8000/v1/apps/{app_id}/users/{user_id}/metamessages/{metamessage_id}")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "id": "<string>",
  "label": "<string>",
  "content": "<string>",
  "user_id": "<string>",
  "app_id": "<string>",
  "session_id": "<string>",
  "message_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "metamessage_type": "<string>",
  "metadata": {}
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

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

ID of the app

user_id
string
required

ID of the user

metamessage_id
string
required

ID of the metamessage to retrieve

Response

Successful Response

id
string
required
label
string
required
content
string
required
user_id
string
required
app_id
string
required
session_id
string | null
required
message_id
string | null
required
created_at
string<date-time>
required
metamessage_type
string
required
read-only
metadata
Metadata · object