Skip to content

Twilio: Media instance schemas

1 Twilio schema with complete fields and constraints.

โ† Media instance operations ยท All schemas

Fetch a single Media resource associated with a specific Message resource โ€” response body

FieldTypePresenceDescription and constraints
$objectRoot
account_sidJSONOptional
account_sid (anyOf 1)stringAlternativeThe SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this Media resource.
Maximum length: 34
Minimum length: 34
Pattern: ^AC[0-9a-fA-F]{32}$
account_sid (anyOf 2)nullAlternative
content_typeJSONOptional
content_type (anyOf 1)stringAlternativeThe default [MIME type](https://en.wikipedia.org/wiki/Internet_media_type) of the media, for example `image/jpeg`, `image/png`, or `image/gif`.
content_type (anyOf 2)nullAlternative
date_createdJSONOptional
date_created (anyOf 1)stringAlternativeThe date and time in GMT when this Media resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
Format: date-time-rfc-2822
date_created (anyOf 2)nullAlternative
date_updatedJSONOptional
date_updated (anyOf 1)stringAlternativeThe date and time in GMT when this Media resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
Format: date-time-rfc-2822
date_updated (anyOf 2)nullAlternative
parent_sidJSONOptional
parent_sid (anyOf 1)stringAlternativeThe SID of the Message resource that is associated with this Media resource.
Maximum length: 34
Minimum length: 34
Pattern: ^(SM|MM)[0-9a-fA-F]{32}$
parent_sid (anyOf 2)nullAlternative
sidJSONOptional
sid (anyOf 1)stringAlternativeThe unique string that identifies this Media resource.
Maximum length: 34
Minimum length: 34
Pattern: ^ME[0-9a-fA-F]{32}$
sid (anyOf 2)nullAlternative
uriJSONOptional
uri (anyOf 1)stringAlternativeThe URI of this Media resource, relative to `https://api.twilio.com`.
uri (anyOf 2)nullAlternative

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.