Fetch domain config messaging service

GET /v1/LinkShortening/MessagingService/{MessagingServiceSid}/DomainConfig

Path parameters

  • MessagingServiceSid string Required

    Unique string used to identify the Messaging service that this domain should be associated with.

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

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • domain_sid string | null

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

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

    • config_sid string | null

      The unique string that we created to identify the Domain config (prefix ZK).

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

    • messaging_service_sid string | null

      The unique string that identifies the messaging service

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

    • fallback_url string(uri) | null

      Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.

    • callback_url string(uri) | null

      URL to receive click events to your webhook whenever the recipients click on the shortened links.

    • continue_on_failure boolean | null

      Boolean field to set customer delivery preference when there is a failure in linkShortening service

    • date_created string(date-time) | null

      Date this Domain Config was created.

    • date_updated string(date-time) | null

      Date that this Domain Config was last updated.

    • url string(uri) | null
GET /v1/LinkShortening/MessagingService/{MessagingServiceSid}/DomainConfig
curl \
 --request GET 'https://messaging.twilio.com/v1/LinkShortening/MessagingService/{MessagingServiceSid}/DomainConfig' \
 --user "username:password"
Response examples (200)
{
  "url": "https://messaging.twilio.com/v1/LinkShortening/MessagingService/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DomainConfig",
  "config_sid": "ZKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "domain_sid": "DNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "callback_url": "https://www.example.com",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "fallback_url": "https://www.example.com",
  "continue_on_failure": true,
  "messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}