Travis 2.0 API Documentation.

Integrating Travis 2.0: Collect and Retrieve Customer Data with Ease.

Travis 2.0 is designed to help businesses seamlessly collect and manage customer data through our NFC-enabled cards and QR codes. With Travis 2.0, you can easily retrieve valuable insights, including customer names, emails, and phone numbers, all from our intuitive API.


API POST Request URL
https://travis.traqr.co.uk/api-call-travis?api_key=YOUR_API_KEY

Replace YOUR_API_KEY with your actual API key obtained on your Dashboard and then click on view leads.

The API returns data in JSON format, containing an array of objects. Each object represents a contact with the following properties:

  • Full name
  • Phone number
  • Email
            
            //API request example in JavaScript can be done in any programming language

            // Replace with your API key
            const apiKey = 'YOUR_API_KEY';

            // Request URL
            const API_URL = 'https://travis.traqr.co.uk/api-call-travis?api_key='

            // Construct the API URL
            const url = `${API_URL}${apiKey}`;

            // Fetch data using async/await
            async function getContacts() {
            try {
                const response = await fetch(url);
                if (!response.ok) {
                throw new Error(`API call failed with status ${response.status}`);
                }
                const data = await response.json();
                console.log(data);
            } catch (error) {
                console.error(error);
            }
            }

            // Call the function to retrieve contacts
            getContacts();

            //Response 200 Success
            
                [
                    {
                        
                        "full_name": "Sarah Jane",
                        "phone_number": "03300430046",
                        "email": "info@clientsemail.co.uk",
                        
                    },
                    {
                        
                        "full_name": "Tom Wayne",
                        "phone_number": "03300430046",
                        "email": "info@clientsemail.co.uk",
                        
                    },
                    {
                        
                        "full_name": "Leon Steven",
                        "phone_number": "03300430046",
                        "email": "info@clientsemail.co.uk",
                        
                    },
                    
                ]