Know of an official OpenAPI document? Contribute it →
For Agents
Create and retrieve text pastes on the CentOS community pastebin. Browse recent and trending pastes, and list supported syntax highlighting languages.
Use for: I need to share a code snippet via a pastebin link, Retrieve the content of a specific paste by ID, I want to create a paste with Python syntax highlighting, List all supported languages on CentOS Pastebin
Not supported: Does not handle user accounts, paste editing, paste deletion, or private pastes - use for anonymous public paste creation and browsing only.
Jentic publishes the only available OpenAPI specification for CentOS Pastebin API, keeping it validated and agent-ready. The CentOS Pastebin API provides a REST interface for creating, retrieving, and browsing paste entries on the CentOS community pastebin service. It supports 6 endpoints covering paste creation with syntax highlighting, retrieval by paste ID, browsing recent and trending pastes, fetching random entries, and listing supported programming languages.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the CentOS Pastebin 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://jentic.com/install.sh?src=apis&api=%2Fapis%2Fpaste.centos.org%2Fcentos-paste" | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fpaste.centos.org%2Fcentos-paste" | 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 CentOS Pastebin API.
Create new paste entries with syntax highlighting for supported languages
Retrieve paste content by unique paste identifier
Browse recently submitted pastes across the community
Discover trending pastes ranked by view count
Fetch a random paste entry for sampling
List all supported programming languages for syntax highlighting
Patterns agents use CentOS Pastebin API for, with concrete tasks.
★ Code Snippet Sharing for Support
Create paste entries with syntax-highlighted code to share configuration files, error logs, or code snippets in community support channels. The CentOS Pastebin API accepts raw text content with a language parameter for highlighting and returns a unique paste URL suitable for IRC, forums, or issue trackers. No authentication required for paste creation.
Create a new paste with Python syntax highlighting via POST /create containing a sample error traceback, then retrieve the paste URL from the response
Community Paste Monitoring
Monitor recent and trending paste activity on the CentOS Pastebin to track community discussions, common error patterns, or frequently shared configurations. The trending endpoint ranks pastes by view count while the recent endpoint provides a chronological feed. Useful for community moderators and support automation tools.
Retrieve the list of trending pastes via GET /trending and identify pastes related to system configuration errors
Automated Log Sharing in CI/CD Pipelines
Integrate the CentOS Pastebin API into CI/CD workflows to automatically paste build logs or test output when failures occur. The unauthenticated POST endpoint accepts any text content and returns a shareable URL that can be attached to notifications or issue comments. Supports language detection for common log formats.
POST build failure log content to /create with language set to 'log', then format the returned paste URL into a Slack notification message
AI Agent Paste Operations via Jentic
AI agents create and retrieve pastes through Jentic to share code snippets or configuration files during automated support workflows. Since the CentOS Pastebin API requires no authentication, Jentic provides operation discovery and schema validation, ensuring agents construct correct request bodies with valid language parameters.
Search Jentic for 'create a code paste', load the CentOS Pastebin create operation schema, and execute with content and language parameters
6 endpoints — jentic publishes the only available openapi specification for centos pastebin api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/create
Create a new paste entry
/paste/{pasteId}
Retrieve a paste by ID
/recent
List recently created pastes
/trending
List trending pastes by views
/langs
List supported syntax highlighting languages
/random
Retrieve a random paste
/create
Create a new paste entry
/paste/{pasteId}
Retrieve a paste by ID
/recent
List recently created pastes
/trending
List trending pastes by views
/langs
List supported syntax highlighting languages
/random
Retrieve a random paste
What agents get from Jentic-routed access to this vendor.
Setup
Wiring the CentOS Pastebin API by hand means learning its open POST and GET conventions, setting the paste.centos.org/api host, and building request shaping for language values and paste ids yourself. Through Jentic you install once, import the CentOS Pastebin API from the API Directory, and your agent calls it with no credential to manage since it is open-access.
Permission scoping
This API is anonymous and public, so you limit the agent to the operations it needs, such as creating a paste or fetching one by id. You choose the operations it may call, so browsing recent, trending, or random pastes is not included unless you add them.
Credential isolation
The CentOS Pastebin API is open-access and needs no credential, so there is no key to store. If you later front it with a gateway token, that token is stored once, encrypted, by your own Jentic One instance, injected at execution time, and never enters the agent's prompt, logs, or context.
Intent-based discovery
Agents search Jentic by intent such as 'share a code snippet' or 'fetch a paste by id', and Jentic returns the matching CentOS Pastebin operation with its input schema so the agent calls the right endpoint without browsing the reference docs.
Alternatives and complements available in the Jentic catalogue.
Specific to using CentOS Pastebin API through Jentic.
Why is there no official OpenAPI spec for CentOS Pastebin API?
The CentOS project does not publish an OpenAPI specification for their pastebin service. Jentic generates and maintains this spec so that AI agents and developers can call CentOS Pastebin API via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.
What authentication does the CentOS Pastebin API use?
The CentOS Pastebin API requires no authentication. All endpoints are publicly accessible without API keys or tokens. Through Jentic, agents can discover and call operations without any credential setup.
What programming languages are supported for syntax highlighting?
Call GET /langs to retrieve the full list of supported languages. The endpoint returns language identifiers that you pass as a parameter when creating a paste via POST /create to enable syntax highlighting in the rendered view.
How do I retrieve a paste by its ID?
Call GET /paste/{pasteId} with the paste identifier. The endpoint returns the paste content, language, creation timestamp, and view count. Paste IDs are returned in the response when creating a new paste.
Can I browse trending pastes through the API?
Yes. GET /trending returns pastes ranked by view count, and GET /recent returns pastes in reverse chronological order. GET /random returns a single random paste entry.
How do I create a paste through Jentic?
Search Jentic for 'create a code paste on CentOS' to find the POST /create operation. Load the schema to see the content and language parameters, then execute with your text content. No credentials needed. Install with pip install jentic.
Can I limit what my agent is allowed to do with the CentOS Pastebin API?
Yes. Because you run Jentic One yourself, your own rules decide which CentOS Pastebin operations the agent may call. You can allow just POST /create and GET /paste/{pasteId} so the agent can create and fetch pastes, while withholding the browsing operations like GET /recent, GET /trending, and GET /random unless you explicitly add them. Since the API is anonymous and open-access, there is no credential to manage, so scoping comes down to which operations you permit.
GET STARTED