POST
/
link
/
create
curl --request POST \
  --url https://api.bsy.sh/v1/link/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "domain": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "long_url": "<string>",
  "favicon": "<string>",
  "title": "<string>",
  "custom_link": "<string>",
  "tags": [
    "<string>"
  ],
  "has_utm": true,
  "utm_source": "<string>",
  "utm_medium": "<string>",
  "utm_campaign": "<string>",
  "utm_term": "<string>",
  "utm_content": "<string>",
  "has_opengraph": true,
  "meta_title": "<string>",
  "meta_description": "<string>",
  "meta_image": "<string>",
  "has_android_targeting": true,
  "android_target_url": "<string>",
  "has_ios_targeting": true,
  "ios_target_url": "<string>",
  "has_windows_targeting": true,
  "windows_target_url": "<string>",
  "has_linux_targeting": true,
  "linux_target_url": "<string>",
  "has_geo_targeting": true,
  "geo_targets": [
    {
      "country_id": "AD",
      "target_url": "<string>"
    }
  ],
  "has_cloaking": true,
  "has_password": true,
  "password": "<string>",
  "password_logo": "<string>",
  "has_expiration": true,
  "expiration": "2023-11-07T05:31:56Z",
  "expiration_clicks": "<string>"
}'
{
  "status": "success",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "long_url": "<string>",
    "bitsy_url": "<string>",
    "custom_url": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create a new Bitsy Link

The body is of type object.

Response

201
application/json

Bitsy Link success response

The response is of type object.