cURL
curl --request GET \ --url https://api.melonly.xyz/api/v1/server/roles \ --header 'Authorization: <api-key>'
{ "data": [ { "colour": "<string>", "createdAt": 123, "extraPermissions": 123, "id": "<string>", "linkedDiscordRoleId": "<string>", "name": "<string>", "permissions": "<string>", "serverId": "<string>" } ], "page": 1, "pageSize": 10, "total": 100, "totalPages": 10 }
Get paginated list of roles for a server. Requires authentication.
Type "Bearer" followed by a space and the API token.
Page number
x >= 1
Items per page
1 <= x <= 100
successfully retrieved paginated roles
The response is of type object.
object