Sentcord
Search…
Welcome
Welcome to the Official Sentcord Docs, here you will be able to find any thing related to our api!

Introduction

These developer pages document how to use our API to help you create and grow awesome bots for your community!

Getting Help

If you need help with our API please join our Discord server at https://sentcord.com/discord and ask in the API channel.

Reference

Our API is a HTTPS/REST for general operations such as sending POST requests and receiving GET requests

Base URL

1
https://sentcord.com/api
Copied!

Authentication

To access our API you need to authorize yourself, this can be done by using your discord bot list token. Your token can be obtained from the @me page.
Authentication is performed with the Authorization HTTP header in the format Authorization: TOKEN

Example Authorization Header

1
Authorization: 4xp1a3Q2FyrDm470rTU5xFMgfhDtdunz
Copied!

Resources

post
https://sentcord.com
/api/bot/:id
Stats

NodeJS Example

1
let
2
fetch = require('node-fetch'),
3
botid = client.user.id, // Required
4
servers = client.guilds.size, // Required
5
shards = client.shards.size, // Optional
6
apiKey = "YourKeyHere", // Required
7
url = `https://sentcord.com/api/bot/${botid}`;
8
9
fetch(url, {
10
method: "POST",
11
headers: {
12
"Authorization": key,
13
"Content-Type": "application/json"
14
}
15
body: JSON.stringify({ servers: servers, shards: shards })
16
}).then(r => r.json()).then(d => console.log(d)).catch(e => console.log(e.stack));
Copied!

Python Example

1
Copied!
get
https://sentcord.com
/api/bot/:id
Bot Information
Last modified 3mo ago