API Documentation

Getting Started with the API

Our REST API allows you to programmatically create and manage surveys, collect responses, and analyze data.

Base URL

https://api.blindsight.com/v1

Authentication

API Keys

All API requests require authentication using an API key in the header:

Authorization: Bearer YOUR_API_KEY

API Endpoints

Method Endpoint Description
GET /surveys List all surveys
POST /surveys Create a new survey

Method Endpoint Description
GET /surveys/{id}/responses Get survey responses
POST /surveys/{id}/responses Submit a response

Code Examples

import requests

api_key = 'YOUR_API_KEY'
headers = {
    'Authorization': f'Bearer {api_key}',
    'Content-Type': 'application/json'
}

# Get all surveys
response = requests.get(
    'https://api.blindsight.com/v1/surveys',
    headers=headers
)

print(response.json())
const apiKey = 'YOUR_API_KEY';

fetch('https://api.blindsight.com/v1/surveys', {
    headers: {
        'Authorization': `Bearer ${apiKey}`,
        'Content-Type': 'application/json'
    }
})
.then(response => response.json())
.then(data => console.log(data));

Rate Limits

API Rate Limits

Plan Rate Limit Burst Limit
Free 100 requests/hour 10 requests/minute
Pro 1000 requests/hour 100 requests/minute
Enterprise Custom Custom