---
operationId: listPlans
title: The plans and their limits
url: "https://mediaseer.ai/docs/api/operations/listplans/"
---

# The plans and their limits

`GET /plans`

URL: `api.mediaseer.ai/api/v1/plans`

Every plan with the limits it sets, as `getUsage` reports them for the plan you are on, and for a plan you can buy, its price. Your current plan is `plan.id` in `getUsage`.

## Authorizations

- **[apiKeyAuth](https://mediaseer.ai/docs/api/#apikeyauth)**

## Responses

### 200

OK

Media type: application/json

object

- `items` Array\<object>, required: Every plan, by `id`.

  A plan and the limits it sets. A limit that is absent is not set by the plan. Test accounts have none of the plan’s limits on storage, minutes and clips.

  object

  - `id` string, required: The plan’s identifier, as `plan.id` in `getUsage`. New plans may be added.

  - `name` string, required: The plan’s name, for display.

  - `limits` required

    object

    - `maxFileSizeBytes` integer, format: int64, required
    - `maxDurationSeconds` integer, required: The longest video an analysis may have, in seconds. After the start, the whole video is read to measure its length. An analysis of a longer video ends `FAILED`, without results, before it is processed, and so does one that can’t be read as a video. Its start doesn’t count.

  - `storageLimitBytes` integer, format: int64: The storage for source videos, as `storage.limitBytes` in `getUsage`.

  - `minutesLimitSeconds` integer, format: int64: The seconds of video you can analyse per period, as `minutes.limitSeconds` in `getUsage`.

  - `clipsLimit` integer: The clips you can make per period, as `clips.limit` in `getUsage`.

  - `price`: What the plan costs. Present only for a plan you can buy now, in the web app; absent for a free plan, and for any plan while buying is not available.

    object

    - `amount` integer, format: int64, required: The price per interval in the currency’s smallest unit (cents for EUR).

    - `currency` string, required: ISO 4217 currency code.

      `/^[A-Z]{3}$/`

    - `interval` string, required: How often the price is charged. New values may be added.

      Allowed values: `MONTH`, `YEAR`

#### Example

```json
{
  "items": [
    {
      "id": "creator",
      "name": "Creator",
      "limits": {
        "maxFileSizeBytes": 2147483648,
        "maxDurationSeconds": 1800
      },
      "storageLimitBytes": 50000000000,
      "minutesLimitSeconds": 36000,
      "clipsLimit": 100,
      "price": {
        "amount": 1900,
        "currency": "EUR",
        "interval": "MONTH"
      }
    }
  ]
}
```

### 401

Missing, invalid or expired credentials (`UNAUTHENTICATED`).

Media type: application/json

object

- `code` string, required: Stable machine-readable code. Clients branch on this, never on `message`.

  Allowed values: `VALIDATION`, `UNAUTHENTICATED`, `INVALID_TOKEN`, `FORBIDDEN`, `EMAIL_NOT_VERIFIED`, `NOT_FOUND`, `INVALID_STATE`, `UPLOAD_INCOMPLETE`, `QUOTA_EXCEEDED`, `RATE_LIMITED`, `UPSTREAM_ERROR`, `CLIPS_NOT_CONFIGURED`, `CLIPS_UNAVAILABLE`, `INTERNAL`

- `message` string, required: Human-readable, safe to show to the user. For `VALIDATION` with a single detail, it states that detail’s reason, naming the field where the reason needs it; with several, it is generic and `details` lists them.

- `details` Array\<object>: Optional field-level or limit-level detail.

  object

  - `field` string: The request field the detail refers to, if any; for `QUOTA_EXCEEDED`, the limit that was hit.
  - `message` string, required

#### Example

```json
{
  "code": "VALIDATION",
  "message": "The file is larger than the limit of 2147483648 bytes.",
  "details": [
    {
      "field": "sizeBytes",
      "message": "must be at most 2147483648"
    }
  ]
}
```

### default

Unexpected error

Media type: application/json

object

- `code` string, required: Stable machine-readable code. Clients branch on this, never on `message`.

  Allowed values: `VALIDATION`, `UNAUTHENTICATED`, `INVALID_TOKEN`, `FORBIDDEN`, `EMAIL_NOT_VERIFIED`, `NOT_FOUND`, `INVALID_STATE`, `UPLOAD_INCOMPLETE`, `QUOTA_EXCEEDED`, `RATE_LIMITED`, `UPSTREAM_ERROR`, `CLIPS_NOT_CONFIGURED`, `CLIPS_UNAVAILABLE`, `INTERNAL`

- `message` string, required: Human-readable, safe to show to the user. For `VALIDATION` with a single detail, it states that detail’s reason, naming the field where the reason needs it; with several, it is generic and `details` lists them.

- `details` Array\<object>: Optional field-level or limit-level detail.

  object

  - `field` string: The request field the detail refers to, if any; for `QUOTA_EXCEEDED`, the limit that was hit.
  - `message` string, required

#### Example

```json
{
  "code": "VALIDATION",
  "message": "The file is larger than the limit of 2147483648 bytes.",
  "details": [
    {
      "field": "sizeBytes",
      "message": "must be at most 2147483648"
    }
  ]
}
```
