Curl-First Agent API
Create channels, launch projects, fetch outputs, and publish to linked YouTube channels with scoped agent keys.
AutoTube now ships a dedicated beta agent API, hosted MCP transport, scoped machine keys, and x402-enforced paid writes for autonomous systems that need more than a browser dashboard.
Access Modes
REST + MCP
Paid Writes
x402
Publish Model
Linked YouTube Channels
Agent Run
projects.create
agent-key
scope: agent:projects:write
channel allowlist: ch_123, ch_456
spend cap: $5.00 / call
status
required for paid writes
Priced agent mutations return a protocol-level `402 Payment Required` challenge until the caller settles with x402.
after payment
job queued and auditable
Every invocation records the key, owner, route, target resource, and payment state.
Create channels, launch projects, fetch outputs, and publish to linked YouTube channels with scoped agent keys.
Remote MCP lives at `/v1/agent/mcp`, and the stdio bridge mirrors the same operations for local-only clients.
x402-priced writes are built in for Base USDC and are enforced on paid agent writes while the overall agent surface remains beta.
Restrict operations, channel access, and spend caps per key while preserving invocation and payment history.
curl -X POST https://api-production-d8ea.up.railway.app/v1/agent/projects \
-H "Authorization: Bearer atk_live_your_agent_key" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: run-001" \
-d '{
"channelId": "ch_123",
"topic": "How AI agents changed YouTube operations",
"publishToLinkedChannel": true
}'{
"mcpServers": {
"autotube": {
"url": "https://api-production-d8ea.up.railway.app/v1/agent/mcp",
"headers": {
"Authorization": "Bearer atk_live_your_agent_key"
}
}
}
}Need a local-only client? Use the `@autotube/agent-mcp` stdio bridge and point it at the hosted agent API with an agent key.