Docs
REST APICollectionsCreate a collection POST

Create a collection

POST
/v1/collections

Authorization

BearerAuth
AuthorizationBearer <token>

Pass the raw API key as a Bearer token (Authorization: Bearer <key>). Publishable keys start with mvi_pub_ (playback-scoped). Other prefixes denote private/admin keys for general REST routes. GET /v1/embeds/{embedId}/playback accepts publishable keys only.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.moviie.ai/v1/collections" \  -H "Content-Type: application/json" \  -d '{    "name": "Product demos"  }'
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "Product demos",
  "color": "sky",
  "description": "Demo videos for all products.",
  "is_default": true,
  "created_at": "2024-01-15T12:00:00.000Z",
  "updated_at": "2024-01-15T12:00:00.000Z",
  "_count": {
    "videos": 12
  }
}
{
  "error": "Resource not found",
  "code": "NOT_FOUND"
}