Elai.io Upload folders API
Organise the media library into folders. Distinct from the folders that organise videos.
Organise the media library into folders. Distinct from the folders that organise videos.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/elaiio:elaiio-upload-folders-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Elai Public Upload folders API
version: '1.0'
description: 'Every endpoint below is served under `https://apis.elai.io/api/v1`.
## Authentication
Send your workspace API token as a bearer token on every request:
```
Authorization: Bearer
```
Generate and rotate the token in the Elai web app under **Settings → API**, or through
`POST /generateToken`. The token is scoped to one **workspace** and authenticates as that
workspace''s admin user — it is not tied to an individual person, and it carries admin rights
inside that workspace.
A request with a missing, unknown or revoked token gets a bare `401` with no response body.
> **Organizations on the Unlimited plan cannot use the API.** Their requests are rejected with the
> same bare `401` as an invalid token, with nothing to distinguish the two. If a valid, freshly
> generated token returns `401` on every endpoint, check the plan first.
## Errors
Failures carry a JSON body of the shape `{ "message": "..." }`. Validation failures on the newer
endpoints may add an `errors` array naming the offending fields. `401` is the exception: it has no
body at all.
Both render endpoints are **fire-and-forget** — they queue work and return immediately, so a
`200` means "accepted", not "rendered". Render failures surface only through the `video_error`
webhook, never as an HTTP error on the call that started the render.
## Scope
This reference is generated from the running code rather than maintained by hand, so it cannot
quietly fall behind the API it describes. It documents 94 operations across the
`/api/v1` surface.
Endpoints are grouped by subject in the sidebar. If something you need is missing, or an endpoint
does not behave as described here, tell us.
---
_Generated from `HEAD` at `2a2222fdbe` on 2026-11-25._'
servers:
- url: https://apis.elai.io/api/v1
security:
- sec0: []
tags:
- name: Upload folders
description: Organise the media library into folders. Distinct from the folders that organise videos.
paths:
/uploads/folders:
post:
tags:
- Upload folders
summary: Create a media-library folder
description: 'Creates a folder in the media library, optionally nested under `parentUploadFolderId`.
Folder names must be unique within the same parent. Only **root-level** folders count against the plan''s folder limit.
Callers whose workspace role is `locked` are rejected with `403` unless the `increaseUserLockedRolePrivileges` feature flag is enabled for the tenant.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: Folder name. Required.
parentUploadFolderId:
type:
- string
- 'null'
description: Parent folder id. Omit it, or send `null`, for a root-level folder — the handler treats a missing and a null parent the same way.
required:
- name
example:
name: Product launch
parentUploadFolderId: null
responses:
'200':
description: The created folder.
content:
application/json:
schema:
$ref: '#/components/schemas/UploadFolder'
'400':
description: '`name` missing, a folder with that name already exists in the same location, or the plan''s folder limit is reached.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: A folder with this name already exists in the same location
'403':
$ref: '#/components/responses/FolderAccessDenied'
operationId: create-upload-folder
/uploads/folders/lookup:
post:
tags:
- Upload folders
summary: Search media-library folders
description: 'Lists folders matching a Mongo-style `match` filter, always constrained to the caller''s workspace.
With no `match.parentUploadFolderId`, only root-level folders are returned. Pass `match.parentUploadFolderId` to list the children of a specific folder.
On Free, Creator and Team plans each folder carries an `isLimited` flag — `true` means the folder is beyond what the plan allows and is shown but not usable — and limited folders are sorted last.
> `match` is passed to the query almost as given. Treat it as an internal search facility, not a stable filter language.'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
match:
type: object
description: Additional filter conditions. `accountId` is always overwritten with the caller's workspace.
additionalProperties: true
sort:
type: string
enum:
- CREATED_AT_DESCEND
- CREATED_AT_ASCEND
- UPDATED_AT_DESCEND
- UPDATED_AT_ASCEND
- NAME_ASCEND
- NAME_DESCEND
default: NAME_ASCEND
example:
match:
parentUploadFolderId: 66a1f0c2b7cd13032a9c6100
sort: NAME_ASCEND
responses:
'200':
description: Matching folders.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/UploadFolder'
'403':
$ref: '#/components/responses/FolderAccessDenied'
operationId: search-upload-folders
/uploads/folders/names:
get:
tags:
- Upload folders
summary: List all folder names
description: Returns just the names of every media-library folder in the workspace, at any depth — used to check name collisions before creating a folder. No ids, no nesting information.
responses:
'200':
description: Folder names.
content:
application/json:
schema:
type: object
properties:
names:
type: array
items:
type: string
example:
names:
- Product launch
- Onboarding
- Archive
'403':
$ref: '#/components/responses/FolderAccessDenied'
operationId: list-upload-folder-names
/uploads/folders/uploadFolder/{id}:
post:
tags:
- Upload folders
summary: Get a folder with its children and ancestors
description: 'Returns one folder with its immediate `children` populated and `parentUploadFolders` — the ancestor chain ordered from the root down.
A `POST` despite being a read: the sort option travels in the body.'
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Folder id.
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
sort:
type: string
enum:
- CREATED_AT_DESCEND
- CREATED_AT_ASCEND
- UPDATED_AT_DESCEND
- UPDATED_AT_ASCEND
- NAME_ASCEND
- NAME_DESCEND
default: NAME_ASCEND
description: Sort applied to `children`.
responses:
'200':
description: The folder, its children and its ancestors.
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/UploadFolder'
- type: object
properties:
parentUploadFolders:
type: array
items:
$ref: '#/components/schemas/UploadFolder'
description: Ancestors, root first.
'400':
description: Folder not found, or it belongs to another workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
$ref: '#/components/responses/FolderAccessDenied'
operationId: retrieve-upload-folder
/uploads/folders/{id}:
patch:
tags:
- Upload folders
summary: Rename or move a folder
description: 'Renames a folder, or moves it under a different parent.
**Rename wins over move.** The two operations are mutually exclusive in one call: if `name` is present the folder is renamed and `parentUploadFolderId` is ignored entirely. Send two requests to do both.
To move a folder to the top level, send `parentUploadFolderId` as `null` or `false`. Names must stay unique within the destination.'
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: New name. Takes precedence over `parentUploadFolderId`.
parentUploadFolderId:
type:
- string
- 'null'
- boolean
description: New parent, or `null`/`false` for the top level. Only honoured when `name` is absent.
example:
name: Renamed folder
responses:
'200':
description: The updated folder.
content:
application/json:
schema:
$ref: '#/components/schemas/UploadFolder'
'400':
description: '`name` present but empty, duplicate name in the destination, folder not found, or the destination parent belongs to another workspace.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
$ref: '#/components/responses/FolderAccessDenied'
operationId: update-upload-folder
delete:
tags:
- Upload folders
summary: Delete a folder and everything in it
description: '**Recursive and permanent.** Deletes the folder, every descendant folder, and every asset inside that subtree — including the stored files.
The response returns signed URLs for the deleted assets (`uploadUrls`), captured before deletion, so the caller can offer an undo-by-re-upload. Videos referencing those assets are not updated.
Asset deletion runs at most 10 at a time and is not transactional.'
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Folder subtree deleted.
content:
application/json:
schema:
type: object
properties:
message:
type: string
uploadUrls:
type: array
items:
type: string
description: Signed URLs of the deleted assets, taken just before deletion.
example:
message: Upload folder deleted successfully
uploadUrls:
- https://cdn.example.com/uploads/logo.png?Expires=...
'400':
description: Folder not found, or it belongs to another workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
$ref: '#/components/responses/FolderAccessDenied'
operationId: delete-upload-folder
x-readme:
explorer-enabled: false
/uploads/folders/{id}/breadcrumbs:
get:
tags:
- Upload folders
summary: Get a folder's breadcrumb trail
description: 'Returns the path from the media-library root to the folder, ready to render as breadcrumbs. The first entry is always the synthetic root (`{ name: ''Media library'', id: null }`).
Each entry carries `isLimited`, flagging folders that exceed the plan''s folder allowance.'
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Breadcrumb trail, root first.
content:
application/json:
schema:
type: object
properties:
breadcrumbs:
type: array
items:
type: object
properties:
name:
type: string
id:
type:
- string
- 'null'
description: '`null` for the synthetic media-library root.'
isLimited:
type: boolean
example:
breadcrumbs:
- name: Media library
id: null
isLimited: false
- name: Product launch
id: 66a1f0c2b7cd13032a9c6100
isLimited: false
'400':
description: Folder not found, or it belongs to another workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
$ref: '#/components/responses/FolderAccessDenied'
operationId: retrieve-upload-folder-breadcrumbs
/uploads/folders/{id}/info:
get:
tags:
- Upload folders
summary: Get folder contents summary
description: Reports how many assets the folder's whole subtree contains and which of them are referenced by videos. Intended as the confirmation step before a recursive delete.
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Summary for the folder subtree.
content:
application/json:
schema:
type: object
properties:
folder:
$ref: '#/components/schemas/UploadFolder'
uploadsCount:
type: integer
description: Assets in the whole subtree.
hasUploads:
type: boolean
usedFilesInVideos:
type: array
items:
type: string
description: Asset URLs from the subtree that videos still reference.
'400':
description: Folder not found, or it belongs to another workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
$ref: '#/components/responses/FolderAccessDenied'
operationId: retrieve-upload-folder-info
components:
schemas:
UploadFolder:
type: object
description: A media library folder. Distinct from `Folder`, which organises videos.
properties:
_id:
type: string
name:
type: string
maxLength: 50
parentUploadFolderId:
type:
- string
- 'null'
children:
type: array
items:
type: string
description: Child folder ids, or full documents when populated.
isLimited:
type: boolean
description: 'Present on low-tier plans: the folder exceeds the plan''s allowance.'
userId:
type: string
accountId:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
Error:
type: object
properties:
message:
type: string
description: Human-readable explanation of the failure.
responses:
FolderAccessDenied:
description: The caller's workspace role is `locked` and the `increaseUserLockedRolePrivileges` feature flag is off.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: You are not allowed to perform this action
securitySchemes:
sec0:
type: apiKey
in: header
name: Authorization
x-bearer-format: bearer
x-default: SECRET_KEY
x-provenance:
method: searched
source: https://elai.readme.io/reference
harvested: '2026-12-01'
tool: harvest-readme-openapi.py
note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
assembled_from:
- https://elai.readme.io/reference/apply-brand-kit.md
- https://elai.readme.io/reference/apply-template.md
- https://elai.readme.io/reference/avatars-list.md
- https://elai.readme.io/reference/build-outline-video.md
- https://elai.readme.io/reference/build-quiz-question.md
- https://elai.readme.io/reference/build-video-lesson.md
- https://elai.readme.io/reference/check-upload-usage.md
- https://elai.readme.io/reference/choose-lesson-template.md
- https://elai.readme.io/reference/copy-video-by-template.md
- https://elai.readme.io/reference/copy-video.md
- https://elai.readme.io/reference/create-from-pptx.md
- https://elai.readme.io/reference/create-from-text-url.md
- https://elai.readme.io/reference/create-outline.md
- https://elai.readme.io/reference/create-upload-folder.md
- https://elai.readme.io/reference/create-user.md
- https://elai.readme.io/reference/create-video.md
- https://elai.readme.io/reference/create-voice-customization.md
- https://elai.readme.io/reference/delete-upload-folder.md
- https://elai.readme.io/reference/delete-upload.md
- https://elai.readme.io/reference/delete-uploads.md
- https://elai.readme.io/reference/delete-user.md
- https://elai.readme.io/reference/delete-video.md
- https://elai.readme.io/reference/delete-voice-customization.md
- https://elai.readme.io/reference/download-scorm-package.md
- https://elai.readme.io/reference/generate-api-token.md
- https://elai.readme.io/reference/generate-outline-chapters.md
- https://elai.readme.io/reference/generate-outline-quiz.md
- https://elai.readme.io/reference/generate-outline-script.md
- https://elai.readme.io/reference/generate-quiz-from-video.md
- https://elai.readme.io/reference/generate-slides.md
- https://elai.readme.io/reference/get-slide-screenshots.md
- https://elai.readme.io/reference/get-speech-duration.md
- https://elai.readme.io/reference/inspect-presentation.md
- https://elai.readme.io/reference/list-avatar-frames.md
- https://elai.readme.io/reference/list-custom-voices.md
- https://elai.readme.io/reference/list-fonts.md
- https://elai.readme.io/reference/list-lesson-templates.md
- https://elai.readme.io/reference/list-music-tracks.md
- https://elai.readme.io/reference/list-templates.md
- https://elai.readme.io/reference/list-upload-folder-names.md
- https://elai.readme.io/reference/list-uploads.md
- https://elai.readme.io/reference/list-users.md
- https://elai.readme.io/reference/list-video-edit-history.md
- https://elai.readme.io/reference/list-video-exports.md
- https://elai.readme.io/reference/list-videos.md
- https://elai.readme.io/reference/list-voice-customizations.md
- https://elai.readme.io/reference/llm-generate-speech.md
- https://elai.readme.io/reference/llm-rewrite-speech.md
- https://elai.readme.io/reference/move-upload.md
- https://elai.readme.io/reference/move-uploads.md
- https://elai.readme.io/reference/paste-story-html.md
- https://elai.readme.io/reference/preview-lesson-template-layouts.md
- https://elai.readme.io/reference/preview-video-lesson-restyle.md
- https://elai.readme.io/reference/preview-voice-customization.md
- https://elai.readme.io/reference/rebuild-video-lesson.md
- https://elai.readme.io/reference/regenerate-outline-quiz.md
- https://elai.readme.io/reference/regenerate-outline-speech.md
- https://elai.readme.io/reference/regenerate-quiz-question.md
- https://elai.readme.io/reference/render-personalized.md
- https://elai.readme.io/reference/render-video.md
- https://elai.readme.io/reference/restyle-video-lesson.md
- https://elai.readme.io/reference/retrieve-api-config.md
- https://elai.readme.io/reference/retrieve-avatar.md
- https://elai.readme.io/reference/retrieve-current-user.md
- https://elai.readme.io/reference/retrieve-lesson-template.md
- https://elai.readme.io/reference/retrieve-outline.md
- https://elai.readme.io/reference/retrieve-player-payload.md
- https://elai.readme.io/reference/retrieve-signed-url.md
- https://elai.readme.io/reference/retrieve-template.md
- https://elai.readme.io/reference/retrieve-upload-folder-breadcrumbs.md
- https://elai.readme.io/reference/retrieve-upload-folder-info.md
- https://elai.readme.io/reference/retrieve-upload-folder.md
- https://elai.readme.io/reference/retrieve-video-lesson-design.md
- https://elai.readme.io/reference/retrieve-video-source-links.md
- https://elai.readme.io/reference/retrieve-video.md
- https://elai.readme.io/reference/revoke-api-token.md
- https://elai.readme.io/reference/rewrite-outline-speech.md
- https://elai.readme.io/reference/search-upload-folders.md
- https://elai.readme.io/reference/submit-custom-voice.md
- https://elai.readme.io/reference/synthesize-speech.md
- https://elai.readme.io/reference/translate.md
- https://elai.readme.io/reference/update-avatar.md
- https://elai.readme.io/reference/update-outline.md
- https://elai.readme.io/reference/update-upload-folder.md
- https://elai.readme.io/reference/update-user.md
- https://elai.readme.io/reference/update-video.md
- https://elai.readme.io/reference/update-voice-customization.md
- https://elai.readme.io/reference/upload-confirm.md
- https://elai.readme.io/reference/upload-custom-voice.md
- https://elai.readme.io/reference/upload-music-track.md
- https://elai.readme.io/reference/voices-list.md
- https://elai.readme.io/reference/webhook-set-secret-token.md
- https://elai.readme.io/reference/webhook-subscribe.md
- https://elai.readme.io/reference/webhook-unsubscribe.md
merge:
pages: 94
deduped: 253
conflicts_kept_first: 0