ThingsLink Self-Hosted: Air-gapped Ed25519 Signed License & Pay-As-You-Go Cloud now available→
Docs/Developer Reference

OpenAPI & CLI Automation Reference

Automate projects, device provisioning, telemetry queries, and license status checks with ThingsLink REST APIs and CLI.

Authentication & Tenant Scope

All project APIs accept stateless Bearer tokens (and single-session web cookies) protected by transaction-local PostgreSQL FORCE RLS:

# 1. Authenticate
curl -X POST "https://api.thingslink.example/api/v1/auth/login" \
  -H "Content-Type: application/json" \
  -d '{"email":"ops@company.com","password":"***"}'

# 2. List joined & owned projects with billing mode
curl -H "Authorization: Bearer <TOKEN>" \
  "https://api.thingslink.example/api/v1/projects"

Key Operational Endpoints

Endpoint Method Purpose
/api/v1/projects GET / POST List or create projects (SUBSCRIPTION / PREPAID_USAGE)
/api/v1/projects/{id}/devices GET / POST List or provision devices with DeviceKey
/api/v1/projects/{id}/quota GET Inspect effective project quotas & usage
/api/v1/billing/wallet GET Inspect owner global PAYG wallet & 90-day credit lots
/api/v1/system/license/status GET Inspect deployment mode & offline license lifecycle
/api/v1/system/license/import POST Import initial or renewed .tcshlic offline license

Security Headers

Sensitive license, credential, and billing endpoints return Cache-Control: no-store by default.

Ready to build your IoT solutionwith ThingsLink?

Start free on ThingsLink Cloud or deploy sovereign On-Premises in minutes.