Builds
Follow repository builds, read builder logs and trigger a deployment.
Requires apps:read (View apps, their configuration and status).
An API key from Account settings, e.g. kn_...
Project id
^[0-9a-fA-F]{24}$App id
^[0-9a-fA-F]{24}$Items per page, 1 to 200 (default 50)
nextCursor from the previous page; omit for the first page
OK
The request body, query or headers are invalid (invalid_request, invalid_idempotency_key, ...)
The API key is missing, malformed, unknown, revoked or expired
The key lacks a required permission (insufficient_scope), is limited to other projects or to projects while the call acts on the organization (key_project_restricted), the caller's role on the resource is too low (forbidden), or the account is frozen
No such resource, or the caller cannot see it
Too many requests; see the X-RateLimit-* headers and Retry-After
Something failed on our side; the request id is in the body
A service we depend on (the runtime, GitHub) did not answer; retry shortly
The feature is not enabled on this server (github_not_configured), or a service we depend on is down; retry later
A service we depend on did not answer in time; retry shortly
GET /v1/projects/{projectId}/apps/{appId}/builds HTTP/1.1
Host: api.kinesis.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"builds": [
{
"id": "text",
"appId": "text",
"status": "pending",
"step": "vcs_import",
"imageBuildStatus": null,
"source": {
"repo": null,
"branch": null,
"commitSha": null,
"commitMessage": null,
"contextDir": null,
"dockerfilePath": null
},
"error": {
"step": "text",
"message": "text",
"code": null
},
"createdAt": "2026-01-01T00:00:00.000Z",
"startedAt": "2026-01-01T00:00:00.000Z",
"finishedAt": "2026-01-01T00:00:00.000Z",
"pollAfterSec": 1
}
],
"nextCursor": null
}Start a new build of a GitHub-sourced app from its branch head, or from one commit, cancelling any build still running. The app is redeployed and started when the build succeeds; poll apps.builds.get to follow it.
Requires apps:write (Create, update, start, stop, restart and rebuild apps), compute:spend (Spend credits: start, scale or resize apps, provision or wake servers, rent spot instances).
Errors specific to this operation:
409
app_source_unsupported: The app is not built from a repository403
serverless_disabled: The app would run on Kinesis serverless capacity, which the organization keeps to its admins; target a grid503
github_not_configured: GitHub deployments are not enabled on this server404
github_installation_not_found: The caller has no connected GitHub account with this installation id; connect it in the dashboard404
github_repo_not_found: The installation cannot see the repository; grant the GitHub App access to it502
upstream_github: GitHub did not answer; retry shortly404
github_commit_not_found: No commit has this sha
An API key from Account settings, e.g. kn_...
Project id
^[0-9a-fA-F]{24}$App id
^[0-9a-fA-F]{24}$Commit to build instead of the branch head
^[0-9a-fA-F]{7,40}$Accepted
The request body, query or headers are invalid (invalid_request, invalid_idempotency_key, ...)
The API key is missing, malformed, unknown, revoked or expired
The key lacks a required permission (insufficient_scope), is limited to other projects or to projects while the call acts on the organization (key_project_restricted), the caller's role on the resource is too low (forbidden), or the account is frozen
No such resource, or the caller cannot see it
The resource is in a state that does not allow the action, or an idempotency key was reused
The request body exceeds the limit given in the body
Too many requests; see the X-RateLimit-* headers and Retry-After
Something failed on our side; the request id is in the body
A service we depend on (the runtime, GitHub) did not answer; retry shortly
The feature is not enabled on this server (github_not_configured), or a service we depend on is down; retry later
A service we depend on did not answer in time; retry shortly
POST /v1/projects/{projectId}/apps/{appId}/builds HTTP/1.1
Host: api.kinesis.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"commitSha": "text"
}{
"build": {
"id": "text",
"appId": "text",
"status": "pending",
"step": "vcs_import",
"imageBuildStatus": null,
"source": {
"repo": null,
"branch": null,
"commitSha": null,
"commitMessage": null,
"contextDir": null,
"dockerfilePath": null
},
"error": {
"step": "text",
"message": "text",
"code": null
},
"createdAt": "2026-01-01T00:00:00.000Z",
"startedAt": "2026-01-01T00:00:00.000Z",
"finishedAt": "2026-01-01T00:00:00.000Z",
"pollAfterSec": 1
},
"cancelledBuilds": 1
}Requires apps:read (View apps, their configuration and status).
An API key from Account settings, e.g. kn_...
Project id
^[0-9a-fA-F]{24}$App id
^[0-9a-fA-F]{24}$Build id
^[0-9a-fA-F]{24}$OK
The request body, query or headers are invalid (invalid_request, invalid_idempotency_key, ...)
The API key is missing, malformed, unknown, revoked or expired
The key lacks a required permission (insufficient_scope), is limited to other projects or to projects while the call acts on the organization (key_project_restricted), the caller's role on the resource is too low (forbidden), or the account is frozen
No such resource, or the caller cannot see it
Too many requests; see the X-RateLimit-* headers and Retry-After
Something failed on our side; the request id is in the body
A service we depend on (the runtime, GitHub) did not answer; retry shortly
The feature is not enabled on this server (github_not_configured), or a service we depend on is down; retry later
A service we depend on did not answer in time; retry shortly
GET /v1/projects/{projectId}/apps/{appId}/builds/{buildId} HTTP/1.1
Host: api.kinesis.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"appId": "text",
"status": "pending",
"step": "vcs_import",
"imageBuildStatus": null,
"source": {
"repo": null,
"branch": null,
"commitSha": null,
"commitMessage": null,
"contextDir": null,
"dockerfilePath": null
},
"error": {
"step": "text",
"message": "text",
"code": null
},
"createdAt": "2026-01-01T00:00:00.000Z",
"startedAt": "2026-01-01T00:00:00.000Z",
"finishedAt": "2026-01-01T00:00:00.000Z",
"pollAfterSec": 1
}Read the image builder's log for a build. The whole log once the build has finished, a snapshot of what has been written so far while it runs (empty until the builder starts writing).
Requires monitoring:read (Read usage metrics, app logs, build logs and server logs).
An API key from Account settings, e.g. kn_...
Project id
^[0-9a-fA-F]{24}$App id
^[0-9a-fA-F]{24}$Build id
^[0-9a-fA-F]{24}$OK
The request body, query or headers are invalid (invalid_request, invalid_idempotency_key, ...)
The API key is missing, malformed, unknown, revoked or expired
The key lacks a required permission (insufficient_scope), is limited to other projects or to projects while the call acts on the organization (key_project_restricted), the caller's role on the resource is too low (forbidden), or the account is frozen
No such resource, or the caller cannot see it
Too many requests; see the X-RateLimit-* headers and Retry-After
Something failed on our side; the request id is in the body
A service we depend on (the runtime, GitHub) did not answer; retry shortly
The feature is not enabled on this server (github_not_configured), or a service we depend on is down; retry later
A service we depend on did not answer in time; retry shortly
GET /v1/projects/{projectId}/apps/{appId}/builds/{buildId}/logs HTTP/1.1
Host: api.kinesis.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"status": "pending",
"imageBuildStatus": null,
"lines": [
"text"
],
"complete": true,
"truncated": true
}Was this helpful?
