Endpoint: /api/search
Method: GET
q | Query sting |
{"result-count": 1, "results": [{ "comments": "0", "id": 3486, "mode": "r", "name": "filename.ext", "owner": "username", "path": "username/filename.ext", "snippet": "Snippet of file content maching the query string", "views": 32, "weight": 4 } ]}
Endpoint: /api/embed
Method: GET
id | File ID |
footer | OPTIONAL, true | flase, by default true, show/hide snippet footer |
raw-button | OPTIONAL, true | flase, by default true, show/hide snippet Raw Button |
live=button | OPTIONAL, true | flase, by default true, show/hide snippet Live Button |
download-button | OPTIONAL, true | flase, by default true, show/hide snippet Download Button |
copy-button | OPTIONAL, true | flase, by default true, show/hide snippet Copy Button |
Endpoint: /api/file
Method: GET
id | File ID |
{"type": "text", "title": "File's name or title", "url": "Files's url", "content": "File content if the file is a text file", "owner": "username"}
Endpoint: /api/paste
Method: POST
api-key | Your API key |
username | Your Username |
content | File Content |
title | File title |
ext | OPTIONAL, file extention, txt by default |
as-guest | true | flase, OPTIONAL, by default: flase |
password | OPTIONAL, file password |
mode | OPTIONAL, | s | p | r |, file mode |
visibility | OPTIONAL, | p | o |, file visibility, default p |
{"url":"file-url", "id":125}
Endpoint: /api/edit
Method: POST
id | File ID |
username | Your Username |
api-key | Your API Key |
content | New Content for the file |
{"success":"8 bytes written"}
Endpoint: /api/delete
Method: POST
id | File ID |
api-key | Your api key |
username | Your username |
{"success":"file deleted"}
Endpoint: /api/shortlink
Method: GET
id | ShortCode by ID |
url | ShortCode URL, new shortlink will created if not found |
shortcode | Get ShortLink by shortcode |
{"id": 2, "href": "/redirection/address", "hits": 4, "shortcode": "abcd", "url": "http://127.0.0.1:5000/r/abcd"}
Endpoint: /api/notification
Method: POST
username | Required, your username |
api-key | Required, API KEY assosiaed to the username |
id | If your want to get single notification details, keep empty if want all |
markseen | Use this to mark a notification as seen, |
Endpoint: /api/comment
Method: POST
username | Required, your username |
api-key | Required, API KEY assosiated with username |
id | To get comment info per a perticular command |
delete | Provide comment ID to delete comment |
file | File id you wan to comment on it |
content | Required if file parameter is provided |
0 | OK |
1 | MISSING PARAMETERS |
2 | INVALID PARAMETERS |
3 | UNAUTORISED OPRATION |
4 | INVELID REQUEST METHOD |
5 | API RATE LIMIT EXCEED |
6 | Requested content not found |