BranchMetrics / branch-deep-linking-public-api

The Branch Metrics public API for mobile deep linking / deeplinking applications. Branch helps mobile apps grow with deep links / deeplinks that power referral systems, sharing links and invites with full attribution and analytics.
https://dev.branch.io/references/http_api/
145 stars 18 forks source link

Error can't set key "type": 2 when create deep link #46

Open SonChanthem opened 2 years ago

SonChanthem commented 2 years ago

Hello Branch Team and @aaustin

There are an issue that I just faced during create deep link via rest api "/v1/url". { "error": { "code": 403, "message": "You don't have access to this type. Please try again with type 0 (default) or 1." } }

I've tried to create deep link via rest api and wan to make it available to show in dashboard on Quick Link menu. I've followed this the suggestion from this https://help.branch.io/faq/docs/can-we-see-api-generated-links-on-the-dashboard and it's got success as expected. But just now I can't access the value 2 of key "type" anymore. It showed error as above.

Does anyone use to faced that issue? Please kindly shared your solution. It's my appreciation all all help.

Thanks

ahmednawar commented 2 years ago

Hello @SonChanthem,

Unfortunately we no longer support the creation of Quick Links via the v1/url API effective January 13, 2022. As an alternative, you can still create links via the Quick Link Creator as well as the v1/url API with type not set to 2. Branch is currently exploring options to support the creation Quick Links via the v1/url API.

Sorry for the headache.

Best, Ahmed

loswojos commented 2 years ago

Lol no heads up? This change breaks support for a lot of services that we're offering via api deep links. Would be nice to get some notice that API breaking changes will be released so clients can react accordingly.

ahmednawar commented 2 years ago

We sent notifications to all customers who used the API on January the 11th via the Branch Dashboard. Apologies if there was an oversight on our part and missed your app!

ahaider48 commented 2 years ago

We have the same problem where we used to create links via the API using type: 2 to allow us to quickly see their stats on the dashboard on the "Quick Links" page. Using type: 0 (default) no longer allows us to see those stats.

That being said, any other major differences between type 2 and 0? I can't seem to find any documentation explaining how default links differ from marketing links aside from them being viewable via the Quick Links page!

DataGreed commented 2 years ago

We've just encountered the same problem. We also didn't get any notiications, link creation just suddenly started throwing 403 errors.

Is there any viable solution for this problem available? And what is the actual difference between type 0 and type 2 links? Could you please also explain the reasoning behind not letting create those links via API?

I've tried creating standard links, but the problem I am having with them is that I don't see them in dashboard, what is the point of this API then?

kollein commented 1 year ago

I just had the same problem to work out with my current project. Need the Branch team puts it back. @ahmednawar

bridger217 commented 1 year ago

Bump on this issue.

When I create a deep link via iOS sdk, it appears on the dashboard. But with the api i get the type 0/2 issue. What's the difference?

ahmednawar commented 1 year ago

We disabled creating Quick Links via the API (type 2) due to infrastructure reasons because the number of links created was unsustainable and caused load issues on our databases. Both types of links function the same exact way for redirects and deep linking. The main differences are: Quick Links show on the dashboard for management and also have link-level analytics. Type 0 (the links created via the API) don't show on the dashboard and only offer aggregate analytics based on dimensions like campaign and feature.

We sent notifications via the dashboard late last year for anyone we saw used those type 2 links via the API but possible we missed a few cases. We are really sorry if you didn't get a notification. We are also exploring ways to allow customers to create those links again in a scalable way. We are finishing a multi-year project to overhaul the Quick Link manager and enabling API creation will be considering after shipping that project.