GET
/api/v1/server/departments/{departmentId}
Request
Response
200
Success
Authorization
AuthorizationstringrequiredYour API token as
Bearer YOUR_TOKEN. Create one in your server's dashboard settings.Path parameters
departmentIdstringrequiredResponse
200 Success
iconstringrequiredIcon image URL.
idstringrequiredUnique ID.
namestringrequiredDepartment name.
serverIdstringrequiredServer the department belongs to.
activatedboolean | nullWhether the department is active.
discordGuildIdstring | nullDiscord server linked to the department.
joinCodestring | nullCode members use to join.
typeinteger | nullDepartment type.
Errors
| Status | Meaning |
|---|---|
400 | Invalid request. validation_failed lists each invalid field in details.fields. |
401 | Missing, invalid or expired token |
404 | Not found |
429 | Rate limited. See Retry-After and details. |
500 | Internal server error |