The Pastelink API is open to any users that have active Pastelink accounts.
Please use the API page in your account to create a key.
All responses will be in JSON format.
Datetime fields are strings with the format: 'YYYY-MM-DD HH:MM:SS'. All times are in UTC.
Starter project to access the Pastelink API (Python)
200
400
Create a New Paste
Method:POST
Required Permissions:Create
Endpoint:api.pastelink.net/create-paste
Daily Limit1000
If a parameter is optional but a value is shown in bold, this value will be used as the default.
Prevents any action from being taken.
Maximum Length:160 characters
Maximum Length:160000 characters
Default:false
Any expiry above 1000 years will be set to 1000 years. Minimum time: 6 hours. Uses PHP strtotime() function internally, so will also accept string descriptions of time, such as \'3 days\'.',
Default:Poppins
Choose between any font available on Google Fonts. New fonts are added weekly.
Default:400
Must be a multiple of 100, up to 900. Some weights may not be available for certain fonts.
Default:16
Must be an even number between 8 and 24.
Must be between 20 and 1000 characters.
Must be between 4 and 240 characters.
If you have set up monetized shortlinks in Account>Monetize, they will all appear here as service_name = url.
Edit a Paste You Created
Method:POST
Required Permissions:Edit
Endpoint:api.pastelink.net/edit-paste
Daily Limit3000
Any fields omitted will not be updated. Any fields with value NULL will be reset to default. Required fields with no defaults may not be given a NULL value.
Prevents any action from being taken.
The url or custom url for the paste you are trying to edit. We advise using automatic URLs for API control as they can never be changed.
Maximum Length:160 characters
Maximum Length:160000 characters
Default:Poppins
Choose between any font available on Google Fonts. New fonts are added weekly.
Default:400
Must be a multiple of 100, up to 900. Some weights may not be available for certain fonts.
Default:16
Must be an even number between 8 and 24.
Must be between 4 and 240 characters.
URL of the newly created archive page as a result of an edit. This archive page has the same content as the paste did before this edit, however the paste options are synced with the latest version of the paste. Archive entries are only generated if the paste body is changed.
If you have set up monetized shortlinks in Account>Monetize, they will all appear here as service_name = url.
Delete a Paste You Created
Method:POST
Required Permissions:Delete
Endpoint:api.pastelink.net/delete-paste
Daily Limit10000
Prevents any action from being taken.
The url or custom url for the paste you are trying to edit. We advise using automatic URLs for API control as they can never be changed.
Get a list of all pastes owned by you by URL, ordered by date created, newest first.
Method:GET
Required Permissions:View
Endpoint:api.pastelink.net/get-pastes
Daily Limit10000
Maximum results: 1000
If true, returns list of deleted pastes. If false, returns non deleted pastes only.
If you have more than 1000 results, defines which page to return. 1 Indexed. Uses limit value for calculation.
If you need fewer results, set the maximum. Maximum value 1000.
Takes filters into account (currently just deleted true/false).
Using given limit, defines how many pages of pastes are available.
The limit given.
The current page given.
If you have set up monetized shortlinks in Account>Monetize, they will all appear here as service_name = url.
Get the details of a specific paste which you created.
Method:GET
Required Permissions:View
Endpoint:api.pastelink.net/get-paste
Daily Limit10000
The url or custom url for the paste you are trying to edit. We advise using automatic URLs for API control as they can never be changed.
Paste body without any formatting.
If null, font name follows the default, which is currently Poppins.
If null, font name weight follows the default, which is currently 400.
If null, font size follows the default, which is currently 16.
If you have set up monetized shortlinks in Account>Monetize, they will all appear here as service_name = url.