Twilio Media API

Manage media attachments for MMS messages

Operations 3

GET /Accounts/{AccountSid}/Messages/{MessageSid}/Media.json Twilio List Media for a Message #
GET /Accounts/{AccountSid}/Messages/{MessageSid}/Media/{MediaSid}.json Twilio Fetch a Media Resource #
DELETE /Accounts/{AccountSid}/Messages/{MessageSid}/Media/{MediaSid}.json Twilio Delete a Media Resource #

Documentation

Specifications

Other Resources

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/twilio-media-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

twilio-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Twilio Messaging Media API
  description: Send and receive SMS and MMS messages globally using Twilio's Messaging API. Supports programmable messaging, messaging services, alphanumeric sender IDs, A2P 10DLC registration, toll-free verification, and link shortening.
  version: '2.0'
  contact:
    name: Twilio Support
    url: https://support.twilio.com
    email: support@twilio.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: https://www.twilio.com/legal/tos
servers:
- url: https://api.twilio.com/2010-04-01
  description: Twilio REST API v1
- url: https://messaging.twilio.com/v1
  description: Twilio Messaging Service API
security:
- accountSid_authToken: []
tags:
- name: Media
  description: Manage media attachments for MMS messages
paths:
  /Accounts/{AccountSid}/Messages/{MessageSid}/Media.json:
    get:
      operationId: listMedia
      summary: Twilio List Media for a Message
      description: Retrieve a list of media associated with an MMS message.
      tags:
      - Media
      parameters:
      - $ref: '#/components/parameters/AccountSid'
      - $ref: '#/components/parameters/MessageSid'
      - name: PageSize
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      responses:
        '200':
          description: List of media resources
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaList'
        '401':
          description: Unauthorized
  /Accounts/{AccountSid}/Messages/{MessageSid}/Media/{MediaSid}.json:
    get:
      operationId: fetchMedia
      summary: Twilio Fetch a Media Resource
      description: Retrieve a specific media resource associated with a message.
      tags:
      - Media
      parameters:
      - $ref: '#/components/parameters/AccountSid'
      - $ref: '#/components/parameters/MessageSid'
      - name: MediaSid
        in: path
        required: true
        schema:
          type: string
          pattern: ^ME[0-9a-fA-F]{32}$
      responses:
        '200':
          description: Media resource details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaResource'
        '401':
          description: Unauthorized
        '404':
          description: Media not found
    delete:
      operationId: deleteMedia
      summary: Twilio Delete a Media Resource
      tags:
      - Media
      parameters:
      - $ref: '#/components/parameters/AccountSid'
      - $ref: '#/components/parameters/MessageSid'
      - name: MediaSid
        in: path
        required: true
        schema:
          type: string
          pattern: ^ME[0-9a-fA-F]{32}$
      responses:
        '204':
          description: Media deleted
        '404':
          description: Media not found
components:
  parameters:
    MessageSid:
      name: MessageSid
      in: path
      required: true
      description: The unique identifier of the message
      schema:
        type: string
        pattern: ^(SM|MM)[0-9a-fA-F]{32}$
    AccountSid:
      name: AccountSid
      in: path
      required: true
      description: The unique identifier of the Twilio account
      schema:
        type: string
        pattern: ^AC[0-9a-fA-F]{32}$
  schemas:
    MediaResource:
      type: object
      properties:
        sid:
          type: string
          pattern: ^ME[0-9a-fA-F]{32}$
          description: Unique identifier for the media resource
        account_sid:
          type: string
          pattern: ^AC[0-9a-fA-F]{32}$
        parent_sid:
          type: string
          description: SID of the parent message
        content_type:
          type: string
          description: MIME type of the media
        date_created:
          type: string
          format: date-time
        date_updated:
          type: string
          format: date-time
        uri:
          type: string
    MediaList:
      type: object
      properties:
        media_list:
          type: array
          items:
            $ref: '#/components/schemas/MediaResource'
        page:
          type: integer
        page_size:
          type: integer
        uri:
          type: string
  securitySchemes:
    accountSid_authToken:
      type: http
      scheme: basic
      description: Use your Twilio Account SID as the username and Auth Token as the password for HTTP Basic authentication.
externalDocs:
  description: Twilio Messaging API Documentation
  url: https://www.twilio.com/docs/messaging/api