curl --request GET \
--url http://localhost:8091/api/servers/{serverID}/invites \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "<string>",
"code": "<string>",
"serverId": "<string>",
"createdBy": "<string>",
"useCount": 123,
"active": true,
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"maxUses": 123,
"server": {
"id": "<string>",
"name": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"iconPath": "<string>",
"role": "<string>",
"memberCount": 123
}
}
]
}Returns all invite links for the server. Only accessible by server owners and admins.
curl --request GET \
--url http://localhost:8091/api/servers/{serverID}/invites \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "<string>",
"code": "<string>",
"serverId": "<string>",
"createdBy": "<string>",
"useCount": 123,
"active": true,
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"maxUses": 123,
"server": {
"id": "<string>",
"name": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"iconPath": "<string>",
"role": "<string>",
"memberCount": 123
}
}
]
}