Upload Image from File

post/serve/api/v1/upload_img

Request

  • Base URL
    https://mavi-backend.memories.ai/serve/api/v2
  • Auth
    API key in header Authorization

Request body multipart/form-data

filesstring[] required

One or more image files. Allowed extensions: .jpg, .jpeg, .png, .gif, .bmp, .webp. Content-Type must start with image/. Max 20 MB per file. Batch size capped by server configuration.

datetime_takenstring

Capture time in format yyyy-MM-dd HH:mm:ss.

camera_modelstring

Camera/device model. Max 200 characters.

latitudenumber double
longitudenumber double
tagsstring[]

User-defined tags. Max 50. The server automatically appends an 'api' tag.

Example request

{
  "datetime_taken": "2025-09-07 22:52:00",
  "camera_model": "Canon EOS 5D",
  "latitude": 39.9042,
  "longitude": 116.4074,
  "tags": [
    "test1",
    "test2"
  ]
}

Response

Successful response

codestring

Business status code. 0000 indicates success.

msgstring
successboolean
failedboolean

Example response

{
  "code": "0000",
  "msg": "success",
  "data": [
    {
      "id": 568102998803353600
    },
    {
      "id": 568102998803353600
    }
  ],
  "success": true,
  "failed": false
}

Changes

No recorded changes to this operation across all 1 revision of this API.