Bot API
Suggestions
3 endpoints. Every address starts with https://api.samplebot.app/v1/servers/{server id}.
GET/suggestions suggestions:read
Suggestions, newest first. status=PENDING, APPROVED or DENIED.
| Name | In | Description |
|---|---|---|
status | query | |
limit | query |
curl "https://api.samplebot.app/v1/servers/{server id}/suggestions" \
-H "Authorization: Bearer $SAMPLE_API_KEY"
GET/suggestions/:id suggestions:read
One suggestion with its votes.
| Name | In | Description |
|---|---|---|
id required | path |
curl "https://api.samplebot.app/v1/servers/{server id}/suggestions/{id}" \
-H "Authorization: Bearer $SAMPLE_API_KEY"
POST/suggestions/:id/review suggestions:write
Approve or deny a suggestion.
| Name | In | Description |
|---|---|---|
id required | path | |
status required | body | |
reason | body |
curl -X POST "https://api.samplebot.app/v1/servers/{server id}/suggestions/{id}/review" \
-H "Authorization: Bearer $SAMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"..."}'