For Agents
Programmatically publish a message to a channel (get), publish a message to a channel (post). Covers 30 operations.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the PubNub REST API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with PubNub REST API.
Publish a message to a channel (GET)
Send a signal to a channel
Subscribe to channels
Here Now for a channel
GET STARTED
Use for: I need to publish a message to a channel (get), I want to publish a message to a channel (post), Search for send a signal to a channel, Find all subscribe to channels
Not supported: Does not handle payments, crm, or developer tools — use for communications only.
PubNub is a real-time messaging platform providing publish/subscribe messaging, presence detection, message storage, push notifications, access control, and channel group management via a REST API. The API exposes 30 endpoints.
Global Here Now
Where Now
Patterns agents use PubNub REST API for, with concrete tasks.
★ Communications Operations
Use the PubNub REST API to perform communications operations programmatically. The API provides 30 endpoints covering core functionality including publish a message to a channel (get), publish a message to a channel (post), send a signal to a channel.
Call GET /publish/{pub_key}/{sub_key}/0/{channel}/{callback}/{payload} to publish a message to a channel (get)
Automated Publish Management
Automate publish operations by combining multiple PubNub REST API endpoints. Agents can publish a message to a channel (post) and then send a signal to a channel in a single workflow.
Call POST /publish/{pub_key}/{sub_key}/0/{channel}/{callback} to publish a message to a channel (post), then verify the result
AI Agent Integration via Jentic
AI agents discover and call PubNub REST API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle none tokens manually.
Search Jentic for 'publish a message to a channel (get)', load the operation schema, and execute with Jentic-managed credentials
30 endpoints — pubnub is a real-time messaging platform providing publish/subscribe messaging, presence detection, message storage, push notifications, access control, and channel group management via a rest api.
METHOD
PATH
DESCRIPTION
/publish/{pub_key}/{sub_key}/0/{channel}/{callback}/{payload}
Publish a message to a channel (GET)
/publish/{pub_key}/{sub_key}/0/{channel}/{callback}
Publish a message to a channel (POST)
/signal/{pub_key}/{sub_key}/0/{channel}/0/{payload}
Send a signal to a channel
/subscribe/{sub_key}/{channel}/{callback}/{timetoken}
Subscribe to channels
/v2/presence/sub-key/{sub_key}/channel/{channel}
Here Now for a channel
/v2/presence/sub-key/{sub_key}
Global Here Now
/v2/presence/sub-key/{sub_key}/uuid/{uuid}
Where Now
/v2/presence/sub-key/{sub_key}/channel/{channel}/uuid/{uuid}
Get presence state
/publish/{pub_key}/{sub_key}/0/{channel}/{callback}/{payload}
Publish a message to a channel (GET)
/publish/{pub_key}/{sub_key}/0/{channel}/{callback}
Publish a message to a channel (POST)
/signal/{pub_key}/{sub_key}/0/{channel}/0/{payload}
Send a signal to a channel
/subscribe/{sub_key}/{channel}/{callback}/{timetoken}
Subscribe to channels
/v2/presence/sub-key/{sub_key}/channel/{channel}
Here Now for a channel
Three things that make agents converge on Jentic-routed access.
Credential isolation
PubNub REST API none credentials are stored encrypted in the Jentic vault (MAXsystem). Agents receive scoped access tokens — raw secrets never enter the agent context.
Intent-based discovery
Agents search by intent (e.g., 'publish a message to a channel (get)') and Jentic returns the matching PubNub REST API operation with its input schema, so the agent can call the right endpoint without browsing docs.
Time to first call
Direct PubNub REST API integration: 1-3 days for auth handling, response parsing, and error cases. Through Jentic: under 1 hour — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
Specific to using PubNub REST API through Jentic.
What authentication does the PubNub REST API use?
The PubNub REST API uses no authentication. Through Jentic, these credentials are stored encrypted in the MAXsystem vault and injected at execution time, so raw secrets never enter the agent context.
Can I publish a message to a channel (get) with the PubNub REST API?
Yes. Use the GET /publish/{pub_key}/{sub_key}/0/{channel}/{callback}/{payload} endpoint. The API returns structured JSON responses that agents can parse and act on directly.
What are the rate limits for the PubNub REST API?
Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.
How do I publish a message to a channel (get) through Jentic?
Install the Jentic SDK with pip install jentic, authenticate at https://app.jentic.com/sign-up, then search for 'publish a message to a channel (get)'. Jentic returns the matching PubNub REST API operation with its input schema. Load the schema and execute the call — credentials are injected automatically.
How many endpoints does the PubNub REST API have?
The PubNub REST API exposes 30 endpoints covering publish, subscribe, signal operations.
/v2/presence/sub-key/{sub_key}
Global Here Now
/v2/presence/sub-key/{sub_key}/uuid/{uuid}
Where Now
/v2/presence/sub-key/{sub_key}/channel/{channel}/uuid/{uuid}
Get presence state