SendSeven GmbH Media Gallery API
The Media Gallery API from SendSeven GmbH — 4 operation(s) for media gallery.
The Media Gallery API from SendSeven GmbH — 4 operation(s) for media gallery.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/sendseven-com:sendseven-com-media-gallery-api"
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.
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: 3.2.0
info:
title: SendSeven Media Gallery API
description: Unified messaging API for WhatsApp, Telegram, SMS, and more
version: '20261124.1227'
servers:
- url: https://api.sendseven.com
description: Production
tags:
- name: Media Gallery
paths:
/api/v1/media-gallery:
get:
tags:
- Media Gallery
summary: List Media Assets
description: 'List gallery assets (excludes archived by default).
Returns the unified ``{items, pagination}`` shape. Each item carries BOTH
the durable ``attachment_id`` and a fresh ``url``. Every filter —
``archived``, ``favorites_only``, ``media_type``, ``tag`` and ``query``
search — composes with AND and with pagination (e.g.
``?archived=only&favorites_only=true`` = archived favorites).
**Required Scopes:** `media_gallery:read`'
operationId: list_media_assets_api_v1_media_gallery_get
security:
- HTTPBearer: []
parameters:
- name: query
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Match display_name or description
title: Query
description: Match display_name or description
- name: tag
in: query
required: false
schema:
anyOf:
- type: array
items:
type: string
- type: 'null'
description: Filter by tag. Repeat the param for multi-tag AND (asset must carry every tag), e.g. ?tag=logo&tag=2024.
title: Tag
description: Filter by tag. Repeat the param for multi-tag AND (asset must carry every tag), e.g. ?tag=logo&tag=2024.
- name: media_type
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: 'Filter by media type: image | video | document'
title: Media Type
description: 'Filter by media type: image | video | document'
- name: favorites_only
in: query
required: false
schema:
type: boolean
description: When true, return only assets marked as favorite.
default: false
title: Favorites Only
description: When true, return only assets marked as favorite.
- name: archived
in: query
required: false
schema:
$ref: '#/components/schemas/MediaArchivedFilter'
description: 'Archive-status view: ''active'' (default) = non-archived only (unchanged behavior); ''only'' = archived-only (the dedicated Archived tab, for recovering an accidentally-archived asset); ''all'' = unified active + archived.'
default: active
description: 'Archive-status view: ''active'' (default) = non-archived only (unchanged behavior); ''only'' = archived-only (the dedicated Archived tab, for recovering an accidentally-archived asset); ''all'' = unified active + archived.'
- name: page
in: query
required: false
schema:
type: integer
minimum: 1
default: 1
title: Page
- name: page_size
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 20
title: Page Size
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- Media Gallery
summary: Create Media Asset
description: 'Save an already-stored attachment into the gallery.
Re-verifies the attachment belongs to the caller''s tenant before insert
(never trusts a client-supplied ``attachment_id``); derives
``media_type``/``content_type``/``file_size`` from the attachment and
validates the type/size caps.
**Required Scopes:** `media_gallery:create`'
operationId: create_media_asset_api_v1_media_gallery_post
security:
- HTTPBearer: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MediaGalleryCreateRequest'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MediaGalleryAssetResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/media-gallery/{asset_id}:
patch:
tags:
- Media Gallery
summary: Update Media Asset
description: 'Update a gallery asset. Providing ``tags`` REPLACES the full tag set.
**Required Scopes:** `media_gallery:update`'
operationId: update_media_asset_api_v1_media_gallery__asset_id__patch
security:
- HTTPBearer: []
parameters:
- name: asset_id
in: path
required: true
schema:
type: string
title: Asset Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/MediaGalleryUpdateRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MediaGalleryAssetResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Media Gallery
summary: Delete Media Asset
description: 'Hard-delete a gallery asset (tags cascade). The underlying attachment is
NOT deleted.
**Required Scopes:** `media_gallery:delete`'
operationId: delete_media_asset_api_v1_media_gallery__asset_id__delete
security:
- HTTPBearer: []
parameters:
- name: asset_id
in: path
required: true
schema:
type: string
title: Asset Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MediaGalleryDeleteResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/media-gallery/{asset_id}/favorite:
post:
tags:
- Media Gallery
summary: Favorite Media Asset
description: 'Mark a gallery asset as a favorite (idempotent one-tap toggle).
Returns the updated asset. Surface favorites via the list endpoint''s
``?favorites_only=true`` filter.
**Required Scopes:** `media_gallery:update`'
operationId: favorite_media_asset_api_v1_media_gallery__asset_id__favorite_post
security:
- HTTPBearer: []
parameters:
- name: asset_id
in: path
required: true
schema:
type: string
title: Asset Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MediaGalleryAssetResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Media Gallery
summary: Unfavorite Media Asset
description: 'Remove a gallery asset''s favorite mark (idempotent one-tap toggle).
Returns the updated asset.
**Required Scopes:** `media_gallery:update`'
operationId: unfavorite_media_asset_api_v1_media_gallery__asset_id__favorite_delete
security:
- HTTPBearer: []
parameters:
- name: asset_id
in: path
required: true
schema:
type: string
title: Asset Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MediaGalleryAssetResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/media-gallery/{asset_id}/thumbnail:
post:
tags:
- Media Gallery
summary: Request Media Thumbnail
description: 'Lazily generate a thumbnail for an asset that has none (generate-on-view).
Idempotent and cheap: if the asset already has a thumbnail (or is a
document) this just returns it. Otherwise it de-dupes concurrent callers
(Redis claim) and enqueues a single background generation job, returning the
asset immediately with its current ``url`` — the generated ``thumbnail_url``
appears on the next list/refresh. Safe for the gallery/picker to call once
per visible thumbnail-less card.
**Required Scopes:** `media_gallery:read`'
operationId: request_media_thumbnail_api_v1_media_gallery__asset_id__thumbnail_post
security:
- HTTPBearer: []
parameters:
- name: asset_id
in: path
required: true
schema:
type: string
title: Asset Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/MediaGalleryAssetResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
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
MediaGalleryAssetResponse:
properties:
id:
type: string
title: Id
description: Gallery asset id (media_assets.id)
attachment_id:
type: string
title: Attachment Id
description: Durable reference to the stored attachment (attachments.id)
url:
type: string
title: Url
description: Fresh, usable download/preview URL for the attachment. May expire — persist attachment_id, not this.
thumbnail_url:
anyOf:
- type: string
- type: 'null'
title: Thumbnail Url
description: Fresh, ready-to-render thumbnail URL (small image/video poster). Generated asynchronously after upload and on lazy view; null while generation is pending or for documents. May expire — do not persist.
display_name:
type: string
title: Display Name
description: Human-friendly asset name
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Optional longer description
media_type:
type: string
title: Media Type
description: image | video | document
content_type:
type: string
title: Content Type
description: MIME type of the underlying attachment
file_size:
anyOf:
- type: integer
- type: 'null'
title: File Size
description: Size in bytes (may be null)
tags:
items:
type: string
type: array
title: Tags
description: Normalized lowercase tags
is_favorite:
type: boolean
title: Is Favorite
description: Whether the asset is marked as a favorite by the tenant
default: false
created_at:
type: string
format: date-time
title: Created At
description: When the asset was saved to the gallery
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
description: Last outbound reuse; null if never reused
type: object
required:
- id
- attachment_id
- url
- display_name
- media_type
- content_type
- created_at
title: MediaGalleryAssetResponse
description: 'One gallery asset as returned to any client (list item AND single).
``attachment_id`` is the DURABLE reference (persist this for later sends);
``url`` is a FRESH, ready-to-render download/preview URL for the underlying
attachment and may change/expire — never persist ``url``.'
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
MediaArchivedFilter:
type: string
enum:
- active
- only
- all
title: MediaArchivedFilter
description: "Archive-status filter for the gallery list endpoint.\n\n* ``active`` (DEFAULT) — only non-archived assets (unchanged legacy behavior).\n* ``only`` — ONLY archived assets (the dedicated \"Archived\" tab; archived-only,\n NOT mixed with active — this is what makes an accidentally-archived asset\n recoverable from the UI).\n* ``all`` — no archive filter (unified view: active + archived together)."
MediaGalleryUpdateRequest:
properties:
display_name:
anyOf:
- type: string
maxLength: 255
minLength: 1
- type: 'null'
title: Display Name
description:
anyOf:
- type: string
maxLength: 10000
- type: 'null'
title: Description
tags:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Tags
description: Full replacement tag set (normalized on save)
is_archived:
anyOf:
- type: boolean
- type: 'null'
title: Is Archived
description: Soft-archive toggle; archived assets drop out of the default list
is_favorite:
anyOf:
- type: boolean
- type: 'null'
title: Is Favorite
description: Favorite toggle; surface with the ?favorites_only=true list filter
type: object
title: MediaGalleryUpdateRequest
description: 'Patch a gallery asset. All fields optional; only provided fields change.
``tags`` (when provided) REPLACES the full tag set (delete + insert).'
MediaGalleryDeleteResponse:
properties:
success:
type: boolean
title: Success
default: true
id:
type: string
title: Id
type: object
required:
- id
title: MediaGalleryDeleteResponse
description: Unified DELETE envelope.
MediaGalleryCreateRequest:
properties:
attachment_id:
type: string
title: Attachment Id
description: Id of an attachment the caller's tenant already owns
display_name:
type: string
maxLength: 255
minLength: 1
title: Display Name
description:
anyOf:
- type: string
maxLength: 10000
- type: 'null'
title: Description
tags:
items:
type: string
type: array
title: Tags
description: Tags; normalized to lowercase, trimmed, deduped on save
type: object
required:
- attachment_id
- display_name
title: MediaGalleryCreateRequest
description: Save an already-stored attachment into the gallery (authenticated app).
securitySchemes:
HTTPBearer:
type: http
scheme: bearer