API Reference

Build with Focly

Integrate Focly into your applications with our powerful REST API.

Integrate Focly into your applications with our powerful REST API.

Get API Key

View Full Docs

Authentication

Secure OAuth 2.0 and API key authentication.

Rate Limiting

10,000 requests per hour for Pro plans.

SDKs

Official SDKs for JavaScript, Python, and Swift.

Webhooks

Real-time event notifications for your app.

API Endpoints

Core endpoints to get you started.

GET

/api/v1/tasks

List all tasks

POST

/api/v1/tasks

Create a new task

GET

/api/v1/habits

List all habits

POST

/api/v1/focus-sessions

Start a focus session

GET

/api/v1/analytics

Get productivity analytics

PUT

/api/v1/settings

Update user settings

Quick Start

example.js

import Focly from '@focly/sdk';

const client = new Focly({
  apiKey: process.env.FOCLY_API_KEY
});

// Create a new task
const task = await client.tasks.create({
  title: "Ship feature",
  priority: "high",
  dueDate: "2024-12-31"
});

console.log(task);
import Focly from '@focly/sdk';

const client = new Focly({
  apiKey: process.env.FOCLY_API_KEY
});

// Create a new task
const task = await client.tasks.create({
  title: "Ship feature",
  priority: "high",
  dueDate: "2024-12-31"
});

console.log(task);

Create a free website with Framer, the website builder loved by startups, designers and agencies.