Fan Developer

Build with Fan

Powerful APIs, SDKs, and tools to integrate Fan devices and services into your apps.

Quickstart Guide

Quickstart

1. Install CLI

$ npm install -g fan-cli

2. Authenticate

$ fan login

3. Create Project

$ fan init my-app

API Reference

Authentication

All requests require an API key via the Authorization header.

curl -H "Authorization: Bearer YOUR_KEY" \
  https://api.fan.com/v1/devices

Device Management

List, create, update, and delete connected devices.

GET /v1/devices
POST /v1/devices
PATCH /v1/devices/:id
DELETE /v1/devices/:id

SDKs & Samples

JavaScript

import Fan from 'fan-sdk';

const client = new Fan({ key: 'YOUR_KEY' });
const devices = await client.devices.list();

Python

from fan_sdk import Fan

client = Fan('YOUR_KEY')
print(client.devices.list())

cURL

curl -H "Authorization: Bearer YOUR_KEY" \
https://api.fan.com/v1/devices

Resources