# Create linkshortening messaging service **POST /v1/LinkShortening/Domains/{DomainSid}/MessagingServices/{MessagingServiceSid}** ## Servers - https://messaging.twilio.com: https://messaging.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Path parameters - **DomainSid** (string) The domain SID to associate with a messaging service. With URL shortening enabled, links in messages sent with the associated messaging service will be shortened to the provided domain - **MessagingServiceSid** (string) A messaging service SID to associate with a domain. With URL shortening enabled, links in messages sent with the provided messaging service will be shortened to the associated domain ## Responses ### 201 Created #### Headers - **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 #### Body: application/json (object) - **domain_sid** (string | null) The unique string identifies the domain resource - **messaging_service_sid** (string | null) The unique string that identifies the messaging service - **url** (string(uri) | null) [Powered by Bump.sh](https://bump.sh)