import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/upload",
headers={"X-API-Key": "xinobi", "Content-Type": "application/json"},
json={
"unique_id": "your-bucket-id",
"text": "Had coffee with Sarah, discussed the new project",
"tags": ["meeting", "project"]
}
)
import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/upload",
headers={"X-API-Key": "xinobi", "Content-Type": "application/json"},
json={
"unique_id": "your-bucket-id",
"url": "https://example.com/video.mp4"
}
)
import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/upload",
headers={"X-API-Key": "xinobi", "Content-Type": "application/json"},
json={
"unique_id": "your-bucket-id",
"text": "Family vacation highlights",
"url": "https://example.com/video.mp4",
"tags": ["vacation", "family"]
}
)
{
"uploads": {
"text": {
"code": "0000",
"msg": "success",
"data": [
{ "id": "651750884146184192", "content": "Had coffee with Sarah..." }
]
}
}
}
{
"uploads": {
"video_url": {
"code": "0000",
"msg": "success",
"data": { "videoNo": "VI651752673251721216", "videoName": "my_video" }
}
}
}
Upload
Upload
Upload text or video URLs (JSON)
POST
/
upload
import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/upload",
headers={"X-API-Key": "xinobi", "Content-Type": "application/json"},
json={
"unique_id": "your-bucket-id",
"text": "Had coffee with Sarah, discussed the new project",
"tags": ["meeting", "project"]
}
)
import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/upload",
headers={"X-API-Key": "xinobi", "Content-Type": "application/json"},
json={
"unique_id": "your-bucket-id",
"url": "https://example.com/video.mp4"
}
)
import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/upload",
headers={"X-API-Key": "xinobi", "Content-Type": "application/json"},
json={
"unique_id": "your-bucket-id",
"text": "Family vacation highlights",
"url": "https://example.com/video.mp4",
"tags": ["vacation", "family"]
}
)
{
"uploads": {
"text": {
"code": "0000",
"msg": "success",
"data": [
{ "id": "651750884146184192", "content": "Had coffee with Sarah..." }
]
}
}
}
{
"uploads": {
"video_url": {
"code": "0000",
"msg": "success",
"data": { "videoNo": "VI651752673251721216", "videoName": "my_video" }
}
}
}
Upload text memories or video URLs using JSON.
Parameters
Examples
import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/upload",
headers={"X-API-Key": "xinobi", "Content-Type": "application/json"},
json={
"unique_id": "your-bucket-id",
"text": "Had coffee with Sarah, discussed the new project",
"tags": ["meeting", "project"]
}
)
import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/upload",
headers={"X-API-Key": "xinobi", "Content-Type": "application/json"},
json={
"unique_id": "your-bucket-id",
"url": "https://example.com/video.mp4"
}
)
import requests
response = requests.post(
"https://memoryapi-production.up.railway.app/upload",
headers={"X-API-Key": "xinobi", "Content-Type": "application/json"},
json={
"unique_id": "your-bucket-id",
"text": "Family vacation highlights",
"url": "https://example.com/video.mp4",
"tags": ["vacation", "family"]
}
)
{
"uploads": {
"text": {
"code": "0000",
"msg": "success",
"data": [
{ "id": "651750884146184192", "content": "Had coffee with Sarah..." }
]
}
}
}
{
"uploads": {
"video_url": {
"code": "0000",
"msg": "success",
"data": { "videoNo": "VI651752673251721216", "videoName": "my_video" }
}
}
}