Bravo Studio Help Center
  • Get started with Bravo Studio 👏
  • Get Started
    • 🚀Create your first app
    • 🌟Bravo introduction
      • Get ready to create your app with ChatGPT
      • Create an app
        • Creating an app with Figma
        • Creating an app with Adobe XD
      • Duplicate an app
      • Delete an app
      • Replace linked Figma file
      • The app page
      • Sharing your app
      • Add an editor to your app
      • Fonts
        • Adobe XD - Supported fonts
    • 📱Bravo Vision previewer
    • ✨Unlock power features to create interactive apps
    • 🎓Help and tutorials
      • 📖App guide tutorials
        • Sample app tutorial: Your first binding
        • How to build a Fitness app with Bravo, Xano and RevenueCat
        • Foodgram: Social content sharing
        • Expedition journal: Write and share your adventures
        • My Subscriptions: Display data based on device ID
        • My Notes: using user ID and email from Firebase
        • My Store: Sell physical products with Bravo and Stripe
        • Titan: How to create a Smart Home App with No-Code?
        • n8n: Building an expense tracking app in 10min
      • 📺Learn with videos
      • 📚Learn with articles
      • 🗃️Browse by app feature
        • Save or "bookmark" a page
        • Backend search with Airtable
        • Backend search with Xano
        • Nested lists (list within a list)
        • Create and edit user profile (Firebase + Airtable)
        • Skeleton loader
        • Create albums in your app with Bravo Infinite images
  • Set up your design
    • 🖌️Get your Figma ready for Bravo
      • 🗃️Structuring the design: the layer hierarchy
      • 🪄Bravo Tags: adding functionality to the UI elements
      • 🧱The container
        • Setting up a container on Figma
        • Setting up a container on Adobe XD
      • 📲App navigation
        • Setting up app navigation on Figma
        • Setting up app navigation on Adobe XD
    • 🔌Bravo plugin for Figma
    • 💾Sample design files
    • 🤓Best Practices
  • App components
    • 📒Bravo Tags Master List
    • 🚪Menus
      • Modal Menu
      • Modal pages
      • Tabs Menu
      • Pop Up pages
      • Slide Menu
    • 🍞Pages
      • Modal pages
      • Pop-up pages
      • Swipe page
      • Transitions page
      • Page reveal animations
      • Page tabs
      • 🔮Stateful pages
    • 📦Containers
      • Swipe to delete
      • Top bar
      • Carousel slider
      • Aspect ratio relative to screen
      • Sortable List
      • Layer (sticky element)
    • 👋Intro & Onboarding
      • Intro page
      • Post-login page (Onboarding)
    • ⌛Loading experience
      • Loading page
      • Custom loading page
      • No loading
      • Preload
    • 📝Form & input fields
      • 👁️Password Visibility Toggle
      • 🩷Stateful input
        • ☑️Checkboxes (Multiple select)
        • ✅Required Checkbox
        • 🔘Radio buttons (Single select)
      • ⏳Input time Interval
      • 📄Dropdown selector
      • 🎚️Slider control
      • 🗓️Calendar picker
      • 📄Send form input to a database
    • 💎Components
      • Autoplay Video
      • GIF
      • SVG Component
      • Web view
      • Web Components using AI
      • Web view communication
      • LottieFile
      • Lottie-animated component
      • Flexible text (Flexo)
      • Zoomable image
      • Component states
      • Stateful component (like button)
      • Setting up the backend of Stateful component (like button)
      • Haptic Feedback (Buzzz)
      • Progress bar
      • Rich text
      • Date, Time and Currency Formatter
      • Scrollable text
      • Text Lines & Truncation
      • Status bar
    • ⚡Mobile actions
      • Mobile Actions
      • Play audio
      • Record audio
      • Play video
      • Scan QR code (external URL)
      • Scan codes (remote action)
      • Search & filter
      • Refresh page
      • Share location
    • 📱App Icon & Splash Screen
    • 🗺️Map with markers
    • 📈Charts
  • Data and Backend
    • 🗂️Set up a no-code backend
      • Xano
        • Nested lists (list > list > detail page) with Xano
        • Create a bookmark functionality with remote actions and device ID with Xano
        • Multi-user setup with Xano
        • 🔒Setting up the Xano Log in Snippet
          • ♻️Refresh Token
      • Airtable
        • Nested lists (list > list > detail page) with Airtable
        • Sort list with Airtable
        • Connect multiple tables from Airtable to one app
        • Update Airtable's API key to Access Token
      • Backendless
      • Bubble
      • Notion
        • Getting data from a Notion table
      • Firebase
        • Getting data from Firestore
    • 💾Set up API requests
      • Set up from scratch
        • Airtable
          • Set up an API GET request for list page - Airtable
          • Set up an API GET request for detail page - Airtable
          • Set up an API POST request - Airtable
          • Set up an API DELETE request - Airtable
        • Xano
          • Set up an API GET request for list page - Xano
          • Set up an API GET request for detail page - Xano
          • Set up an API PATCH request - Xano
          • Set up an API POST request - Xano
          • Set up an API DELETE request - Xano
      • Using GraphQL body type
      • Set up with API wizard & importer
        • Using the Airtable API Wizard
        • Using the Xano API wizard
    • 🎲Variables
      • Built-in variables
      • Set Variable
    • 📚Data Collection & Binding: Complete Collection
    • 🗂️Pagination
    • 🐛Debugging API issues
      • ⚙️Debugging requests in the API Collection
      • 📲Event logger
      • 🔗Link property
  • Data binding
    • 🤝Data binding types
      • API binding types
      • Bind multiple API requests to one screen
      • How to connect my API to a mobile actions
      • Remote actions: trigger an API request with a UI element
    • 💡Display data in your app
      • Bind data to design for a list page
      • Bind data to design for a detail page
    • 🆕Create data from your app
    • 🗑️Delete data from your app
    • 🚦Conditional Visibility
    • 🎛️Conditional Actions
  • Integrations & Settings
    • 🖇️Deep Links
      • 🖇️Deep Links for Bravo Vision
      • 🖇️Deep Links for published apps
      • 🖇️Troubleshooting Deep Links
    • 🔔Push Notifications with OneSignal
      • How to get a Bravo page URL
    • ⚙️Firebase Configuration
    • 🔐User Authentication
      • 🔑Authentication with Kinde and Xano
      • 🧙🏽Authentication with OAuth 2.0
        • Using social logins to authenticate users
        • Using AWS Cognito to authenticate users
        • Connecting to Spotify API
      • 📲User login with Firebase
        • ✉️Email and password Login with Firebase
        • 📞Phone Login with Firebase
        • 🍎Social Login with Firebase
        • 👻Anonymous Login with Firebase
      • ⛓️Authentication with custom backend
        • Set up Xano as your user authentication backend
    • 💰Stripe: One-time Payment
    • 💬Chat: CometChat
    • 💸RevenueCat: In-app purchases and subscriptions
    • 📉Bravo Analytics
    • 📳Facebook App Events
    • 📊Google Analytics
    • 🌐Multilingual apps
    • 🕸️How to connect with Webflow API
    • 📡NFC connection
    • 🎯Admob
  • App Publication
    • 🚀Publishing your app
      • iOS Publication: Complete Process
        • 1. Generate Certificates, AppIDs and Provisions
        • 2. Get the IPA
        • 3. Upload IPA to App Store Connect
        • 4. Test your app on TestFlight (optional)
        • 6. App Store publication
        • 7. Updating an app in the App Store
      • Android Publication: Complete Process
        • 1. Create a Keystore File (optional)
        • 2. Get the Debug APK to install
        • 3. Install the Debug APK in your device
        • 4. Get the AAB (Android App Bundle) file to publish
        • 5. Google Play publication
        • 6. Updating an app in Google Play
      • Android APK Installation Guide
      • Rejection from the app stores
    • 🎛️Making changes to your app after publication
    • 🛍️Versioning
    • 🌟App rating alert
  • Good to Know
    • 🤔Troubleshoot
      • Errors when logging in
      • Errors when creating an app
      • Errors in API requests
        • Request timeouts on Bravo
      • Errors after importing
      • Errors in publication form
    • 🧑‍💻Manage your account
    • 💳Billing
      • Bravo Subscription Plans Overview
      • App Add-ons
      • Upgrading a plan
      • Downgrading a plan
      • App allowance
      • Invoices & payment method
      • FAQ
    • ❓FAQs
      • About Bravo Studio
      • Importing a design file
      • Bravo Vision
      • Bravo Tags
      • API & Data Library
      • Login & Account
      • Other Features
  • NEED SOME HELP?
    • 📖Bravo Support Guide
    • 🤝Join the Bravo community
    • 🤖Bravo Assistant
    • 👥Production support
    • 🐞Report an issue
Powered by GitBook
On this page
  • Create API Collections
  • Account Data Collection
  • App Data Collection
  • API Collection Overview
  • 1. Data Collection Settings
  • 2. API Request Setup
  • 3. API Request Response
  • Types of API requests
  • Set up with API wizard & importer

Was this helpful?

  1. Data and Backend

Set up API requests

PreviousGetting data from FirestoreNextSet up from scratch

Last updated 1 year ago

Was this helpful?

A tool's API is the way it can talk to another system, in our case, Bravo and your app. Check out these tutorials on how to set up in Bravo to communicate with external tools.

Bravo can be connected to any API, as long as it is accessible on the Internet. This way, it's possible to create apps using any third party service of your choice to store and process the data.

Create API Collections

The API collections section is where where you set up groups of API requests. For example, If you want to display a list of items from your Google Sheets in your app, you first have to retrieve the data by setting up a GET request. Then, Bravo receives the data from the request and it's ready to be connected to an app design. In Bravo, there are two sections where you can create a collection of API requests:

  • Account Collections: Where the collections created can be used between different apps.

  • App Data Collections: Where the collections are exclusive to a specific app.

Account Data Collection

This data collection can be used between different apps.

How to create an Account Data Collection?

  1. In the left side menu, click on the second icon from the top to access the Account Data Collections.

  2. Simply click on "Create a new collection".

App Data Collection

These data collections are exclusive to a specific app.

How to create an App Data Collection?

  1. Go into your app and select the "Data" tab.

  2. Click on "Create a new collection".

API Collection Overview

In this guide, we will walk you through our API request page. We're dividing the screen in three sections:

  1. Data Collection Settings

  2. API Request Setup

  3. API Request Response

1. Data Collection Settings

This section includes:

  1. Collection Name: In this example, the collection name is "Create your first app".

  2. Collection Settings: Click on the settings gear next to the Collection name to access the Settings. There are two main tabs:

    • General:

      • Name: Put your preferred name for your data collection.

      • Description: By default, you'll find the Database URL in here.

    • Authentication Settings: Configure the authentication type and add the token (if required) for the whole API collection.

      • Authentication types:

        • None: No authentication required.

        • Basic: Basic HTTP authentication.

        • API Key: Utilises an API key for access.

        • Bearer: Utilises a bearer token.

        • Use settings from application (OAuth2): Leverages OAuth2 for authentication as configured in the application settings.

      • Token: Add the the API token, if required.

2. API Request Setup

In this section, you'll find the following:

  1. Add Button: Click this button to create a new request. The list of requests will be shown under and it can be sorted by name or last modified. A search bar is also available.

  2. Select a type of request: When creating a request, you can choose from the following types: GET, POST, PUT, PATCH, DELETE, and HEAD. Select the appropriate request type for your needs.

Request options available:

  • GET -> Intended to retrieve data from a server and do not modify the server's state.

  • POST -> Used to send data to the server for processing and may modify the server's state.

  • PUT -> Used to create a new resource or replace a resource.

  • PATCH -> Does partial update.

  • DELETE -> Deletes the specified resource

  • HEAD -> A type of HTTP request that is identical to HTTP GET, except that the server will not return a message-body as part of the HTTP response.

  1. Request URL: Place the request URL coming from your backend.

  2. Headers: Set the parameters of the HTTP request. This is used for authentication purposes, among others.

5. Query Parameters: Set of parameters attached at the end of the request URL.

6. Body: In this section, you'll define the content of your HTTP request. It's important to note that not all HTTP requests need a body. Typically, requests that send data to a server, such as POST or PATCH requests, do include a body. Data in the body can be in various formats, with JSON and plain text (raw) being among the most common. Like the request URL, the body can also contain request variables.

8. Input Variables & Test Values: In case you’re using request variables in the URL or in the request body, you need to set temporary test values for those variables before sending the request. These values will be sent to the API endpoint in the request URL, and will only be used in the test requests you perform from Data Library. When using your Bravo app, you’ll need to bind the request variables with API data.

  1. Send button: Click the "Send" button to run the API request and receive a response.

3. API Request Response

1. Received Data: This panel will display the data received from the API request, after clicking “Send”. You’ll be able to select the data you want to bind to the UI elements and the data you want to use in other API requests.

Types of API requests

Connect to any API: GET request for lists (retrieve data)

Connect to any API: GET request for detail page (retrieve data)

Connect to any API: POST request (create data)

Connect to any API: DELETE request (delete data)

Set up with API wizard & importer

7. Pagination: Pagination is the app mechanism to “load more times”. This is recommended when your app needs to load content from a large database. Learn more about .

2. Output Variables: In this panel, you can specify a name for the data received from the API. This name will later appear when binding the UI elements with this data. It can also be used in other requests as a variable (in the URL or in the request body), in the case where those requests are linked to this one. For instance, a request for a detail page showing information for a particular item in a list.

3. Debug & Inspect Response: In this panel, you can see the content of the HTTP request and response, after clicking “Send” in the request URL panel to send a test request to the API. You might find this useful for purposes. If the HTTP requests is successful, a 200- OK status code will be returned from the API, together with the data. If there was any issue with the HTTP request, an error code will be returned from the API.

💾
pagination
variable
debugging
Set up an API GET request for list page - Airtable
Set up an API GET request for detail page - Airtable
Set up an API POST request - Airtable
Set up an API DELETE request - Airtable
Using the Airtable API Wizard
Using the Xano API wizard
API requests
What is an API?