API Introduction
Official documentation for the persiandevs.ir API.
Authentication
Authentication is required for messing with bot api's and maybe more endpoints in the future. This is done with an Authorization HTTP Header.
Header
Content
Authorization
KXlKVSBJukpuH5ymv2so
You can generate an API key from your Bot Dashboard at any time.
Install the library
The best way to interact with our API is to use one of our official libraries:
# Install via NPM
npm install --save persiandevsMake your first request
To make your first request, send an authenticated request to the stats endpoint. This will update your bot servercount, which is nice.
Change Your Bot Server Count On The Site.
POST https://persiandevs.ir/api/auth/stats/:id
Request Body
Name
Type
Description
server_count*
number
the bot sevrer count
{
success: "true",
users: []
}{
success: "false",
error: "You are being ratelimited."
}{
success: "false",
error: "Bot not found."
}{
success: "false",
error: "Incorrect authorization token."
}example:
const persiandevs = require('persiandevs');
persiandevs.postStats("Your_Bot_ID", "Your_Auth_Key", "ServerCount")Last updated