Skip to content

API Overview

Streaklet provides a REST API for programmatic access to all features.

Base URL

http://localhost:8080/api

Authentication

Streaklet does not require authentication. It's designed for use on trusted networks.

Security Note: Do not expose Streaklet directly to the internet without additional authentication layers.

Profile Context

Most endpoints require a profile context via the X-Profile-Id header:

curl -H "X-Profile-Id: 1" http://localhost:8080/api/tasks

If omitted, defaults to profile ID 1.

Response Format

All responses are JSON.

Success Response:

{
  "id": 1,
  "name": "value"
}

Error Response:

{
  "detail": "Error message"
}

Endpoint Categories

Complete API Reference

See Endpoints Documentation for full API reference with examples.

Client Libraries

Currently no official client libraries exist. The API is simple REST - use any HTTP client.

Example with Python:

import requests

response = requests.get(
    "http://localhost:8080/api/tasks",
    headers={"X-Profile-Id": "1"}
)
tasks = response.json()

Example with JavaScript:

const response = await fetch('http://localhost:8080/api/tasks', {
  headers: { 'X-Profile-Id': '1' }
});
const tasks = await response.json();

Rate Limiting

No rate limiting is currently implemented.

Versioning

The API is not versioned. Changes will be backwards compatible where possible, with breaking changes noted in release notes.