Pasted paste services for humans

Using the API

Build applications for the pasted platform.

Pasted.tech provides an API allowing for applications to be written for the platform.

/api/links
Create shortened links.

    On successful POST this API will return a URL with the <pasted_id> for the
    newly created content. The link shortener will validate the content is a
    "valid" URL before writting the specific content and returning the data.

    POST content must be in JSON format and contain the key "content"

    > "{'content': 'example'}"

    :returns: str
    

OPTIONS
POST
/api/pastes
Create Pastes.

    On successful POST this API will return a URL with the <pasted_id> for the
    newly created content.

    POST content must be in JSON format and contain the key "content"

    > "{'content': 'example'}"

    :returns: str
    

OPTIONS
POST
/l/<pasted_id>
Show or visit a shortened link.

    This method will redirect with a 308 forwarding the original method to the
    redirected URL.

    :param paste_id: ID number (sha1) of a valid paste.
    :type paste_id: str
    :returns: str
    

GET
HEAD
OPTIONS
/pastes/<pasted_id>.raw
Show the raw content of a paste.

    All requests will be forwarded to the CDN provider and any returned object
    will be formatted as raw text encoded UTF-8.

    :param paste_id: ID number (sha1) of a valid paste
    :type paste_id: str
    :returns: str
    

GET
HEAD
OPTIONS