Creating Quick Links using the Branch HTTP API?

The links created using the Branch.io HTTP API do not appear as Quick Links in the Branch portal. The Quick Links are convenient as they show 'Clicks', 'Opens' and more in one view

API for creating links: link-create

Does anyone know if this is possible?

Upvotes: 3

Views: 2330

Answers (1)

Links created via the API and SDK do not appear as Quick Links on the Branch Dashboard by default.

If you want them to appear as Quick Links on the Branch dashboard, please add type=2 to the payload root and $marketing_title="some text" to the data object on the request payload.

e.g.:

curl -XPOST https://api.branch.io/v1/url \
  -d '{
  "branch_key": "key_live_kaFuWw8WvY7yn1d9yYiP8gokwqjV0Swt",
  "channel": "facebook",
  "feature": "onboarding",
  "campaign": "new product",
  "stage": "new user",
  "tags": ["one", "two", "three"],
  "type": 2,
  "data": {
    "$canonical_identifier": "content/123",
    "$og_title": "Title from Deep Link",
    "$og_description": "Description from Deep Link",
    "$og_image_url": "http://www.lorempixel.com/400/400/",
    "$desktop_url": "http://www.example.com",
    "custom_boolean": true,
    "custom_integer": 1243,
    "custom_string": "everything",
    "custom_array": [1,2,3,4,5,6],
    "custom_object": { "random": "dictionary" },
    "$marketing_title": "Some marketing title"
  }
}'

Upvotes: 7

Related Questions