Skip to content
SwipeFlow logo Docs
Sign In

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.

  1. Generate an API key. Go to Settings → API Keys to create a new API key.
  2. Include the API key in requests, in the X-API-Key header.
  3. Make API requests to the endpoints in the API reference.
// Get all projects
fetch('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));