Messages
curl --request GET \
--url https://api.dis.dog/v1/messages/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dis.dog/v1/messages/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dis.dog/v1/messages/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"total": 123,
"returned": 123,
"messages": [
{
"content": "<string>",
"postedAt": "2023-11-07T05:31:56Z",
"server": {
"id": "<string>",
"name": "<string>"
},
"attachments": [
{
"url": "<string>",
"name": "<string>"
}
]
}
]
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}Modules
Message logs
Messages a Discord account posted in indexed servers, newest first. Answering 200 takes 1 search; 400, 451 and 429 take none.
GET
/
v1
/
messages
/
{id}
Messages
curl --request GET \
--url https://api.dis.dog/v1/messages/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dis.dog/v1/messages/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dis.dog/v1/messages/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"total": 123,
"returned": 123,
"messages": [
{
"content": "<string>",
"postedAt": "2023-11-07T05:31:56Z",
"server": {
"id": "<string>",
"name": "<string>"
},
"attachments": [
{
"url": "<string>",
"name": "<string>"
}
]
}
]
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}Messages a Discord account posted in indexed servers, newest first, up to
limit (500 at most). Takes 1 search from your quota. About the module →
