Chatty Analytics Media Library API

The Media Library API from Chatty Analytics — 5 operation(s) for media library.

GitHub OpenAPI

Operations 7

GET /company/{company_id}/media/assets List Media Assets #
POST /company/{company_id}/media/assets/upload Upload Media Asset #
POST /company/{company_id}/media/assets/{asset_id}/normalization_result Video Normalization Result #
POST /company/{company_id}/media/assets/save Save Media Asset #
GET /company/{company_id}/media/assets/{asset_id} Get Media Asset #
PATCH /company/{company_id}/media/assets/{asset_id} Patch Media Asset #
DELETE /company/{company_id}/media/assets/{asset_id} Delete Media Asset #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/letschatty-com:letschatty-com-media-library-api"
All apis
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.

Get an API 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 Specification

letschatty-com-media-library-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Letschatty Com Media Library API
  version: '4.0'
  description: 'Operations tagged Media Library across 2 of this provider''s published API definitions: openapi.json, letschatty-com-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Media Library
paths:
  /company/{company_id}/media/assets:
    get:
      tags:
      - Media Library
      summary: List Media Assets
      operationId: list_media_assets_company__company_id__media_assets_get
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Type
      - name: folder
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Folder
      - name: origin
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Origin
      - name: starred
        in: query
        required: false
        schema:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Starred
      - name: uploaded_by
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Uploaded By
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
      - name: cursor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Cursor
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /company/{company_id}/media/assets/upload:
    post:
      tags:
      - Media Library
      summary: Upload Media Asset
      operationId: upload_media_asset_company__company_id__media_assets_upload_post
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_upload_media_asset_company__company_id__media_assets_upload_post'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /company/{company_id}/media/assets/{asset_id}/normalization_result:
    post:
      tags:
      - Media Library
      summary: Video Normalization Result
      description: 'Callback from the video-normalizer lambda. x-api-key, not a user token.


        Deliberately not guarded by AuthDep: the caller is a lambda, not a person. Same

        x-api-key shape the other machine-to-machine webhooks use (see chat.py).'
      operationId: video_normalization_result_company__company_id__media_assets__asset_id__normalization_result_post
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /company/{company_id}/media/assets/save:
    post:
      tags:
      - Media Library
      summary: Save Media Asset
      description: 'Promote an existing file (received or conversation-sent) into the library,

        keeping provenance (origin=received + source chat/message for customer files).'
      operationId: save_media_asset_company__company_id__media_assets_save_post
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /company/{company_id}/media/assets/{asset_id}:
    get:
      tags:
      - Media Library
      summary: Get Media Asset
      operationId: get_media_asset_company__company_id__media_assets__asset_id__get
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Media Library
      summary: Patch Media Asset
      operationId: patch_media_asset_company__company_id__media_assets__asset_id__patch
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Media Library
      summary: Delete Media Asset
      description: 'Tombstone the row (deleted_at) and hard-delete the S3 object to free space.

        Messages that embedded the URL will show broken media — same as the legacy delete.'
      operationId: delete_media_asset_company__company_id__media_assets__asset_id__delete
      parameters:
      - name: company_id
        in: path
        required: true
        schema:
          type: string
          title: Company Id
      - name: asset_id
        in: path
        required: true
        schema:
          type: string
          title: Asset Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UploadPurpose:
      type: string
      enum:
      - library
      - conversation
      - user_profile
      title: UploadPurpose
    Body_upload_media_asset_company__company_id__media_assets_upload_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        purpose:
          $ref: '#/components/schemas/UploadPurpose'
          default: library
        folder:
          anyOf:
          - type: string
          - type: 'null'
          title: Folder
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
      type: object
      required:
      - file
      title: Body_upload_media_asset_company__company_id__media_assets_upload_post
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
x-refined-from:
- openapi.json
- letschatty-com-openapi.json