Skills/Pastebin/Create a paste

Create a paste

~1 credits / paste

Store any text or code content at a shareable link. Optionally specify a syntax language for highlighting, set the link to expire after a number of hours, require a password to view, or make it one-time (the link stops working after the first view).

Cost

~1 credits / paste

1 credit per paste, plus 1 credit per 100 kilobytes of content.

Estimated; the actual charge depends on your input and is shown in the response.

What it accepts

Set these inside the intent when you run it.

contentrequired

The text or code to store in the paste.

syntaxoptional

Syntax language for highlighting, e.g. python, javascript, json.

ttl_hoursoptional

Hours until the paste expires and becomes unavailable.

one_timeoptional

If true, the link stops working after the first view.

passwordoptional

A password that must be entered to view the paste.

What you get back

A shareable URL where the paste can be viewed.

Run it

Run this sub-skill directly: pin it with operation and pass its inputs in the intent. (Omit operation and the Pastebin skill will route from your intent instead.)

curl -X POST "https://skill.askfaro.com/skills/paste/run" \
  -H "Authorization: Bearer $FARO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"intent":{"operation":"create","content":"print('Hello, world!')","syntax":"python","ttl_hours":24,"one_time":true,"password":"secret123"}}'

Example requests

  • Create a paste with this Python script and give me the link.
  • Share this error log as a one-time paste that expires in 24 hours.
  • Make a paste of this config file with Python syntax highlighting.