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
Field | Type | Description |
---|---|---|
User | User[] | The user structure |
ClientID | string | The id of the bot/server |
Type | string | If 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}