🧠 Memory
Get Memory
This endpoint gets a single memory.
GET
/
v1
/
motorhead
/
sessions
/
{sessionId}
/
memory
Header
Path
curl --location --request GET 'https://api.getmetal.io/v1/motorhead/sessions/{sessionId}/memory' \
--header 'Content-Type: application/json' \
{
"data": {
"messages": [
{ "role": "Human", "content": "Who is the best vocalist of all time?" },
{ "role": "AI", "content": "Ozzy!" }
],
"context": "User ask what can he eat in Colombia. The AI responds arepas are really nice"
}
}
Auth Headers
x-metal-api-key
string
requiredAn API key for your org.
x-metal-client-id
string
requiredA Client ID for your org.
Params
sessionId
string
requiredThe Session ID
Response
data
Memory Object
curl --location --request GET 'https://api.getmetal.io/v1/motorhead/sessions/{sessionId}/memory' \
--header 'Content-Type: application/json' \
{
"data": {
"messages": [
{ "role": "Human", "content": "Who is the best vocalist of all time?" },
{ "role": "AI", "content": "Ozzy!" }
],
"context": "User ask what can he eat in Colombia. The AI responds arepas are really nice"
}
}