Knock Audiences API

The Audiences API from Knock — 4 operation(s) for audiences.

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

DELETE /v1/audiences/{key}/members Remove members from an audience · Remove members #
Ask an LLM
“How do I take specific users out of an audience?”
“Can I remove several members from one audience in one call?”
Tell an agent destructive · confirm first
Remove {members} from audience {key}.
Drop these people from the {key} audience: {members}.
GET /v1/audiences/{key}/members List the members of an audience · List members #
Ask an LLM
“Who is currently in a given audience?”
“Can I page through everyone belonging to one audience?”
Tell an agent
List the members of audience {key}.
Show who belongs to the {key} audience.
POST /v1/audiences/{key}/members Add members to an audience · Add members #
Ask an LLM
“How do I add users to an existing audience?”
“Can adding members also create the audience if it doesn't exist yet?”
Tell an agent
Add {members} to audience {key}.
Add {members} to audience {key}, creating the audience if needed ({create_audience}).
DELETE /v1/audiences/{audience_key} Archive an audience everywhere · Archive an audience #
Ask an LLM
“What happens to an audience when I archive it across all environments?”
“How do I retire an audience I no longer use?”
Tell an agent destructive · confirm first
Archive audience {audience_key} using {environment}.
Retire the {audience_key} audience across all environments, scoped from {environment}.
GET /v1/audiences/{audience_key} Get an audience definition by key · Get an audience #
Ask an LLM
“How do I look up a single audience's definition by its key?”
“Can I see an audience without its uncommitted changes?”
Tell an agent
Get audience {audience_key} in {environment}.
Show the {audience_key} audience definition on branch {branch} in {environment}.
PUT /v1/audiences/{audience_key} Create or update an audience · Upsert an audience #
Ask an LLM
“How do I create a new audience or update one that already exists?”
“Can I commit an audience change with a message when I save it?”
Tell an agent
Upsert audience {audience_key} in {environment} with {audience}.
Save audience {audience_key} and commit it with message {commit_message} in {environment}.
PUT /v1/audiences/{audience_key}/validate Validate an audience payload without saving · Validate an audience #
Ask an LLM
“Can I check an audience definition for errors before saving it?”
“Is there a dry run for audience payloads that doesn't persist anything?”
Tell an agent
Validate this audience payload for {audience_key} in {environment}: {audience}.
Dry-run audience {audience} without saving it, under key {audience_key} in {environment}.
GET /v1/audiences List audiences in an environment · List audiences #
Ask an LLM
“Which audiences exist in my development environment?”
“How many audiences can I fetch per page?”
Tell an agent
List all audiences in {environment}.
List the first {limit} audiences on branch {branch} in {environment}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/knock-app:knock-app-audiences-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

knock-app-audiences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Knock App Audiences API
  version: '1.0'
  contact:
    name: Knock
    url: https://knock.app
  description: 'Operations tagged Audiences across 2 of this provider''s published API definitions: knock-audiences-api-openapi.yml, knock-management-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.knock.app
  variables: {}
- url: https://control.knock.app
  variables: {}
security:
- BearerAuth: []
tags:


# --- truncated at 32 KB (69 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/knock-app/refs/heads/main/openapi/knock-app-audiences-api-openapi.yml