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 Evangelistoverlay
GET/apps/{app_id}/namespacesList namespaces on an app · Lists namespaces#
Ask an LLM
“Which namespaces exist on my Ably application?”
“Can I see every namespace defined for an app ID?”
Tell an agent
List the namespaces for application {app_id}.
Show all namespaces on app {app_id}.
POST/apps/{app_id}/namespacesCreate a namespace on an app · Creates a namespace#
Ask an LLM
“How do I create a new namespace on my application?”
“Can I make a namespace TLS-only or push-enabled when I create it?”
Tell an agent
Create namespace {id} on application {app_id}.
Create namespace {id} on app {app_id} with TLS-only set to {tlsOnly}.
PATCH/apps/{app_id}/namespaces/{namespace_id}Update a namespace on an app · Updates a namespace#
Ask an LLM
“How do I change the batching settings on an existing namespace?”
“Can I turn off push notifications for a namespace I already created?”
Tell an agent
Set the batching interval of namespace {namespace_id} on app {app_id} to {batchingInterval}.
Update namespace {namespace_id} on app {app_id} so push is {pushEnabled}.
DELETE/apps/{app_id}/namespaces/{namespace_id}Delete a namespace from an app · Deletes a namespace#
Ask an LLM
“Can I delete a namespace I no longer use on my application?”
“What happens to channels in a namespace when I delete it?”
Tell an agentdestructive · confirm first
Delete namespace {namespace_id} from application {app_id}.
Remove the {namespace_id} namespace on app {app_id}.
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Control API v1 Namespaces API
version: 1.0.32
description: 'Use the Control API to manage your applications, namespaces, keys, queues, rules, and more.
Detailed information on using this API can be found in the Ably Control API docs.
Control API is currently in Preview.'
servers:
- url: https://control.ably.net/v1
tags:
- name: Namespaces
paths:
/apps/{app_id}/namespaces:
get:
summary: Lists namespaces
description: List the namespaces for the specified application ID.
tags:
- Namespaces
parameters:
- name: app_id
description: The application ID.
in: path
required: true
schema:
type: string
security:
- bearer_auth: []
responses:
'200':
description: Namespace list
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/namespace_response'
'401':
description: Authentication failed
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'404':
description: App not found
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'504':
description: Gateway timeout
content:
application/json:
schema:
$ref: '#/components/schemas/error'
operationId: getAppsByAppIdNamespaces
x-operation-id-source: derived
post:
summary: Creates a namespace
description: Creates a namespace for the specified application ID.
tags:
- Namespaces
parameters:
- name: app_id
description: The application ID.
in: path
required: true
schema:
type: string
security:
- bearer_auth: []
responses:
'201':
description: Namespace created
content:
application/json:
schema:
$ref: '#/components/schemas/namespace_response'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'401':
description: Authentication failed
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'404':
description: App not found
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'422':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/error'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/namespace_post'
operationId: postAppsByAppIdNamespaces
x-operation-id-source: derived
/apps/{app_id}/namespaces/{namespace_id}:
patch:
summary: Updates a namespace
description: Updates the namespace with the specified ID, for the application with the specified application ID.
tags:
- Namespaces
parameters:
- name: app_id
description: The application ID.
in: path
required: true
schema:
type: string
- name: namespace_id
description: The namespace ID.
in: path
required: true
schema:
type: string
security:
- bearer_auth: []
responses:
'200':
description: Namespace updated
content:
application/json:
schema:
$ref: '#/components/schemas/namespace_response'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'401':
description: Authentication failed
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'504':
description: Gateway timeout
content:
application/json:
schema:
$ref: '#/components/schemas/error'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/namespace_patch'
operationId: patchAppsByAppIdNamespacesByNamespaceId
x-operation-id-source: derived
delete:
summary: Deletes a namespace
description: Deletes the namespace with the specified ID, for the specified application ID.
tags:
- Namespaces
parameters:
- name: app_id
description: The application ID.
in: path
required: true
schema:
type: string
- name: namespace_id
description: The namespace ID.
in: path
required: true
schema:
type: string
security:
- bearer_auth: []
responses:
'204':
description: Namespace deleted
content: {}
'401':
description: Authentication failed
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'504':
description: Gateway timeout
content:
application/json:
schema:
$ref: '#/components/schemas/error'
operationId: deleteAppsByAppIdNamespacesByNamespaceId
x-operation-id-source: derived
components:
schemas:
namespace_patch:
type: object
additionalProperties: false
properties:
authenticated:
type: boolean
default: false
description: If `true`, clients will not be permitted to use (including to attach, publish, or subscribe) any channels within this namespace unless they are identified, that is, authenticated using a client ID. See the documentation for <a href="https://ably.com/docs/auth/identified-clients">identified clients</a> for more details.
example: false
persisted:
type: boolean
default: false
description: If `true`, all messages on a channel will be stored for 24 hours. You can access stored messages via the History API. Please note that for each message stored, an additional message is deducted from your monthly allocation.
example: false
persistLast:
type: boolean
default: false
description: If `true`, the last message published on a channel will be stored for 365 days. You can access the stored message only by using the channel rewind mechanism and attaching with rewind=1. Please note that for each message stored, an additional message is deducted from your monthly allocation.
example: false
pushEnabled:
type: boolean
default: false
description: If `true`, publishing messages with a push payload in the extras field is permitted and can trigger the delivery of a native push notification to registered devices for the channel.
example: false
batchingEnabled:
type: boolean
default: false
description: If `true`, channels within this namespace will start batching inbound messages instead of sending them out immediately to subscribers.
batchingPolicy:
type: string
default: simple
description: If `true`, groups multiple incoming messages into a single batch.
example: simple
batchingInterval:
type: integer
default: 20
description: If `true`, the batching interval, configurable from 20ms to 1s, temporarily holds and aggregates incoming messages. These messages are then combined and delivered as a single batch once the interval elapses or a size limit is reached (before the interval elapses).
example: 20
tlsOnly:
type: boolean
default: false
description: If `true`, only clients that are connected using TLS will be permitted to subscribe to any channels within this namespace.
example: false
exposeTimeserial:
type: boolean
description: If `true`, messages received on a channel will contain a unique `timeserial` that can be referenced by later messages for use with message interactions.
error:
type: object
additionalProperties: false
properties:
message:
type: string
description: The error message.
code:
type: integer
description: The HTTP status code returned.
statusCode:
type: integer
description: The Ably error code.
href:
type: string
description: The URL to documentation about the error code.
details:
type:
- object
- 'null'
description: Any additional details about the error message.
required:
- message
- code
- statusCode
- href
namespace_response:
type: object
additionalProperties: false
properties:
authenticated:
type: boolean
default: false
description: If `true`, clients will not be permitted to use (including to attach, publish, or subscribe) any channels within this namespace unless they are identified, that is, authenticated using a client ID. See the documentation for <a href="https://ably.com/docs/auth/identified-clients">identified clients</a> for more details.
example: false
created:
type: integer
description: Unix timestamp representing the date and time of creation of the namespace.
example: 1602844091815
modified:
type: integer
description: Unix timestamp representing the date and time of last modification of the namespace.
example: 1614679682091
id:
type: string
description: The namespace or channel name that the channel rule will apply to. For example, if you specify `namespace` the namespace will be set to `namespace` and will match with channels `namespace:*` and `namespace`.
example: namespace
persisted:
type: boolean
default: false
description: If `true`, all messages on a channel will be stored for 24 hours. You can access stored messages via the History API. Please note that for each message stored, an additional message is deducted from your monthly allocation.
example: false
persistLast:
type: boolean
default: false
description: If `true`, the last message published on a channel will be stored for 365 days. You can access the stored message only by using the channel rewind mechanism and attaching with rewind=1. Please note that for each message stored, an additional message is deducted from your monthly allocation.
example: false
pushEnabled:
type: boolean
default: false
description: If `true`, publishing messages with a push payload in the extras field is permitted and can trigger the delivery of a native push notification to registered devices for the channel.
example: false
batchingEnabled:
type: boolean
default: false
description: If `true`, channels within this namespace will start batching inbound messages instead of sending them out immediately to subscribers.
example: false
batchingPolicy:
type: string
default: simple
description: If `true`, groups multiple incoming messages into a single batch.
example: simple
batchingInterval:
type: integer
default: 20
description: If `true`, the batching interval, configurable from 20ms to 1s, temporarily holds and aggregates incoming messages. These messages are then combined and delivered as a single batch once the interval elapses or a size limit is reached (before the interval elapses).
example: 20
tlsOnly:
type: boolean
default: false
description: If `true`, only clients that are connected using TLS will be permitted to subscribe to any channels within this namespace.
example: false
exposeTimeserial:
type: boolean
description: If `true`, messages received on a channel will contain a unique `timeserial` that can be referenced by later messages for use with message interactions.
namespace_post:
type: object
additionalProperties: false
properties:
id:
type: string
description: The namespace or channel name that the channel rule will apply to. For example, if you specify `namespace` the namespace will be set to `namespace` and will match with channels `namespace:*` and `namespace`.
example: namespace
authenticated:
type: boolean
default: false
description: If `true`, clients will not be permitted to use (including to attach, publish, or subscribe) any channels within this namespace unless they are identified, that is, authenticated using a client ID. See the documentation for <a href="https://ably.com/docs/auth/identified-clients">identified clients</a> for more details.
example: false
persisted:
type: boolean
default: false
description: If `true`, all messages on a channel will be stored for 24 hours. You can access stored messages via the History API. Please note that for each message stored, an additional message is deducted from your monthly allocation.
example: false
persistLast:
type: boolean
default: false
description: If `true`, the last message published on a channel will be stored for 365 days. You can access the stored message only by using the channel rewind mechanism and attaching with rewind=1. Please note that for each message stored, an additional message is deducted from your monthly allocation.
example: false
pushEnabled:
type: boolean
default: false
description: If `true`, publishing messages with a push payload in the extras field is permitted and can trigger the delivery of a native push notification to registered devices for the channel.
example: false
batchingEnabled:
type: boolean
default: false
description: If `true`, channels within this namespace will start batching inbound messages instead of sending them out immediately to subscribers.
example: false
batchingPolicy:
type: string
default: simple
description: If `true`, groups multiple incoming messages into a single batch.
example: simple
batchingInterval:
type: integer
default: 20
description: If `true`, the batching interval, configurable from 20ms to 1s, temporarily holds and aggregates incoming messages. These messages are then combined and delivered as a single batch once the interval elapses or a size limit is reached (before the interval elapses).
example: 20
tlsOnly:
type: boolean
default: false
description: If `true`, only clients that are connected using TLS will be permitted to subscribe to any channels within this namespace.
example: false
exposeTimeserial:
type: boolean
default: false
description: If `true`, messages received on a channel will contain a unique `timeserial` that can be referenced by later messages for use with message interactions.
required:
- id
securitySchemes:
bearer_auth:
type: http
scheme: bearer
description: Control API uses bearer authentication. You need to generate an access token for use with this API. More details can be found in the <a href="https://ably.com/docs/account/control-api/#authentication">Ably docs</a>.