curl --request POST \
--url http://localhost:3000/api/memory/{agentId}/rooms \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"type": "DM",
"source": "client",
"worldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"serverId": "<string>",
"metadata": {}
}'
{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": 123,
"source": "<string>",
"type": "<string>",
"worldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"serverId": "<string>",
"metadata": {}
}
}
Create a new room for an agent
curl --request POST \
--url http://localhost:3000/api/memory/{agentId}/rooms \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"type": "DM",
"source": "client",
"worldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"serverId": "<string>",
"metadata": {}
}'
{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": 123,
"source": "<string>",
"type": "<string>",
"worldId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"serverId": "<string>",
"metadata": {}
}
}
ID of the agent
Room created successfully
The response is of type object
.
Was this page helpful?