Skip to main content
POST
https://memoryapi-production.up.railway.app
/
upload
import requests

response = requests.post(
    "https://memoryapi-production.up.railway.app/upload",
    headers={"X-API-Key": "xinobi"},
    data={
        "unique_id": "your-bucket-id",
        "text": "Beach sunset in Hawaii",
        "tags": "vacation, beach, sunset"
    },
    files={"file": open("sunset.jpg", "rb")}
)
{
  "uploads": {
    "image": {
      "code": "0000",
      "msg": "success",
      "data": [{ "id": "651750900880375808" }]
    },
    "text": {
      "code": "0000",
      "msg": "success",
      "data": [
        { "id": "651750884146184192", "content": "Beach sunset in Hawaii" }
      ]
    }
  }
}
Upload any content type. You can combine multiple types in one request (e.g., image + text description).

Parameters

unique_id
string
required
Bucket ID to upload to
file
file
Image or video file
url
string
Video URL (direct link to mp4, etc.)
text
string
Text memory or description
tags
string
Comma-separated tags or JSON array
latitude
string
GPS latitude
longitude
string
GPS longitude

Examples

import requests

response = requests.post(
    "https://memoryapi-production.up.railway.app/upload",
    headers={"X-API-Key": "xinobi"},
    data={
        "unique_id": "your-bucket-id",
        "text": "Beach sunset in Hawaii",
        "tags": "vacation, beach, sunset"
    },
    files={"file": open("sunset.jpg", "rb")}
)
{
  "uploads": {
    "image": {
      "code": "0000",
      "msg": "success",
      "data": [{ "id": "651750900880375808" }]
    },
    "text": {
      "code": "0000",
      "msg": "success",
      "data": [
        { "id": "651750884146184192", "content": "Beach sunset in Hawaii" }
      ]
    }
  }
}