Skip to main content

Apito REST API Integration with Flutter

Dart has a composable, Future-based library for making HTTP requests. You can simply use this to connect with apito's rest api endpoints. Here is an example below

Using Dart's standard http library


Always remember to replace API_SECRET of the Bearer Token and project-id of the URL with the correct value from apito console. Go to this page if you do not know where to find your api secrets and endpoints for your project

    String token = '<API_SECRET>';
final response = await http.get(url, headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer $token',