admin.inviteRequests.denied.list
method
Welcome to the new home of Slack developer docs!
We're still building and not all features are available quite yet. Enjoy this peek into the future!
Not ready for the future? Return to the past at api.slack.com.
Usage info
This invite request management API method lists workspace invite requests that have already been denied.
This method requires an admin.*
scope. It's obtained through the normal OAuth process, but there are a few additional requirements. The scope must be requested by an Enterprise Grid admin or owner, and the OAuth install must take place on the entire Grid org, not an individual workspace. See the admin.invites:read
page for more detailed instructions.
team_id
is required if your Enterprise Grid org contains more than one workspace.
Response
{
"ok": true,
"denied_requests": [
{
"invite_request": {
"id": "Ir0P0Z6SKD",
"email": "example1@slack-corp.com",
"date_created": 1569863763,
"requester_ids": [
"W0GBAEJKD"
],
"channel_ids": [
"C0GU730DQ",
"C0U9WES0Y"
],
"is_restricted": false,
"is_ultra_restricted": false,
"real_name": "Example",
"date_expire": null,
"request_reason": null
},
"denied_by": {
"actor_type": "app",
"actor_id": "A00"
}
},
{
"invite_request": {
"id": "Ir0GL738RY",
"email": "example2@slack-corp.com",
"date_created": 1564016487,
"requester_ids": [
"W0GAAFJKD"
],
"channel_ids": [
"G06LHQYCS",
"G0BMCEY2W",
"C0GLJ30DQ",
"C0U9RQS0Y"
],
"is_restricted": false,
"is_ultra_restricted": false,
"real_name": "seesijkdswsss",
"date_expire": null,
"request_reason": null
},
"denied_by": {
"actor_type": "user",
"actor_id": "W0GAAUJKD"
}
}
],
"response_metadata": {
"next_cursor": "ZGF0ZV9jcmVhdGU6MTU2MTc0Nzc2Ng=="
}
}