POST
/
v1
/
motorhead
/
sessions
/
{sessionId}
/
memory
curl --location --request POST 'https://api.getmetal.io/v1/motorhead/sessions/{sessionId}/memory' \
--header 'Content-Type: application/json' \
--data-raw '{
    "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"
}'
{
  "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"
  }
}

Params

sessionId
string
required

The Session ID

Body

context
string

Incremental summarization of the conversation

Response

data
Memory Object
curl --location --request POST 'https://api.getmetal.io/v1/motorhead/sessions/{sessionId}/memory' \
--header 'Content-Type: application/json' \
--data-raw '{
    "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"
}'
{
  "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"
  }
}