Get Task Status

Get the status of an asynchronous processing task.

POST
/
get
/
status
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 = {
  "task_id": "40aae834-4248-4944-b2bb-a674f37a2fdb" # Replace with the Task ID to query
}
headers = {
  "Content-Type": "application/json",
  "Authorization": f"Token {os.environ['MEMOS_API_KEY']}"
}
url = f"{os.environ['MEMOS_BASE_URL']}/get/status"

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

print(f"result: {res.json()}")
{
  "code": 0,
  "data": {
    "status": "running"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Token API_key, available in API Console > API Keys

Body

application/json
task_id
string
required

Async Task ID

Response

application/json

Successful Response

code
number
required

API status code. See Error Code for details.

data
object
Show child attributes
message
string
required

API response message