Profile

List Profile Templates

Return a paginated list of Profile template summaries in the project of the API Key, sorted by creation time descending; templates created at the same time are sorted by template ID descending. Returns an empty array when the project has no templates; when the page number is out of range, returns an empty array with the actual total and page count.

POST
/
list
/
profile_template
import os
import requests
import json

# Replace with your API Key
os.environ["MEMOS_API_KEY"] = "YOUR_API_KEY"
os.environ["MEMOS_BASE_URL"] = "https://memos.memtensor.cn/api/openmem/v1"

data = {
  "page": 1,
  "size": 10
}
headers = {
  "Content-Type": "application/json",
  "Authorization": f"Token {os.environ['MEMOS_API_KEY']}"
}
url = f"{os.environ['MEMOS_BASE_URL']}/list/profile_template"

res = requests.post(url=url, headers=headers, data=json.dumps(data))

print(f"result: {res.json()}")
{
  "code": 0,
  "data": {
    "profile_templates": [
      {
        "profile_template_id": "<string>",
        "name": "<string>",
        "project_id": "<string>",
        "instance_count": 0,
        "create_time": "<string>",
        "update_time": "<string>"
      }
    ],
    "total": 0,
    "current": 0,
    "size": 0,
    "pages": 0
  },
  "message": "ok"
}

Authorizations

Authorization
string
header
required

Token API_key, available in API Console > API Keys

Body

application/json
page
number
default: 1
Page number, starting from 1.
size
number
default: 10
Items per page, from 1 to 100.

Response

application/json

Successful Response

code
number

API status code.

Example: 0
data
object
Show child attributes
message
string

API response message.

Example: "ok"