---
name: amt-pastebin
description: Create shareable pastes for logs, code, and agent memory via free Pastebin API. Use when the user needs a short URL for text or to pass large content between steps.
---

# Pastebin API (Agent Media Tools)

## When to use
- Share logs, stack traces, configs, or code snippets
- Ephemeral agent memory (store long text, return a short URL)
- CI/CD failure dumps

## API
`POST https://agentmediatools.com/api/paste`  
`Content-Type: application/json`

Body:
```json
{
  "content": "required string, up to 500KB",
  "title": "optional",
  "syntax": "text|python|javascript|json|yaml|...",
  "expires_in_hours": 24
}
```

**No API key** for basic create.

## Response
```json
{
  "success": true,
  "slug": "aB3xK9mP2q",
  "url": "https://agentmediatools.com/p/aB3xK9mP2q",
  "raw_url": "https://agentmediatools.com/p/aB3xK9mP2q/raw"
}
```

Create = POST. Read raw text = GET `raw_url`.

## curl
```bash
curl -X POST https://agentmediatools.com/api/paste \
  -H "Content-Type: application/json" \
  -d '{"content":"Hello from an agent","syntax":"text"}'
```

## Browser
https://agentmediatools.com/tool/pastebin

## MCP
Tool name: `create_paste`

## Guide
https://agentmediatools.com/blog/free-pastebin-api-ai-agents
