Fetch linkshortening messaging service domain association

GET /v1/LinkShortening/MessagingServices/{MessagingServiceSid}/Domain

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}$.

    • 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}$.

    • url string(uri) | null
GET /v1/LinkShortening/MessagingServices/{MessagingServiceSid}/Domain
curl \
 --request GET 'https://messaging.twilio.com/v1/LinkShortening/MessagingServices/{MessagingServiceSid}/Domain' \
 --user "username:password"
Response examples (200)
{
  "url": "https://messaging.twilio.com/v1/LinkShortening/MessagingServices/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Domain",
  "domain_sid": "DNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}