HTTP API
Weik.io 2026.2The hub's REST API, path by path, with the weikio command that calls each one.
On this page
- Authentication
- How the paths work
- Login and contexts
- Projects, members and roles
- Environments
- Integrations, versions and the developer loop
- Deployments
- Variables and secrets
- Events and the entity store
- APIs and subscriptions
- Agents and sites
- Users, API keys, providers and mappings
- Observability
- Platform administration
Every weikio command is a call to the hub’s HTTP API, so anything the CLI and the admin UI do, your own scripts and tools can do too. The API is served on the hub’s own address under /api/v1, and the hub describes it in an OpenAPI 3.1 document at GET /api/v1/openapi, which you can load into an API client or a code generator.
Authentication#
The API accepts an API key as a bearer token. A key looks like wk_<keyId>_<secret>, and you create one with weikio apikey create or under Settings > Access > API keys in the admin UI. The key’s grants decide what each call may read and change, exactly as for the CLI.
$ curl -H "Authorization: Bearer $WEIKIO_API_KEY" https://weikio.example.com/api/v1/schemas/variablePeople who sign in to the admin UI use a browser session on the same address, and the API accepts no other credential.
How the paths work#
GET on a collection lists it, GET on an item reads one record, PUT creates or replaces a record, PATCH changes part of one and DELETE removes one. A record of one environment has the environment in its path, as in /api/v1/environments/{environment}/projects/{project}/deployments/{name}, never in a query parameter.
A reply with a record has an ETag. Send it back in If-Match on a write, and the hub refuses the write with 409 Conflict and the current record when someone changed it in between. A list is one page, {"items": [...]}, with a link to the next page. An error is a problem document, application/problem+json, with a code a script can branch on and a sentence for people, and GET /api/v1/version answers with the hub’s release.
A write accepts the headers the CLI sends: Weikio-Reason for the reason stored with the audit record, and a traceparent, whose trace id ties the call to its audit record and the hub’s log lines.
Login and contexts#
The commands are on Login and contexts.
| Method | Path | Command |
|---|---|---|
POST |
/ |
weikio login |
GET |
/ |
weikio login |
POST |
/ |
weikio login |
POST |
/ |
weikio login |
GET |
/ |
weikio login |
GET |
/ |
weikio login |
GET |
/ |
weikio context set |
GET |
/ |
weikio version |
Projects, members and roles#
The commands are on Projects, members and roles.
| Method | Path | Command |
|---|---|---|
PUT |
/ |
weikio project create |
GET |
/ |
weikio get projects |
GET |
/ |
weikio describe project |
GET |
/ |
weikio describe project |
GET |
/ |
weikio describe project |
DELETE |
/ |
weikio delete project |
PATCH |
/ |
weikio rename project |
GET |
/ |
weikio member add |
PUT |
/ |
weikio member add |
GET |
/ |
weikio get members |
GET |
/ |
weikio get members |
DELETE |
/ |
weikio member remove |
GET |
/ |
weikio get roles |
GET |
/ |
weikio describe role |
PUT |
/ |
weikio role create |
DELETE |
/ |
weikio delete role |
PATCH |
/ |
weikio rename role |
Environments#
The commands are on Environments.
| Method | Path | Command |
|---|---|---|
PUT |
/ |
weikio env create |
GET |
/ |
weikio get environments |
GET |
/ |
weikio get environments |
GET |
/ |
weikio describe environment |
GET |
/ |
weikio describe environment |
DELETE |
/ |
weikio delete environment |
PATCH |
/ |
weikio rename environment |
Integrations, versions and the developer loop#
The commands are on Integrations, versions and the developer loop.
| Method | Path | Command |
|---|---|---|
GET |
/ |
weikio init |
GET |
/ |
weikio validate |
GET |
/ |
weikio validate |
POST |
/ |
weikio apply |
PUT |
/ |
weikio apply |
PUT |
/ |
weikio apply |
POST |
/ |
weikio apply |
PUT |
/ |
weikio diff |
GET |
/ |
weikio diff |
PUT |
/ |
weikio diff |
POST |
/ |
weikio diff |
PATCH |
/ |
weikio run |
GET |
/ |
weikio run |
GET |
/ |
weikio run |
GET |
/ |
weikio dev run |
GET |
/ |
weikio dev run |
GET |
/ |
weikio dev run |
GET |
/ |
weikio dev run |
GET |
/ |
weikio dev run |
GET |
/ |
weikio dev run |
GET |
/ |
weikio dev run |
GET |
/ |
weikio get integrations |
GET |
/ |
weikio describe integration |
GET |
/ |
weikio get versions |
GET |
/ |
weikio describe version |
POST |
/ |
weikio version create |
GET |
/ |
weikio version compare |
GET |
/ |
weikio status |
GET |
/ |
weikio status |
GET |
/ |
weikio logs |
GET |
/ |
weikio logs |
GET |
/ |
weikio logs |
GET |
/ |
weikio logs |
POST |
/ |
weikio invoke |
DELETE |
/ |
weikio delete integration |
DELETE |
/ |
weikio delete integration |
PATCH |
/ |
weikio rename integration |
GET |
/ |
weikio get kamelets |
GET |
/ |
weikio describe kamelet |
DELETE |
/ |
weikio delete kamelet |
Deployments#
The commands are on Deployments.
| Method | Path | Command |
|---|---|---|
GET |
/ |
weikio deploy |
PATCH |
/ |
weikio deploy |
GET |
/ |
weikio get deployments |
GET |
/ |
weikio get deployments |
GET |
/ |
weikio get deployments |
GET |
/ |
weikio get fleet |
GET |
/ |
weikio describe deployment |
GET |
/ |
weikio promote |
PATCH |
/ |
weikio promote |
PATCH |
/ |
weikio promote |
DELETE |
/ |
weikio undeploy |
Variables and secrets#
The commands are on Variables and secrets.
| Method | Path | Command |
|---|---|---|
GET |
/ |
weikio get variables |
GET |
/ |
weikio get variables |
GET |
/ |
weikio get variables |
GET |
/ |
weikio get variables |
GET |
/ |
weikio get variables |
GET |
/ |
weikio get variables |
GET |
/ |
weikio describe variable |
GET |
/ |
weikio describe variable |
GET |
/ |
weikio describe variable |
GET |
/ |
weikio describe variable |
GET |
/ |
weikio variable set |
DELETE |
/ |
weikio delete variable |
DELETE |
/ |
weikio delete variable |
DELETE |
/ |
weikio delete variable |
DELETE |
/ |
weikio delete variable |
GET |
/ |
weikio get secrets |
GET |
/ |
weikio get secrets |
GET |
/ |
weikio get secrets |
GET |
/ |
weikio get secrets |
GET |
/ |
weikio secret set |
GET |
/ |
weikio secret set |
GET |
/ |
weikio secret reveal |
GET |
/ |
weikio secret reveal |
DELETE |
/ |
weikio delete secret |
DELETE |
/ |
weikio delete secret |
DELETE |
/ |
weikio delete secret |
DELETE |
/ |
weikio delete secret |
Events and the entity store#
The commands are on Events and the entity store.
| Method | Path | Command |
|---|---|---|
GET |
/ |
weikio get channels |
PUT |
/ |
weikio channel create |
GET |
/ |
weikio get eventsources |
GET |
/ |
weikio get eventsubscriptions |
GET |
/ |
weikio get streams |
GET |
/ |
weikio get record |
GET |
/ |
weikio events list |
GET |
/ |
weikio events show |
POST |
/ |
weikio events purge |
GET |
/ |
weikio deadletters list |
GET |
/ |
weikio deadletters show |
GET |
/ |
weikio get readers |
POST |
/ |
weikio events resend |
GET |
/ |
weikio entities list |
GET |
/ |
weikio entities get |
DELETE |
/ |
weikio entities delete |
GET |
/ |
weikio get entity- |
GET |
/ |
weikio get entity- |
GET |
/ |
weikio describe entity- |
PUT |
/ |
weikio entitystore policy set |
DELETE |
/ |
weikio entitystore policy delete |
PATCH |
/ |
weikio rename entity- |
APIs and subscriptions#
The commands are on APIs and subscriptions.
| Method | Path | Command |
|---|---|---|
PUT |
/ |
weikio gateway create |
GET |
/ |
weikio gateway create |
GET |
/ |
weikio gateway create |
GET |
/ |
weikio gateway set |
GET |
/ |
weikio gateway diff |
GET |
/ |
weikio get gateways |
GET |
/ |
weikio describe gateway |
DELETE |
/ |
weikio delete gateway |
PATCH |
/ |
weikio rename gateway |
PUT |
/ |
weikio api deploy |
POST |
/ |
weikio api rollback |
DELETE |
/ |
weikio api undeploy |
GET |
/ |
weikio get api- |
GET |
/ |
weikio get api- |
GET |
/ |
weikio get apis |
GET |
/ |
weikio describe api |
GET |
/ |
weikio describe api |
GET |
/ |
weikio get apiversions |
GET |
/ |
weikio describe apiversion |
DELETE |
/ |
weikio delete api |
PATCH |
/ |
weikio rename api |
DELETE |
/ |
weikio delete apiversion |
GET |
/ |
weikio get subscriptions |
PUT |
/ |
weikio subscription create |
POST |
/ |
weikio subscription key |
PATCH |
/ |
weikio subscription disable |
DELETE |
/ |
weikio delete subscription |
Agents and sites#
The commands are on Agents and sites.
| Method | Path | Command |
|---|---|---|
POST |
/ |
weikio agent enrol |
GET |
/ |
weikio describe agent |
GET |
/ |
weikio describe agent |
GET |
/ |
weikio describe agent |
GET |
/ |
weikio agent logs |
PATCH |
/ |
weikio agent set- |
POST |
/ |
weikio agent drain |
POST |
/ |
weikio agent undrain |
POST |
/ |
weikio agent credentials |
POST |
/ |
weikio agent revoke |
DELETE |
/ |
weikio delete agent |
Users, API keys, providers and mappings#
The commands are on Users, API keys, providers and mappings.
| Method | Path | Command |
|---|---|---|
GET |
/ |
weikio get users |
POST |
/ |
weikio user create |
POST |
/ |
weikio user create |
DELETE |
/ |
weikio user reset- |
GET |
/ |
weikio describe user |
GET |
/ |
weikio describe user |
GET |
/ |
weikio describe user |
PUT |
/ |
weikio user set |
PATCH |
/ |
weikio user disable |
DELETE |
/ |
weikio delete user |
POST |
/ |
weikio apikey create |
GET |
/ |
weikio describe apikey |
DELETE |
/ |
weikio apikey revoke |
GET |
/ |
weikio get providers |
GET |
/ |
weikio provider set |
PUT |
/ |
weikio provider set |
DELETE |
/ |
weikio delete provider |
GET |
/ |
weikio get mappings |
POST |
/ |
weikio mapping add |
GET |
/ |
weikio delete mapping |
DELETE |
/ |
weikio delete mapping |
Observability#
The commands are on Observability.
| Method | Path | Command |
|---|---|---|
GET |
/ |
weikio logs |
GET |
/ |
weikio platform metrics |
GET |
/ |
weikio platform metrics |
GET |
/ |
weikio platform metrics |
GET |
/ |
weikio audit query |
GET |
/ |
weikio audit show |
GET |
/ |
weikio problems |
GET |
/ |
weikio activity |
GET |
/ |
weikio metrics |
GET |
/ |
weikio metrics |
GET |
/ |
weikio metrics |
GET |
/ |
weikio traces |
GET |
/ |
weikio trace |
GET |
/ |
weikio trace |
GET |
/ |
weikio platform health |
GET |
/ |
weikio platform health |
GET |
/. |
weikio platform health |
Platform administration#
The commands are on Platform administration.
| Method | Path | Command |
|---|---|---|
GET |
/ |
weikio search |
GET |
/ |
weikio platform breakglass |
PUT |
/ |
weikio platform secret set |
GET |
/ |
weikio platform secret list |
DELETE |
/ |
weikio platform secret delete |
GET |
/ |
weikio forwarding get |
GET |
/ |
weikio forwarding status |
GET |
/ |
weikio forwarding status |
DELETE |
/ |
weikio forwarding delete |
POST |
/ |
weikio forwarding audit- |
GET |
/ |
weikio get certificates |
POST |
/ |
weikio certificates renew |
POST |
/ |
weikio certificates renew |
POST |
/ |
weikio certificates renew |
POST |
/ |
weikio certificates dns add |
GET |
/ |
weikio settings get |
PUT |
/ |
weikio settings set |