<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Usage on Hasty Paste II</title><link>https://hastypaste.docs.enchantedcode.co.uk/docs/usage/</link><description>Recent content in Usage on Hasty Paste II</description><generator>Hugo</generator><language>en</language><copyright>Leo Spratt</copyright><atom:link href="https://hastypaste.docs.enchantedcode.co.uk/docs/usage/index.xml" rel="self" type="application/rss+xml"/><item><title>API</title><link>https://hastypaste.docs.enchantedcode.co.uk/docs/usage/api/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://hastypaste.docs.enchantedcode.co.uk/docs/usage/api/</guid><description>&lt;p&gt;Hasty Paste features a REST API, allowing for integration with other services/clients.&lt;/p&gt;
&lt;h2 id="quick-api"&gt;Quick API&lt;/h2&gt;
&lt;p&gt;This section documents the quick-api. An easy to use interface that can be used easily with programs such as curl.&lt;/p&gt;
&lt;h3 id="quick-paste-creation"&gt;Quick Paste Creation&lt;/h3&gt;
&lt;p&gt;To create a quick paste, with no attachment support. The below curl command could be used:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;curl -X POST -d &amp;#34;Hello World!&amp;#34; https://paste.example.com/api/q/
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This will create a public paste under the anonymous user; using: the default expiry, &lt;code&gt;plaintext&lt;/code&gt; content format and randomly generate a slug. The full paste url will be returned in the response.&lt;/p&gt;</description></item></channel></rss>