Skip to content
Get Help

Attribution API

The Attribution API attributes app sessions and conversions to your active campaigns.

Read the Attribution API overview

Request open

POST/open

The network request to v1/open should occur when you're successfully notified the app was brought to the foreground. Branch defines an app lifecycle as a session in which your application is launched (cold start, or if it was present in the iOS or Android task manager) and comes to the device's foreground.

Parameters

  • ad_tracking_enabledbooleanRequired

    A value used to determine whether the IDFA or GAID can be used for advertising purposes. If Limit Ad Tracking should be enabled, don't include it in the request.

  • app_versionstringRequired

    Your app's version.

  • branch_keystringRequired

    The Branch Key of the originating app obtained in your Account Settings.

  • branch_secretstringRequired

    The Branch Secret of the originating app obtained in your Account Settings.

  • is_hardware_id_realbooleanRequired

    Set to false if the hardware_id property can't be populated. Otherwise, default to true.

  • modelstringRequired

    Model of the device.

  • osenumRequired

    System OS. Only accepts Android or iOS.

    iOSAndroid
  • os_versionstringRequired

    The version of the device's OS (for example, “23” for Android or “9.1.2” for iOS). Accepts any value. The preferred default is “NA”. This can't be blank.

  • server_to_serverbooleanRequired

    Must be true for server-to-server attribution requests. Required.

  • user_agentstringRequired

    The user agent of the device.

More parameters

  • advertising_idsobject
  • android_app_link_urlstring
  • apple_attribution_tokenstring
  • clicked_referrer_tsinteger
  • custom_param_1string
  • custom_param_2string
  • custom_param_3string
  • disable_ad_network_calloutsboolean
  • dma_ad_personalizationboolean
  • dma_ad_user_databoolean
  • dma_eeaboolean
  • facebook_app_link_checkedboolean
  • first_sessionboolean
  • gbraidstring
  • google_advertising_idstring
  • google_search_install_referrerstring
  • hardware_idstring
  • hardware_id_typeenum
  • identitystring
  • install_begin_tsinteger
  • install_referrer_extrasstring
  • ios_vendor_idstring
  • link_identifierstring
  • local_ipstring
  • local_urlstring
  • randomized_bundle_tokenstring
  • referrer_gclidstring
  • screen_heightinteger
  • screen_widthinteger
  • server_to_server_identityboolean
  • tracking_disabledboolean
  • universal_link_urlstring

Returns

Success. Returns 400 and 429 on failure — see the response panel for the error shape.