Upload Video — from URL
Upload a video by direct URL — the server fetches the file at request time and queues it for indexing.
https://api.memories.ai/serve/api/v1
Auth: Authorization: sk-mavi-... (no Bearer prefix)Prerequisites
- You have created a memories.ai API key.
- The video URL is publicly accessible via unauthenticated HTTP GET — the server fetches it at request time, so temporary or expiring links may fail.
- Video codecs: h264, h265, vp9, hevc. m3u8 streams are supported only if all internal paths are fully absolute.
- Max file size: 1 GB; files larger than 1 GB require special account permission — contact support.
Request Example
application/x-www-form-urlencoded. Send parameters as form fields, not JSON.Parameters
-1) to store in your account’s Default folder (created automatically on first use). Pass a folder id from List Folders or Create Folder to store in that folder — it must belong to your account, otherwise the request is rejected.yyyy-MM-dd HH:mm:ss format. Invalid formats are rejected.api tag is appended automatically.Response Example
Response Fields
0000 indicates success.UNPARSE immediately after upload; transitions to PARSE once indexing completes.Knowing When Indexing Is Done
The response returns immediately withvideoStatus: "UNPARSE" — the video is queued for indexing but is not yet searchable. Two ways to wait for PARSE:
Notes & Limits
- Source availability: The URL must remain accessible until the server fetches the video. Temporary or expiring links may fail.
- Rate limiting: Exceeding the per-account upload rate limit returns an error.
- Concurrent indexing cap: New uploads are rejected once the rolling 2-hour cap is reached.
- Billing: Each upload deducts credits from your account balance.
Authorizations
Body
Direct URL of the video. Must be reachable via unauthenticated HTTP GET.
"https://example.com/test_video.mp4"
Callback URL invoked when the video moves to the parsing stage. Max 299 characters.
299"https://your.app/callback"
Capture time in format yyyy-MM-dd HH:mm:ss.
"2025-10-20 11:00:00"
Camera/device model. Max 200 characters.
200"Canon EOS 5D"
66.66
66.66
User-defined tags. Max 20. The server automatically appends an 'api' tag.
20Whether to retain the original source video. Defaults to true.
"Focus on the speaker and major scene changes."
Optional target folder for the upload. Omit or pass -1 for the account's Default folder (auto-created on first use). A positive id must belong to your account.
671631448308117500
