Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Knock Commits API

Commits are versioned changes to resources.

Knock Commits API is one of 35 APIs that Knock publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Commits. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 2 JSON Schemas.

This API exposes 5 operations across 4 paths, and defines 2 schemas. It is described by OpenAPI 3.0.3, at version 1.0.

Requests are made against a single base URL, https://api.knock.app.

5 operations 4 paths 2 schemas 2 GET3 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0
Server
https://api.knock.app
Authentication
HTTP Bearer
Contact
License
Proprietary
Resource Areas
1

Authentication & Security 1

Knock Commits API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BearerAuth). By default, every request must be authenticated.

  • BearerAuth — Knock API key as a Bearer token. Use a public key (pk...) for client-side requests or a secret key (sk...) for server-side.

Paths & Operations 5

Across 4 paths, the API surfaces 5 operations — 2 GET, 3 PUT. Each is listed below with its method, path, parameters, and response codes.

Commits 5

Commits are versioned changes to resources.

GET
/v1/commits/{id}
Get a commit
getCommit 1 param → 200
PUT
/v1/commits/{id}/promote
Promote one commit
promoteOneCommit 1 param → 200
PUT
/v1/commits/promote
Promote all changes
promoteAllCommits 4 params → 200
GET
/v1/commits
List commits
listCommits 8 params → 200
PUT
/v1/commits
Commit all changes
commitAllChanges 5 params → 200

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are Commit (6 properties), PageInfo (3 properties). Each schema is shown below with its type and property counts.

PageInfo
object
The information about a paginated result.
3 properties 1 required
Commit
object
A commit is a change to a resource within an environment, made by an author.
6 properties 5 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

knock-app-commits-api-openapi.yml Raw ↑

Other APIs Knock publishes across the network.

Knock Outbound Webhooks
Knock Accounts API
Knock API keys API
Knock Audiences API
Knock Branches API
Knock Broadcasts API
Knock Bulk operations API
Knock Channel data API
Knock Channel Groups API
Knock Channels API
Knock Email layouts API
Knock Environments API