Skip to main content
The Platform API exposes everything the CLI and dashboard do. Use it to integrate Uniac into your own tooling.

Base URL

https://api.uniac.ai

Authentication

Bearer token in the Authorization header:
Authorization: Bearer <token>
The token is the JWT minted by uniac auth login and stored in ~/.uniac/auth.json. Print it for use in scripts with uniac auth token.

Resources

Projects

VerbPathPurpose
GET/api/projectsList projects you own.
POST/api/projectsCreate a project. Body: {"name": "..."}.
GET/api/projects/{name}Get a project by name.
GET/api/projects/by-slug/{slug}Get a project by slug.
DELETE/api/projects/{name}Delete a project (async; returns a task).

Services

VerbPathPurpose
GET/api/projects/{name}/servicesList Services in a project.
DELETE/api/projects/{name}/services/{service_id}Delete a Service (async).

Service instances

VerbPathPurpose
GET/api/services/{service_id}/instancesList running instances and their status.
POST/api/services/{service_id}/scaleScale to N replicas. Body: {"target_replica_count": N}.

Health

VerbPathPurpose
GET/healthLiveness.
GET/readyReadiness (checks DB).
Mutating endpoints return 202 with a task envelope; poll the task to observe completion.