Shorten a Link
POST {{baseUrl}}/shorten
Converts a long url to a Bitlink. You may see errors returned from this endpoint - BRANDED_LINK_MONTHLY_LIMIT_EXCEEDED
occurs if you have shortened more links than your account is configured for for the month, and DNS_CONFIGURATION_ERROR
occurs if you are attempting to shorten links against a custom domain which doesn't have DNS properly configured.
Request Body
{"group_guid"=>"{{groupGUID}}", "domain"=>"bit.ly", "long_url"=>"https://dev.bitly.com"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"references":{"eu_6":"ullamco velit"},"archived":false,"tags":["commodo nulla","dolor culpa veniam"],"created_at":"ipsum dolore","deeplinks":[{"bitlink":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"install_url":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"created":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"app_uri_path":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"modified":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"install_type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"app_guid":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"guid":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"os":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"brand_guid":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"bitlink":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"install_url":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"created":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"app_uri_path":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"modified":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"install_type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"app_guid":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"guid":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"os":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"brand_guid":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"long_url":"ut incididunt","custom_bitlinks":["commodo veniam elit","pariatur Lorem mini"],"link":"sunt","id":"ut"}