Endpoint

https://mail.pasteink.com/api.php

Parameters

FieldTypeDescription
api_keyRequiredYour secret key (from Dashboard).
contentRequiredThe text code you want to paste.
titleStringTitle of the paste (Optional).
format String Use extensions: .php, .py, .svb, .anom
passwordStringOptional password to lock the paste.
visibilityStringpublic, unlisted, private
expiryStringnever, burn, 1h
curl -X POST https://mail.pasteink.com/api.php \ -d "api_key=YOUR_API_KEY" \ -d "content=Hello World" \ -d "title=My Paste" \ -d "format=.svb" \ -d "password=Secret123"
<?php $url = 'https://mail.pasteink.com/api.php'; $data = [ 'api_key' => 'YOUR_API_KEY', 'content' => 'BLOCK:Request ...', 'title' => 'My Config', 'format' => '.svb', 'password'=> 'OptionalPass' ]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $response = curl_exec($ch); curl_close($ch); echo $response;
import requests url = "https://mail.pasteink.com/api.php" data = { "api_key": "YOUR_API_KEY", "content": "print('Hello World')", "title": "Python Script", "format": ".py", "password": "MySecretPassword" } response = requests.post(url, data=data) print(response.json())
const formData = new FormData(); formData.append('api_key', 'YOUR_API_KEY'); formData.append('content', 'console.log("Hello")'); formData.append('format', '.js'); formData.append('password', 'secure123'); fetch('https://mail.pasteink.com/api.php', { method: 'POST', body: formData }) .then(res => res.json()) .then(console.log);
package main import ( "fmt" "net/http" "net/url" ) func main() { resp, _ := http.PostForm("https://mail.pasteink.com/api.php", url.Values{ "api_key": {"YOUR_API_KEY"}, "content": {"< config >"}, "format": {".anom"}, "password": {"12345"}, }) defer resp.Body.Close() fmt.Println(resp.Status) }

API Playground

Test the API directly. Valid API Key required.