TopCord Documentation

WebHooks

Receiving vote data

Authentication

On the bots edit page you can set an authentication string for webhooks which will be sent in the headers of the requests so that you can verify that the requests are coming from us, an example of the header can be seen below.

Headers
1{
2 "Authorization": "token"
3}

Structure

Response

FieldTypeDescription
UserUser[]The user structure
ClientIDstringThe id of the bot/server
TypestringIf the vote is for a server or bot

Example response

Example
1{
2 "User": {
3 "ClientID": "319680837320704003",
4 "Date": <date here>
5 },
6 "ClientID": "275813801792634880",
7 "Type": "Bot"
8}
Edit this page on GitHub