Skip to main content
POST
Go (SDK)

Authorizations

Authorization
string
header
required

Unkey uses bearer tokens for authentication. Public integrations use root keys, while the dashboard proxy uses short-lived JWTs. To authenticate, include the token in the Authorization header of each request:

Root keys have specific permissions attached to them, controlling what operations they can perform. Resource permissions use Unkey Resource Names plus actions, like unkey:v1:ws_123:projects/*/keyspaces/*/keys/*#write. Security best practices:

  • Keep root keys secure and never expose them in client-side code
  • Use different root keys for different environments
  • Rotate keys periodically, especially after team member departures
  • Create keys with minimal necessary permissions following least privilege principle
  • Monitor key usage with audit logs.

Body

application/json

Retrieve the build log entries of a deployment. Get the deployment id from createDeployment or listDeployments.

deploymentId
string
required

Identifies a resource by either its unique ID or its slug. Accepts a prefixed ID (such as 'proj_' or 'app_') or a slug.

Required string length: 3 - 255
Pattern: ^[a-zA-Z0-9_-]+$
Example:

"proj_1234abcd"

stepId
string

Return only the log entries of this build step. Use the stepId of an entry from a previous response. An unknown step returns no entries. Omit this field to return the entries of every step.

Required string length: 1 - 256
Example:

"sha256:3f9c2b7e1d4a6f8c0b5e9d2a7c4f1e8b3d6a9c2f5e8b1d4a7c0f3e6b9d2a5c8f"

cursor
string

Pagination cursor from a previous response to fetch the entries after it. Omit it to start at the first entry of the build.

Required string length: 1 - 1024
Example:

"1704067201000001"

limit
integer
default:100

Maximum number of log entries to return. A response can contain fewer entries and still have hasMore: true when the entries are large.

Required range: 1 <= x <= 500

Response

Successfully retrieved the build log entries.

meta
object
required

Metadata object included in every API response. This provides context about the request and is essential for debugging, audit trails, and support inquiries. The requestId is particularly important when troubleshooting issues with the Unkey support team.

data
object[]
required

The log entries, in the order the build printed them.

Maximum array length: 500
pagination
object
required

Pagination metadata for list endpoints. Provides information necessary to traverse through large result sets efficiently using cursor-based pagination.