Using the API
The SwipeFlow API allows you to access and manipulate data programmatically. Every endpoint, with its request and response formats, is in the API reference.
- Generate an API key. Go to Settings → API Keys to create a new API key.
- Include the API key in requests, in the
X-API-Keyheader. - Make API requests to the endpoints in the API reference.
Example request
Section titled “Example request”// Get all projectsfetch('https://api.swipeflow.io/v1/projects', { method: 'GET', headers: { 'X-API-Key': 'YOUR_API_KEY', 'Content-Type': 'application/json', },}) .then((response) => response.json()) .then((data) => console.log(data)) .catch((error) => console.error('Error:', error));