> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Analyze a video with AI

> Watch a video with AI and get what is said and shown, its hook, its structure and its key points.

> [!NOTE]
>
> Needs `media:read`. Paid plans only. See [Permissions](/docs/essentials/authentication.md#permissions).

The video is either a public post's video, by its link in `url` (TikTok, Instagram, YouTube, X, Facebook and more; the post needn't be yours), or a video of the media library, by `media_id`. The answer has the transcript, the words on screen, the scenes, the hook, the structure and the key points, and an `answer` when you send a `question`. Use it to turn a video into posts, slides or a script, or to see why it works. Videos up to 10 minutes and 300 MB can be watched. Nothing is stored.

**Cost.** A watch costs AI credits by what it really costs, which follows the video's length: at least 1 credit, about 2 for a one-minute video. `credits` in the answer says what it cost and what is left. The owner of the workspace in `workspace_id` pays; without it, the key's user does. When the payer's credits don't cover a watch of this length, the answer is `402` before anything is watched. On the Free plan the answer is `403` `plan_limit_reached` with `limit: ai`.

**Time.** A watch takes about 15 to 60 seconds, up to 85 for a long video. Give your client a timeout of at least 100 seconds: a request sent again is a second watch. A watch that can't finish in time answers `422` and costs nothing; try a shorter clip.

**Limits.** Each payer runs at most 2 watches at once and starts at most 10 a minute. Past either, the answer is `429` with `Retry-After`, and nothing is charged.

In MCP this is the `analyze-video` tool: see [Media tools](/docs/mcp/tools-reference.md#media).

## Errors

Nothing is charged on any error.

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 402 | `insufficient_credits` | The payer's credits don't cover a watch of this length. | After a top-up. |
| 403 | | The key lacks `media:read`, or its user is inactive. | No: grant it in Settings → API. |
| 403 | `plan_limit_reached` | The payer is on the Free plan (`limit: ai`). | After an upgrade. |
| 404 | | The post is private, was removed or doesn't exist (`code: post_unavailable`), or the library video isn't one the key can reach or isn't in `workspace_id`. | No. |
| 422 | | Neither or both of `url` and `media_id`; a `url` that isn't an http or https link or is longer than 2048 characters; a `question` longer than 2000 characters; a `workspace_id` the key can't reach ("Workspace #N is invalid or you do not have access to it."); no video at the link; the library file isn't a video or is still being made; the video is too long, too big or in a format that can't be watched (MP4, MOV, WebM, AVI, MPEG, FLV, WMV and 3GP can); it couldn't be downloaded or watched in time; or the post can't be downloaded (`code`). `message` says which. | No: fix the request, or try a shorter clip. |
| 422 | `ai_declined` | The AI declined. | Yes, with different wording. |
| 429 | | More than 60 requests a minute, or the payer has 2 watches running or started 10 in the last minute. | Yes, after `Retry-After` seconds. |
| 503 | `ai_unavailable` | The AI, or the downloader (`code: unavailable`), couldn't do it just now. | Yes, in a minute. |

The watch limit's `429` has the same `{message}` body and `Retry-After` header as the request limit, with its own words:

```json 429: 2 watches running (Retry-After: 30) theme={null}
{ "message": "Two videos are already being watched for this account. Try again when one of them is done." }
```

```json 429: 10 watches this minute theme={null}
{ "message": "Ten videos were watched for this account in the last minute, the most there is. Try again in a minute." }
```

## Related

* [Get download links for a post's media](/docs/api-reference/media/download-url.md): a post's files, without watching them.
* [Upload a file](/docs/api-reference/media/upload-file.md): put a video in the library to watch it by `media_id`.


## OpenAPI

````yaml POST /media/analyze-video
openapi: 3.0.3
info:
  title: PostSyncer API
  description: >-
    Post to 12 social networks from your code: posts, media, comments,
    analytics, webhooks and more.
  version: 1.0.0
servers:
  - url: https://postsyncer.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: The workspaces the key can reach.
  - name: Accounts
    description: Connected social accounts, links to connect more, and disconnecting them.
  - name: Posts
    description: Drafts, scheduled and published posts, approvals and a post's history.
  - name: Post settings
    description: A post's auto-plug, comment moderation and contact collection.
  - name: Media
    description: >-
      The media library: file uploads, URL imports, and reading videos and
      social posts' files.
  - name: Folders
    description: Folders that organise the media library.
  - name: Comments
    description: >-
      Comments on your posts: reading, replying, editing, hiding, deleting and
      syncing them.
  - name: Reviews
    description: Google Business Profile reviews and your replies to them.
  - name: Analytics
    description: Workspace, account and post performance.
  - name: Brand
    description: >-
      A workspace's brand: identity, voice, look, accounts, competitors,
      learnings and rules.
  - name: Labels
    description: Labels used to tag posts.
  - name: Campaigns
    description: Campaigns used to group posts.
  - name: Snippets
    description: Saved snippets and hashtag groups to drop into posts.
  - name: Webhooks
    description: Signed webhook endpoints that get your notification events.
  - name: Billing
    description: >-
      The owner's plan, invoices and the links that pay for, change or cancel
      it.
  - name: Team
    description: A workspace's teammates and invitations, and their roles.
  - name: Notifications
    description: >-
      Your bell and notification settings, and the workspace's Slack, Discord
      and Telegram channels.
  - name: Blog-to-social
    description: Blog feeds that turn a workspace's new articles into posts.
  - name: Products
    description: Products the workspace's posts can promote.
  - name: Contacts
    description: People who commented on the workspace's posts, and the lists they are on.
  - name: Profile
    description: 'The key''s user: their name and sign-in email.'
  - name: API keys
    description: 'Your API keys: listing and deleting them.'
  - name: Agent sign-up
    description: >-
      An AI agent signs a person up with a code emailed to them, and gets their
      first key. No key needed.
paths:
  /media/analyze-video:
    post:
      tags:
        - Media
      summary: Analyze a video with AI
      description: >-
        Needs `media:read`. Watches a video with AI: a public post's video by
        its link (TikTok, Instagram, YouTube, X, Facebook and more; the post
        needn't be yours), or a video of the media library. Answers what is said
        (the transcript), what is shown, the hook, the structure and the key
        points, and an optional question. Videos up to 10 minutes and 300 MB.
        Paid plans only: on the Free plan it answers `403` `plan_limit_reached`
        with `limit: ai`. It costs AI credits by what the watch costs, at least
        1 (about 2 for a one-minute video): the workspace owner's when
        `workspace_id` is sent, else the key's user's. It takes about 15 to 60
        seconds, up to 85: give your client at least 100 seconds. A payer runs
        at most 2 watches at once and starts at most 10 a minute; past that the
        answer is `429` with `Retry-After`. Nothing is stored.
      operationId: analyzeVideo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  format: uri
                  maxLength: 2048
                  description: >-
                    A public post's link (http or https) with a video. Send
                    `url` or `media_id`, not both.
                media_id:
                  type: integer
                  description: >-
                    A video of the media library. Send `url` or `media_id`, not
                    both. With `workspace_id`, it must be in that workspace.
                question:
                  type: string
                  nullable: true
                  maxLength: 2000
                  description: >-
                    What to find out or get from the video, like "Turn it into
                    slide text". The answer is in `answer`.
                workspace_id:
                  type: integer
                  nullable: true
                  description: >-
                    The workspace whose owner pays. It must be one the key can
                    reach. Left out: the key's user pays.
            examples:
              default:
                summary: A TikTok video, with a question
                value:
                  url: >-
                    https://www.tiktok.com/@haldencoffee/video/7345678901234567890
                  question: 'Turn it into slide text: 5 slides.'
                  workspace_id: 12
              library:
                summary: A video of the media library
                value:
                  media_id: 9052
                  workspace_id: 12
      responses:
        '200':
          description: What the video says and shows.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoAnalysis'
              examples:
                default:
                  summary: A TikTok video
                  value:
                    video:
                      url: >-
                        https://www.tiktok.com/@haldencoffee/video/7345678901234567890
                      media_id: null
                      source: tiktok
                      title: Three steps to a better pour-over at home
                      author: Halden Coffee
                      duration: 42.6
                    credits:
                      charged: 2
                      left: 238
                    answer: >-
                      Slide 1: A better pour-over in three steps. Slide 2: Weigh
                      15 g of coffee for 250 g of water. Slide 3: Bloom it for
                      30 seconds. Slide 4: Pour in slow circles. Slide 5: Try it
                      with our spring single origin.
                    summary: >-
                      A barista shows three steps to a better pour-over at home:
                      weigh the coffee, let it bloom, and pour slowly.
                    language: English
                    hook: >-
                      It opens on a bitter cup and says the fix takes three
                      steps.
                    key_points:
                      - Weigh the coffee and the water.
                      - Let the coffee bloom for 30 seconds.
                      - Pour in slow circles.
                    structure:
                      - at: '0:00'
                        part: hook
                        what: A bitter cup, and the promise of a fix.
                      - at: '0:05'
                        part: steps
                        what: The three steps, one by one.
                      - at: '0:38'
                        part: call to action
                        what: Asks viewers to try the spring single origin.
                    on_screen_text:
                      - at: '0:00'
                        text: Bitter pour-over?
                      - at: '0:05'
                        text: 1. Weigh it
                    scenes:
                      - at: '0:00'
                        shows: A barista tastes a cup and frowns.
                      - at: '0:05'
                        shows: Coffee being weighed on a scale.
                    transcript: >-
                      [0:00] Is your pour-over bitter? It takes three steps to
                      fix. [0:05] First, weigh your coffee: 15 grams for 250
                      grams of water.
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '402':
          description: >-
            The payer's AI credits don't cover a watch of this length. Nothing
            was watched or charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsufficientCreditsError'
              examples:
                insufficient_credits:
                  summary: Not enough credits
                  value:
                    message: >-
                      Not enough AI credits: this needs 2 and you have 1. Top up
                      your credits or upgrade your plan to continue.
                    error: insufficient_credits
                    credits_required: 2
                    credits_available: 1
        '403':
          description: >-
            The key lacks `media:read`, its user is inactive, or the payer is on
            the Free plan (`plan_limit_reached`, `limit: ai`). Nothing was
            watched or charged.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/PlanLimitError'
                  - $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks media:read
                  value:
                    message: >-
                      This API key does not have the "media:read" permission.
                      Edit the key in PostSyncer under Settings → API to grant
                      it.
                ai_paid:
                  summary: 'Free: watching videos is paid'
                  value:
                    message: This AI tool is part of the paid plans. Upgrade to use it.
                    owner_plan: false
                    error: plan_limit_reached
                    limit: ai
                    used: 0
                    allowed: 0
                    plan: free
                    resets_at: null
                    upgrade_url: >-
                      https://app.postsyncer.com/dashboard?action=settings&section=billing
                    upgrade_plan:
                      plan: starter-v2
                      name: Starter
                      monthly_price: 29
                      yearly_price: 24
                      accounts: 10
                      accounts_per_workspace: false
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
        '404':
          description: >-
            The post is private, was removed or doesn't exist (`code:
            post_unavailable`), or the library video isn't one the key can
            reach, or isn't in `workspace_id`.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/MediaDownloadError'
                  - $ref: '#/components/schemas/Error'
              examples:
                post_unavailable:
                  summary: The post can't be read
                  value:
                    message: The post is private, was removed, or does not exist.
                    code: post_unavailable
                not_found:
                  summary: No such library video
                  value:
                    message: Not found.
        '422':
          description: >-
            Neither or both of `url` and `media_id`; a `url` that isn't an http
            or https link or is longer than 2048 characters; a `question` longer
            than 2000 characters; a `workspace_id` the key can't reach; the post
            has no video; the library file isn't a video or is still being made;
            the video is longer than 10 minutes or bigger than 300 MB, its
            format can't be watched (MP4, MOV, WebM, AVI, MPEG, FLV, WMV and 3GP
            can) or its length can't be read; it couldn't be downloaded; the
            watch couldn't finish in time (try a shorter clip); the post can't
            be downloaded (`code`); or the AI declined (`ai_declined`). Nothing
            was charged.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationError'
                  - $ref: '#/components/schemas/MediaDownloadError'
                  - title: AI declined
                    allOf:
                      - $ref: '#/components/schemas/Error'
                      - type: object
                        required:
                          - error
                        properties:
                          error:
                            type: string
                            enum:
                              - ai_declined
              examples:
                neither:
                  summary: No url or media_id
                  value:
                    message: >-
                      Send the video's link as url, or a media library video as
                      media_id. (and 1 more error)
                    errors:
                      url:
                        - >-
                          Send the video's link as url, or a media library video
                          as media_id.
                      media_id:
                        - >-
                          Send the video's link as url, or a media library video
                          as media_id.
                both:
                  summary: Both url and media_id
                  value:
                    message: Send url or media_id, not both.
                    errors:
                      url:
                        - Send url or media_id, not both.
                url:
                  summary: Not an http or https link
                  value:
                    message: The url field must be a valid URL.
                    errors:
                      url:
                        - The url field must be a valid URL.
                url_too_long:
                  summary: A link over 2048 characters
                  value:
                    message: The url field must not be greater than 2048 characters.
                    errors:
                      url:
                        - >-
                          The url field must not be greater than 2048
                          characters.
                question_too_long:
                  summary: A question over 2000 characters
                  value:
                    message: >-
                      The question field must not be greater than 2000
                      characters.
                    errors:
                      question:
                        - >-
                          The question field must not be greater than 2000
                          characters.
                workspace_id:
                  summary: Not a workspace the key can reach
                  value:
                    message: 'Workspace #99 is invalid or you do not have access to it.'
                    errors:
                      workspace_id:
                        - >-
                          Workspace #99 is invalid or you do not have access to
                          it.
                too_long:
                  summary: Longer than 10 minutes
                  value:
                    message: >-
                      That video is about 14 minutes long. The longest video
                      that can be watched is 10 minutes.
                    errors:
                      video:
                        - >-
                          That video is about 14 minutes long. The longest video
                          that can be watched is 10 minutes.
                no_video:
                  summary: The post has no video
                  value:
                    message: That link has no video to watch.
                    errors:
                      url:
                        - That link has no video to watch.
                not_ready:
                  summary: The library video is still being made
                  value:
                    message: >-
                      That video is still being processed. Try again in a
                      minute.
                    errors:
                      media_id:
                        - >-
                          That video is still being processed. Try again in a
                          minute.
                no_time:
                  summary: The watch couldn't finish in time
                  value:
                    message: >-
                      This video is too long to watch in one go; try a shorter
                      clip.
                    errors:
                      video:
                        - >-
                          This video is too long to watch in one go; try a
                          shorter clip.
                login_required:
                  summary: The post needs a login
                  value:
                    message: The platform only shows this post to logged-in users.
                    code: login_required
                ai_declined:
                  summary: The AI declined
                  value:
                    error: ai_declined
                    message: >-
                      The AI won't write this. Try different wording. You
                      weren't charged.
        '429':
          description: >-
            More than 60 requests in a minute from this key's user (the API and
            the MCP server share the count), or the watch limit: the payer
            already has 2 watches running, or started 10 in the last minute.
            Nothing was charged. Wait `Retry-After` seconds.
          headers:
            Retry-After:
              description: >-
                Seconds to wait: from the request limit, or the watch limit (30
                while 2 watches are running).
              schema:
                type: integer
            X-RateLimit-Limit:
              description: Requests allowed a minute (the request limit only).
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left this minute (the request limit only).
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                When requests are allowed again, as a Unix timestamp (the
                request limit only).
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                too_many_attempts:
                  summary: Too many requests
                  value:
                    message: Too Many Attempts.
                busy:
                  summary: '2 watches running (Retry-After: 30)'
                  value:
                    message: >-
                      Two videos are already being watched for this account. Try
                      again when one of them is done.
                too_many:
                  summary: 10 watches this minute
                  value:
                    message: >-
                      Ten videos were watched for this account in the last
                      minute, the most there is. Try again in a minute.
        '503':
          description: >-
            The downloader (`code: unavailable`, with `Retry-After`) or the AI
            (`ai_unavailable`) couldn't do it just now. Nothing was charged; try
            again in a minute.
          headers:
            Retry-After:
              description: >-
                Seconds to wait before trying again (when the downloader is
                unavailable).
              schema:
                type: integer
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/MediaDownloadError'
                  - title: AI unavailable
                    allOf:
                      - $ref: '#/components/schemas/Error'
                      - type: object
                        required:
                          - error
                        properties:
                          error:
                            type: string
                            enum:
                              - ai_unavailable
              examples:
                downloader_unavailable:
                  summary: The downloader is unavailable
                  value:
                    message: The downloader is unavailable right now, try again later.
                    code: unavailable
                ai_unavailable:
                  summary: The AI is unavailable
                  value:
                    error: ai_unavailable
                    message: >-
                      The AI couldn't answer right now. Try again in a minute.
                      You weren't charged.
components:
  schemas:
    VideoAnalysis:
      type: object
      description: What a video says and shows.
      required:
        - video
        - credits
        - answer
        - summary
        - language
        - hook
        - key_points
        - structure
        - on_screen_text
        - scenes
        - transcript
      properties:
        video:
          type: object
          description: The video watched.
          required:
            - url
            - media_id
            - source
            - title
            - author
            - duration
          properties:
            url:
              type: string
              nullable: true
              description: The link sent; null for a library video.
            media_id:
              type: integer
              nullable: true
              description: The library video sent; null for a link.
            source:
              type: string
              nullable: true
              description: The network, like `tiktok`, or `media library`.
            title:
              type: string
              nullable: true
            author:
              type: string
              nullable: true
            duration:
              type: number
              description: The length in seconds.
        credits:
          type: object
          description: What this watch cost and what the payer has left.
          required:
            - charged
            - left
          properties:
            charged:
              type: integer
            left:
              type: integer
        answer:
          type: string
          nullable: true
          description: The answer to `question`; null when none was sent.
        summary:
          type: string
          description: What the video is about, in two or three sentences.
        language:
          type: string
          description: The language spoken.
        hook:
          type: string
          description: What the first seconds do to keep a viewer watching.
        key_points:
          type: array
          items:
            type: string
          description: The points it makes, in order.
        structure:
          type: array
          description: Its parts in order.
          items:
            type: object
            required:
              - at
              - part
              - what
            properties:
              at:
                type: string
                description: When, as `m:ss`.
              part:
                type: string
                description: Hook, problem, steps, call to action and the like.
              what:
                type: string
        on_screen_text:
          type: array
          description: Words written on screen.
          items:
            type: object
            required:
              - at
              - text
            properties:
              at:
                type: string
                description: When, as `m:ss`.
              text:
                type: string
        scenes:
          type: array
          description: What each shot shows.
          items:
            type: object
            required:
              - at
              - shows
            properties:
              at:
                type: string
                description: When, as `m:ss`.
              shows:
                type: string
        transcript:
          type: string
          description: >-
            Every word spoken, with `[m:ss]` marks; empty when nothing is
            spoken. It comes last, as the longest part.
    InsufficientCreditsError:
      type: object
      description: '402: the AI credits left don''t cover this.'
      required:
        - message
        - error
        - credits_required
        - credits_available
      properties:
        message:
          type: string
          description: What it needs, what is left, and what to do.
        error:
          type: string
          enum:
            - insufficient_credits
        credits_required:
          type: integer
          description: The credits this needs.
        credits_available:
          type: integer
          description: The credits left.
        free_plan:
          type: boolean
          enum:
            - true
          description: Only on the Free plan, whose credits come back each month.
        resets_at:
          type: string
          format: date-time
          description: 'Only on the Free plan: when its credits come back.'
    PlanLimitError:
      type: object
      description: >-
        403: the workspace owner's plan doesn't include this, or its limit is
        used up. Nothing was saved. `limit` says which.
      required:
        - message
        - owner_plan
        - error
        - limit
        - used
        - allowed
        - plan
        - resets_at
        - upgrade_url
        - upgrade_plan
      properties:
        message:
          type: string
          description: What the plan doesn't allow, and what to do.
        owner_plan:
          type: boolean
          description: >-
            True when the plan is someone else's (the key's user isn't the
            workspace owner): only the owner can change it, and `message` says
            to ask them.
        error:
          type: string
          enum:
            - plan_limit_reached
        limit:
          type: string
          enum:
            - accounts
            - posts
            - workspaces
            - team
            - labels
            - campaigns
            - ai
            - moderation
            - contacts
            - crm
            - products
            - analytics
            - free_accounts
          description: >-
            What ran out: `accounts`, `posts` (this month's posts) and
            `workspaces` are counted; `free_accounts` is a post to an account
            other than the 2 a Free owner posts to outside a first week (the
            account's `plan_allows_posting` is `false`); `team`, `labels`,
            `campaigns`, `ai`, `moderation` (comment moderation), `contacts`
            (contact collection), `crm` (contacts and contact lists) and
            `products` are on paid plans only. `analytics` (more than the last 7
            days) comes from the app only: API v1 and MCP don't refuse analytics
            on Free, they keep the numbers to the last 7 days, outside an
            owner's first week, and say so in `range_limited`.
        used:
          type: integer
          description: How much of the limit is used; 0 for a paid-plan feature.
        allowed:
          type: integer
          description: What the plan allows; 0 for a paid-plan feature.
        plan:
          type: string
          description: The owner's plan, like `free`.
        resets_at:
          type: string
          format: date-time
          nullable: true
          description: When a monthly limit starts again; null for the others.
        upgrade_url:
          type: string
          nullable: true
          description: Where the owner picks a plan; null when the plan is someone else's.
        upgrade_plan:
          type: object
          nullable: true
          description: >-
            The smallest plan that lifts the limit; null when the plan is
            someone else's or no plan lifts it.
          required:
            - plan
            - name
            - monthly_price
            - yearly_price
            - accounts
            - accounts_per_workspace
          properties:
            plan:
              type: string
              description: The plan's key.
            name:
              type: string
              description: The plan's name.
            monthly_price:
              type: integer
            yearly_price:
              type: integer
            accounts:
              type: integer
              description: The social accounts the plan includes.
            accounts_per_workspace:
              type: boolean
              description: True when `accounts` counts per workspace rather than in all.
    Error:
      type: object
      description: >-
        An error answer. Every one has `message`, in plain words; some add an
        `error` code and fields of their own.
      required:
        - message
      properties:
        message:
          type: string
          description: What went wrong and what to do about it.
        error:
          type: string
          description: >-
            A code a few errors add, such as `rate_limited`. See [Handle
            errors](/essentials/error-handling#answers-with-an-error-code).
    MediaDownloadError:
      type: object
      title: Download error
      description: A social post that couldn't be read.
      required:
        - message
        - code
      properties:
        message:
          type: string
          description: Why, in words to show a person.
        code:
          type: string
          description: >-
            Why, as a code: `post_unavailable` (404); `invalid_url`,
            `blocked_address`, `login_required`, `geo_restricted`,
            `link_expired`, `unsupported_url`, `no_media`, `live_not_supported`,
            `file_too_large` or `platform_error` (422); `unavailable` (503).
    ValidationError:
      type: object
      description: '422: the request didn''t pass validation, and nothing changed.'
      required:
        - message
        - errors
      properties:
        message:
          type: string
          description: >-
            The first error and, when there are more, how many: `(and 1 more
            error)`, `(and 2 more errors)`.
        errors:
          type: object
          description: >-
            The messages, by field. A field inside a list is named with dots:
            `accounts.0.id`.
          additionalProperties:
            type: array
            items:
              type: string
  responses:
    Unauthorized401:
      description: No API key, or not a valid one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthenticated:
              summary: No valid API key
              value:
                message: Unauthenticated.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.