Apache Pulsar Namespaces API

The Namespaces API from Apache Pulsar — 3 operation(s) for namespaces.

GitHub OpenAPI

Operations 6

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

GET /namespaces/{tenant} List namespaces in a tenant · List namespaces within a tenant #
Ask an LLM
“Which namespaces exist under a tenant?”
“Can I see all namespace names in one tenant?”
Tell an agent
List namespaces in tenant {tenant}.
Show every namespace under {tenant}.
GET /namespaces/{tenant}/{namespace} Get policies for a namespace · Get namespace policies #
Ask an LLM
“What replication and retention policies apply to a namespace?”
“Can I read a namespace's schema compatibility settings?”
Tell an agent
Get policies for namespace {namespace} in tenant {tenant}.
Show the replication and retention settings of {namespace} under {tenant}.
PUT /namespaces/{tenant}/{namespace} Create a namespace · Create namespace #
Ask an LLM
“How do I create a new namespace for a tenant?”
“Can I set message TTL and bundles when creating a namespace?”
Tell an agent
Create namespace {namespace} in tenant {tenant}.
Create {namespace} under {tenant} with message TTL {ttl}.
DELETE /namespaces/{tenant}/{namespace} Delete a namespace · Delete namespace #
Ask an LLM
“How do I delete a namespace?”
“Can I force-delete a namespace that still has topics?”
Tell an agent destructive · confirm first
Delete namespace {namespace} in tenant {tenant}.
Force-delete {namespace} under {tenant} with force {force}.
GET /namespaces/{tenant}/{namespace}/retention Get a namespace's retention settings · Get retention configuration #
Ask an LLM
“How long are messages retained in a namespace?”
“What retention size and time does a namespace use?”
Tell an agent
Get retention settings for namespace {namespace} in tenant {tenant}.
Show how long messages are kept in {namespace} under {tenant}.
POST /namespaces/{tenant}/{namespace}/retention Set a namespace's retention settings · Set retention configuration #
Ask an LLM
“How do I change how long messages are retained in a namespace?”
“Can I cap retention by size instead of time?”
Tell an agent
Set retention for namespace {namespace} in tenant {tenant} to {time} minutes.
Cap retention of {namespace} under {tenant} at {size} MB.

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/apache-pulsar:apache-pulsar-namespaces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

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

OpenAPI Specification

apache-pulsar-namespaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Apache Pulsar Admin REST Namespaces API
  description: The Pulsar Admin API provides REST endpoints for managing tenants, namespaces, topics, subscriptions, functions, connectors, packages, and cluster configuration in an Apache Pulsar deployment.
  version: 3.3.0
  contact:
    name: Apache Pulsar
    url: https://pulsar.apache.org/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://localhost:8080/admin/v2
  description: Default Pulsar Admin API
tags:
- name: Namespaces
paths:
  /namespaces/{tenant}:
    get:
      summary: List namespaces within a tenant
      operationId: getTenantNamespaces
      tags:
      - Namespaces
      parameters:
      - name: tenant
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: List of namespaces
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
  /namespaces/{tenant}/{namespace}:
    get:
      summary: Get namespace policies
      operationId: getNamespacePolicies
      tags:
      - Namespaces
      parameters:
      - name: tenant
        in: path
        required: true
        schema:
          type: string
      - name: namespace
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Namespace policies
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policies'
    put:
      summary: Create namespace
      operationId: createNamespace
      tags:
      - Namespaces
      parameters:
      - name: tenant
        in: path
        required: true
        schema:
          type: string
      - name: namespace
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Policies'
      responses:
        '204':
          description: Namespace created
    delete:
      summary: Delete namespace
      operationId: deleteNamespace
      tags:
      - Namespaces
      parameters:
      - name: tenant
        in: path
        required: true
        schema:
          type: string
      - name: namespace
        in: path
        required: true
        schema:
          type: string
      - name: force
        in: query
        schema:
          type: boolean
          default: false
      responses:
        '204':
          description: Namespace deleted
  /namespaces/{tenant}/{namespace}/retention:
    get:
      summary: Get retention configuration
      operationId: getRetention
      tags:
      - Namespaces
      parameters:
      - name: tenant
        in: path
        required: true
        schema:
          type: string
      - name: namespace
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Retention policies
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RetentionPolicies'
    post:
      summary: Set retention configuration
      operationId: setRetention
      tags:
      - Namespaces
      parameters:
      - name: tenant
        in: path
        required: true
        schema:
          type: string
      - name: namespace
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RetentionPolicies'
      responses:
        '204':
          description: Retention set
components:
  schemas:
    RetentionPolicies:
      type: object
      properties:
        retentionTimeInMinutes:
          type: integer
        retentionSizeInMB:
          type: integer
    Policies:
      type: object
      properties:
        replication_clusters:
          type: array
          items:
            type: string
        bundles:
          type: object
        retention_policies:
          $ref: '#/components/schemas/RetentionPolicies'
        schema_auto_update_compatibility_strategy:
          type: string
        message_ttl_in_seconds:
          type: integer
        max_producers_per_topic:
          type: integer
        max_consumers_per_topic:
          type: integer
        max_consumers_per_subscription:
          type: integer
        backlog_quota_map:
          type: object