Admiral Media API

The media API from Admiral — 3 operation(s) for media.

GitHub OpenAPI

Operations 3

GET /accounts/{account_id}/media List Media #
GET /accounts/{account_id}/media/{media_id} Get Media #
POST /accounts/{account_id}/media/reference Upload Reference Image #

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/meetadmiral-com:meetadmiral-com-media-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

meetadmiral-com-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Admiral Media API
  version: 0.1.0
tags:
- name: Media
paths:
  /accounts/{account_id}/media:
    get:
      tags:
      - Media
      summary: List Media
      description: 'The Studio gallery: every image generated for this account, newest

        first, each carrying a fresh presigned URL. A bucket that isn''t

        configured degrades to null urls rather than a broken page — the rows

        (and their prompts) are still real history.'
      operationId: list_media_accounts__account_id__media_get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /accounts/{account_id}/media/{media_id}:
    get:
      tags:
      - Media
      summary: Get Media
      operationId: get_media_accounts__account_id__media__media_id__get
      parameters:
      - name: media_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Media Id
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /accounts/{account_id}/media/reference:
    post:
      tags:
      - Media
      summary: Upload Reference Image
      description: 'Upload a brand asset (logo, product photo) as a reference image —

        a `media` row with kind="reference", the same S3-backed store as

        generated creative. Later generation calls pass its id back as one of

        up to 3 `reference_media_ids` (app/ai/creative_image.py) so on-brand

        output is conditioned on it. Flag-gated on the same creative_gen flag

        as generation: a reference with nothing to feed isn''t worth exposing.'
      operationId: upload_reference_image_accounts__account_id__media_reference_post
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadReferenceRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UploadReferenceRequest:
      properties:
        data:
          type: string
          title: Data
        content_type:
          type: string
          title: Content Type
      type: object
      required:
      - data
      - content_type
      title: UploadReferenceRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError