POST
/
api
/
v1
/
users
/
roleplay
/
proactive
/
{user_id}
curl --request POST \
  --url https://api.memobase.dev/api/v1/users/roleplay/proactive/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "user",
      "content": "<string>",
      "alias": "<string>",
      "created_at": "<string>"
    }
  ],
  "agent_context": "<string>"
}'
{
  "data": {
    "action": "new_topic",
    "topic_prompt": "<string>"
  },
  "errno": 0,
  "errmsg": ""
}

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
string
required

The ID of the user

Query Parameters

topk
integer

Number of profiles to retrieve, default is all

max_token_size
integer

Max token size of returned profile content, default is all

prefer_topics
string[]

Rank prefer topics at first to try to keep them in filtering, default order is by updated time

only_topics
string[]

Only return profiles with these topics, default is all

max_subtopic_size
integer

Max subtopic size of the same topic in returned profile, default is all

topic_limits_json
string

Set specific subtopic limits for topics in JSON, for example {"topic1": 3, "topic2": 5}. The limits in this param will override max_subtopic_size.

Body

application/json

The body of the request

Response

200
application/json

Successful Response

The response is of type object.