Retrieve a list of Contents belonging to the account used to make the request

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://twilio.demo.bump-doc.com/doc/content_v2/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"content_v2 MCP server": {
  "url": "https://twilio.demo.bump-doc.com/doc/content_v2/mcp"
}
Close
GET /v2/Content

A Content resource represents rich messaging content.

Retrieve a list of Contents belonging to the account used to make the request

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

  • Page integer

    The page index. This value is simply for client state.

    Minimum value is 0.

  • PageToken string

    The page token. This is provided by the API.

  • SortByDate string

    Whether to sort by ascending or descending date updated

  • SortByContentName string

    Whether to sort by ascending or descending content name

  • DateCreatedAfter string(date-time)

    Filter by >=[date-time]

  • DateCreatedBefore string(date-time)

    Filter by <=[date-time]

  • ContentName string

    Filter by Regex Pattern in content name

  • Content string

    Filter by Regex Pattern in template content

  • Language array[string]

    Filter by array of valid language(s)

  • ContentType array[string]

    Filter by array of contentType(s)

  • ChannelEligibility array[string]

    Filter by array of ChannelEligibility(s), where ChannelEligibility=:

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • contents array[object]
      Hide contents attributes Show contents attributes object
      • date_created string(date-time) | null

        The date and time in GMT that the resource was created specified in RFC 2822 format.

      • date_updated string(date-time) | null

        The date and time in GMT that the resource was last updated specified in RFC 2822 format.

      • sid string | null

        The unique string that that we created to identify the Content resource.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^HX[0-9a-fA-F]{32}$.

      • account_sid string | null

        The SID of the Account that created Content resource.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • friendly_name string | null

        A string name used to describe the Content resource. Not visible to the end recipient.

      • language string | null

        Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in.

      • variables object | null

        Defines the default placeholder values for variables included in the Content resource. e.g. {"1": "Customer_Name"}.

      • types object | null

        The Content types (e.g. twilio/text) for this Content resource.

      • url string(uri) | null

        The URL of the resource, relative to https://content.twilio.com.

    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri) | null
      • page integer
      • page_size integer
      • previous_page_url string(uri) | null
      • url string(uri)
GET /v2/Content
curl \
 --request GET 'https://content.twilio.com/v2/Content' \
 --user "username:password"
Response examples (200)
{
  "contents": [],
  "meta": {
    "page": 0,
    "page_size": 10,
    "first_page_url": "https://content.twilio.com/v2/Content?PageSize=10&Page=0",
    "previous_page_url": null,
    "url": "https://content.twilio.com/v2/Content?PageSize=10&Page=0",
    "next_page_url": null,
    "key": "contents"
  }
}
{
  "contents": [
    {
      "sid": "HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "friendly_name": "Some content",
      "language": "en",
      "variables": {
        "name": "foo"
      },
      "types": {
        "twilio/text": {
          "body": "Foo Bar Co is located at 39.7392, 104.9903"
        },
        "twilio/location": {
          "longitude": 104.9903,
          "latitude": 39.7392,
          "label": "Foo Bar Co"
        }
      },
      "url": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "date_created": "2015-07-30T19:00:00Z",
      "date_updated": "2015-07-30T19:00:00Z",
      "links": {
        "approval_create": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests/whatsapp",
        "approval_fetch": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests"
      }
    },
    {
      "sid": "HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "friendly_name": "Anotha content",
      "language": "en",
      "variables": {
        "name": "foo"
      },
      "types": {
        "twilio/text": {
          "body": "Foo Bar Co is located at 39.7392, 104.9903"
        },
        "twilio/location": {
          "longitude": 104.9903,
          "latitude": 39.7392,
          "label": "Foo Bar Co"
        }
      },
      "url": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "date_created": "2015-07-30T19:00:00Z",
      "date_updated": "2015-07-30T19:00:00Z",
      "links": {
        "approval_create": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests/whatsapp",
        "approval_fetch": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests"
      }
    },
    {
      "sid": "HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "friendly_name": "Third content",
      "language": "en",
      "variables": {
        "name": "foo"
      },
      "types": {
        "twilio/text": {
          "body": "Foo Bar Co is located at 39.7392, 104.9903"
        },
        "twilio/location": {
          "longitude": 104.9903,
          "latitude": 39.7392,
          "label": "Foo Bar Co"
        }
      },
      "url": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "date_created": "2015-07-30T19:00:00Z",
      "date_updated": "2015-07-30T19:00:00Z",
      "links": {
        "approval_create": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests/whatsapp",
        "approval_fetch": "https://content.twilio.com/v1/Content/HXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ApprovalRequests"
      }
    }
  ],
  "meta": {
    "page": 0,
    "page_size": 20,
    "first_page_url": "https://content.twilio.com/v2/Content?PageSize=20&Page=0",
    "previous_page_url": null,
    "url": "https://content.twilio.com/v2/Content?PageSize=20&Page=0",
    "next_page_url": null,
    "key": "contents"
  }
}