interface APIUnfurledMediaItem {
    attachment_id?: string;
    content_type?: null | string;
    flags?: number;
    height?: null | number;
    loading_state?: UnfurledMediaItemLoadingState;
    placeholder?: null | string;
    placeholder_version?: null | number;
    proxy_url?: string;
    url: string;
    width?: null | number;
}

Properties

attachment_id?: string

The id of the uploaded attachment. This field is ignored and provided by the API as part of the response

content_type?: null | string

The media type of the content. This field is ignored and provided by the API as part of the response

flags?: number
height?: null | number

The height of the media item. This field is ignored and provided by the API as part of the response

placeholder?: null | string
placeholder_version?: null | number
proxy_url?: string

The proxied url of the media item. This field is ignored and provided by the API as part of the response

url: string

Supports arbitrary urls and attachment:// references

width?: null | number

The width of the media item. This field is ignored and provided by the API as part of the response