🎲

Request URL Variables

Personalize your app content to your users by utilizing these Bravo-supported variables to your API requests.

image

Bravo Variables

NameDescriptionUse CasesTutorial/Example
${device.id}
A unique identifier that identifies the device of the user. (It changes if the user removes and installs the app, and is unique x app, following Privacy Guidelines from Apple).
Used to differentiate the data to allow customization per device i.e. a to-do list specific to the device can be done by using the device.id to filter the data.
${device.lang}
Returns the language of the device, "es" for example
Used to help specify the language used i.e. you could filter a list of holiday destinations using the device.lang to get the same list in different languages
${device.platform}
Returns "ios" or "android"
Return the platform device or the user. Could be used in a web-view to display a different URL to each platform. i.e. QR code to download a mobile app in iOS or Android.
${user.id}
Returns the user id from the normalized Bravo token if it's available
Once a user is logged in this can be used to customize the data, i.e. a todo list specific to the user by filtering the data specific for the user
${user.email}
Returns the user email from the normalized Bravo token if it's available
This will enable similar use cases to user.id but by having the user email available also allows integration with emailing tools. This will be personal information though so the user will need to ensure they have the email owner's permission to use it.

Other cases

NameDescriptionUse CasesTutorial/Example
${id}
Identifies the ID of a data record to interact with this data record in a request. The variable name ("id") can be customized (whereas the Bravo Variables cannot) - i.e. ${avocado} As long as you make sure its the same in all fields that require the variable name (i.e. parameter, data name)
Used to connect a detail page to an item selection from a list page, or delete an item from a database.

🤓 Variable tutorials

👨‍💻
Notes app with user.id and user.email Bravo variables