Skip to main content
POST
Create Folder
Product: Visual Search Use case: Organize your indexed videos into folders and scope uploads/searches to a folder Host: https://api.memories.ai/serve/api/v1 Auth: Authorization: sk-mavi-... (no Bearer prefix)
Create a new folder in your account. The returned folder_id can then be passed to Upload Video (folder_id), Move Videos, or the list/search endpoints to scope them to this folder.

Prerequisites

Request Example

Uses application/x-www-form-urlencoded — send name as a form field.
cURL

Parameters

name
string
required
Folder name. Maximum 100 characters. Must be unique within your account — creating a folder with an existing name is rejected.

Response Example

Response Fields

code
string
Business status code. 0000 indicates success.
msg
string
Human-readable status message.
data.folder_id
integer
Identifier of the newly created folder.
data.folder_name
string
Folder display name.

Notes & Limits

  • Creating a folder with a name that already exists returns Folder with this name already exists.
  • The built-in Default folder does not need to be created — omit folder_id on upload to use it.

Authorizations

Authorization
string
header
required

Body

application/x-www-form-urlencoded
name
string
required

Folder name. Max 100 chars, unique within your account.

Maximum string length: 100
Example:

"my-project"

Response

200 - application/json

Successful response

code
string
Example:

"0000"

msg
string
Example:

"success"

data
object