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

REST api error message when creating a new deep link #50

Closed yacinbenhamida closed 2 years ago

yacinbenhamida commented 2 years ago

Hey there,

{ "error": { "code": 400, "message": "The following key(s) are restricted link data keys. Please remove them or replace with valid link data key(s): ~creation_source, ~stage, +match_guaranteed, +is_first_session, +click_timestamp" } }

POST https://api2.branch.io/v1/url { "branch_key":"key_test_YOURKEY", "randomized_bundle_token": "427469360685348303", "link": "https://example.app.link?%24randomized_bundle_token=427469360685348303", "session_id": "429691081177874743", "data": { "$canonical_identifier": "item/1503684554354.28", "$canonical_url": "https://example.com/home?utm_campaign=test&deeplink=value", "$desktop_url": "http://example.com/home", "$randomized_bundle_token": "427469360685348303", "$og_description": "My Content Description", "$og_image_url": "http://lorempixel.com/200/200/", "$og_title": "46D6D28E-0390-40E4-A856-BD74F34D24C8", "$publicly_indexable": 1, "+click_timestamp": 1503684563, "+clicked_branch_link": true, "+is_first_session": false, "+match_guaranteed": true, "custom": "blue", "random": "FE848A5B-78F7-42EC-A253-9F795FE91692", "added": "1503684554354.33", "~campaign": "new launch", "~channel": "facebook", "~creation_source": 3, "~feature": "sharing", "~id": 429691043152332059, "~referring_link": "https://example.app.link/X7OsnWv9TF", "~stage": "new person", "~tags": [ "one", "two" ] } }

did anyone face this issue recently also with the api ?

Thank you.

mochadwi commented 2 years ago

happened in our ends as well:

error : {"error": "rpc error: code = Code(400) desc = {\"error\":{\"code\":400,\"message\":\"The following key(s) are restricted link data keys. Please remove them or replace with valid link data key(s): ~creation_source\"}}"}

Updates:

after removing the ~creation_source attributes from the payload request, works for us

yacinbenhamida commented 2 years ago

Yes but we need that attribute on our end, we can't just remove stuff like that. hope this gets addressed

jleebranch commented 2 years ago

This has been fixed as of this morning.