canonical: https://jentic.com/apis/paste.centos.org/centos-paste

# Paste Centos CentOS Pastebin API

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.

## For AI agents

Create and retrieve text pastes on the CentOS community pastebin. Browse recent and trending pastes, and list supported syntax highlighting languages.

## Scope

Does not handle user accounts, paste editing, paste deletion, or private pastes - use for anonymous public paste creation and browsing only.

## Capabilities

- 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

## Use cases

### 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.

Example prompt: 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.

Example prompt: 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.

Example prompt: 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.

Example prompt: Search Jentic for 'create a code paste', load the CentOS Pastebin create operation schema, and execute with content and language parameters

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/create` | Create a new paste entry |
| GET | `/paste/{pasteId}` | Retrieve a paste by ID |
| GET | `/recent` | List recently created pastes |
| GET | `/trending` | List trending pastes by views |
| GET | `/langs` | List supported syntax highlighting languages |
| GET | `/random` | Retrieve a random paste |

## Key resources

- **Pastes** — Create and retrieve individual paste entries
- **Languages** — List supported syntax highlighting languages
- **Browse** — Access recent, trending, and random paste feeds

## Why Jentic

- **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 handling:** 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.
- **Discovery method:** 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.

## Related APIs

- **Pastebin API** — Largest general-purpose pastebin with user accounts and paste management
- **Paste Monster API** — Pastebin service with API key authentication and paste editing
- **Pastery API** — Minimalist pastebin with API key auth and paste deletion
- **GitHub API** — Source control platform with Gists for persistent code sharing

## FAQ

### 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.
