https://seecret.it/api
All API requests must include a valid Authorization
header using a UUID token:
Authorization: Bearer YOUR_UUID_TOKEN
Send a POST
request with the following fields:
Parameter | Type | Required | Description |
---|---|---|---|
operation | string | ✅ | Must be create_seecret |
lang | string | ✅ | fr or en |
seecret | string | ✅ | Text content of the seecret |
expiration_date | date (YYYY-MM-DD) | ❌ | Optional, default +7 days |
number_view | int | ❌ | Optional, default 1 |
view_notification | int (0 or 1) | ❌ | Send email on view (default: 1) |
password | string | ❌ | Optional password protection |
domain | string | ❌ | Generated link domain |
$ch = curl_init("https://seecret.it/api");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer YOUR_UUID_TOKEN',
'Content-Type: application/x-www-form-urlencoded'
]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'operation' => 'create_seecret',
'lang' => 'fr',
'seecret' => 'Mot de passe Wi-Fi: 12345678',
'expiration_date' => '2025-06-01',
'number_view' => 1,
'view_notification' => 1
]));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
{
"CODE": 200,
"MESSAGE": "secret created successfully",
"data": {
"RESULT": "success",
"URL": "https://seecret.it/_XyZAbCd"
}
}
{
"CODE": 401,
"MESSAGE": "Missing operation parameter."
}