On this page
#HTTP API
The HTTP API is exposed by kimbap serve. It provides the same capabilities as the CLI, accessible over HTTP for programmatic integration.
kimbap serve --port 8080#Base URL
All endpoints are served under /v1/. Default listen address is http://127.0.0.1:8080.
#Authentication
Requests to the API require a valid kimbap bearer token in the Authorization header:
Authorization: Bearer <kimbap_token>Tokens are issued via kimbap token and scoped to specific actions and tenants.
#Endpoints
#Execute an action
POST /v1/actions/{service}/{action}:executeRuns an action through the full pipeline (identify, resolve, policy, credential, execute, audit).
Request body:
{
"input": {
"owner": "acme",
"repo": "api"
}
}Response:
{
"result": { ... }
}#List pending approvals
GET /v1/approvalsReturns all pending approval requests.
#Approve a held action
POST /v1/approvals/{id}:approveApproves a held action, allowing it to proceed through the pipeline.
#Audit log
GET /v1/auditReturns recent audit log entries.
#Policy management
GET /v1/policies
PUT /v1/policiesRead or replace the active policy document.
#Vault metadata
GET /v1/vaultList vault key metadata. Secret values are never returned.
#Health check
GET /v1/healthReturns server health status.
#Related CLI Commands
Each API endpoint has a corresponding CLI command:
API (/v1/...) | CLI (kimbap ...) |
|---|---|
POST /v1/actions/{svc}/{action}:execute | kimbap call <svc>.<action> |
GET /v1/approvals | kimbap approve list |
POST /v1/approvals/{id}:approve | kimbap approve accept <id> |
GET /v1/audit | kimbap audit tail |
GET /v1/policies | kimbap policy get |
PUT /v1/policies | kimbap policy set --file <path> |
GET /v1/vault | kimbap vault list |
GET /v1/health | kimbap doctor (local diagnostics) |
The CLI is the primary interface. Use the HTTP API when integrating kimbap into existing systems or when a persistent server is preferred over per-call CLI invocations.
#Next steps
- CLI Reference — full command reference
- Deployment — production server configuration
- Architecture — how the execution pipeline works