Skip to main content

Overview

OneCLI connects AI agents to Pylon with an API token. Agents can read and manage issues, accounts, contacts, knowledge base articles, and tasks. The gateway adds the token to requests to the Pylon API, so your agent never sees it. Pylon’s public API takes only API tokens, so a token is the only way to connect.

What you will set up

  • A Pylon API token, created by a Pylon admin
  • A connection set to your Pylon region, US or EU
  • Per-tool permissions on the item, such as approval before a reply goes to a customer

Connect Pylon

1

Create an API token in Pylon

In Pylon, open Settings > API Tokens, or go to app.usepylon.com/settings/api-tokens, and create a token. Only Admin users can create API tokens. Copy the token.
2

Paste it in OneCLI

In the OneCLI dashboard, open your vault and click Add item. Pick Pylon on the Connected app tab and click Connect. In the window that opens, fill in both fields.Click Connect Pylon. OneCLI checks the token against the Pylon API in that region before saving it. A wrong token is rejected. A token from the other region is rejected with a message that tells you which region to pick.
OneCLI names the connection after your Pylon organization and tags it with its region. To use your own name, open Advanced and fill in Connection label, for example support or eu-tenant.
A Pylon token works only in the region its tenant is hosted in. Agents can always call the documented base URL, https://api.usepylon.com. For an EU connection, the gateway sends each request to api.eu.usepylon.com for you.

What agents can do

Pylon’s search endpoints are POST requests with the filter in the body. OneCLI files them as reads, so they stay allowed when you set the write tools to Never. Pylon’s hosted MCP server at mcp.usepylon.com signs in with its own OAuth, not an API token, so it is not part of this connection.

Quick example

No Authorization header is needed. The gateway adds the token as a Bearer header:
For every endpoint and parameter, see the Pylon API reference.

Controlling access

Permissions are set on the item, per tool. In the vault, click Manage next to the item and set each tool to Always allow, Needs approval, or Never. A new app starts with every tool on Always allow, so tighten the tools you want held or refused. Every agent connected to the vault gets the same permissions. Reply to issue sends a customer-facing reply, and Submit ticket form acts on a customer’s behalf, so put those behind approval. Draft issue reply and Create internal note stay inside your team. The delete and merge tools, such as Delete issue and Merge accounts, are tools of their own, so you can block them without blocking ordinary updates. Organization rules can block, require approval, or rate-limit on top. A request that is not allowed is never sent to Pylon. To disconnect, open the Pylon item in its vault and choose Delete from the More menu, then delete the token in Pylon under Settings > API Tokens.

FAQ

Create a new token in Pylon, then open the Pylon item in its vault, choose Reconnect from the More menu, and paste it in. Agents on the vault use it on their next request. Then delete the old token.
Store it in OneCLI. The gateway adds it at the proxy, so the agent never holds the token. See How it works.
OneCLI checks the token in the region you entered. Either the token is wrong, or it belongs to the other region. Check the token, or switch Region between us and eu.
Yes. Put Reply to issue behind approval in the item’s permissions.