Lists requests to add external users to channels with ability to filter.
This API method can only be used on Enterprise Grid workspaces.
POSThttps://slack.com/api/conversations.requestSharedInvite.list
application/x-www-form-urlencoded
application/json
token
Authentication token bearing required scopes. Tokens should be passed as an HTTP Authorization header or alternatively, as a POST parameter.
xxxx-xxxxxxxxx-xxxx
Paginate through collections of data by setting the cursor
parameter to a next_cursor
attribute returned by a previous request's response_metadata
. See pagination for more detail.
bG9nX2lkOjc5NjQ1NA==
When true approved invitation requests will be returned, otherwise they will be excluded
true
When true denied invitation requests will be returned, otherwise they will be excluded
true
When true expired invitation requests will be returned, otherwise they will be excluded
true
The number of items to return. Must be between 1 - 1000 (inclusive).
200
This Slack Connect API method lists requested Slack Connect invitations.
For more details, refer to governing Slack Connect invites.
user_id
argumentThe optional user_id
argument allows the caller to filter requested invitations by a given user.
include_approved
argumentThe optional include_approved
argument will return approved requested invitations in the API response. By default approved requested invitations are not returned.
include_denied
argumentThe optional include_denied
argument will return denied requested invitations in the API response. By default denied requested invitations are not returned.
include_expired
argumentThe optional include_expired
argument will return expired requested invitations in the API response. By default expired requested invitations are not returned.
invite_ids
argumentThe optional invite_ids
will return a list of requested invitations with matching IDs. All other filters are applicable in combination with this filter.
Returns a list of paginated requested invitations objects ordered by IDs in ascending order.
This method uses cursor-based pagination to make it easier to incrementally collect information. To begin pagination, specify a limit
value under 1000
. We recommend no more than 200
results at a time.
Responses will include a top-level response_metadata
attribute containing a next_cursor
value. By using this value as a cursor
parameter in a subsequent request, along with limit
, you may navigate through the collection page by virtual page.
See pagination for more information.
Typical success response
{
"ok": true,
"invite_requests": [
{
"date_last_updated": 1722372331,
"id": "I12345",
"date_created": 1722372331,
"expires_at": 1723581931,
"inviting_team": {
"id": "E12345",
"name": "Acme corp",
"icon": {
"image_34": "https://.../avatar/avatars-teams/ava_0011-34.png",
"image_44": "https://.../avatar/avatars-teams/ava_0011-44.png",
"image_68": "https://.../avatar/avatars-teams/ava_0011-68.png",
"image_88": "https://.../avatar/avatars-teams/ava_0011-88.png",
"image_102": "https://.../avatar/avatars-teams/ava_0011-102.png",
"image_132": "https://.../avatar/avatars-teams/ava_0011-132.png",
"image_230": "https://.../avatar/avatars-teams/ava_0011-230.png",
"image_default": true
},
"avatar_base_url": "https://dev.slack.com/avatarsource/",
"is_verified": false,
"domain": "acme-corp",
"date_created": 1637947110,
"requires_sponsorship": false
},
"inviting_user": {
"id": "U12345",
"team_id": "E12345",
"name": "acme-corp-user",
"updated": 1721741979,
"who_can_share_contact_card": "EVERYONE",
"profile": {
"real_name": "acme-corp-user",
"display_name": "acme-corp-user",
"real_name_normalized": "acme-corp-user",
"display_name_normalized": "acme-corp-user",
"team": "E12345",
"avatar_hash": "hash",
"email": "acme-corp-user@acme-corp.com",
"image_24": "https://secure.gravatar.com/avatar/...0001-24.png",
"image_32": "https://secure.gravatar.com/avatar/...0001-32.png",
"image_48": "https://secure.gravatar.com/avatar/...0001-48.png",
"image_72": "https://secure.gravatar.com/avatar/...0001-72.png",
"image_192": "https://secure.gravatar.com/avatar/...0001-192.png",
"image_512": "https://secure.gravatar.com/avatar/...0001-512.png"
}
},
"is_external_limited": false,
"is_sponsored": true,
"recipient_email": "external-user@other-corp.com",
"target_user": {
"recipient_email": "external-user1@other-corp.com",
"recipient_user_id": "U123456"
}
},
{
"id": "I12345",
"date_created": 1722372331,
"expires_at": 1723581931,
"date_denied": 1723581901,
"inviting_team": {
"id": "E12345",
"name": "Acme Corp.",
"icon": {
"image_34": "https://.../avatars-teams/ava_0011-34.png",
"image_44": "https://.../avatars-teams/ava_0011-44.png",
"image_68": "https://.../avatars-teams/ava_0011-68.png",
"image_88": "https://.../avatars-teams/ava_0011-88.png",
"image_102": "https://.../avatars-teams/ava_0011-102.png",
"image_132": "https://.../avatars-teams/ava_0011-132.png",
"image_230": "https://.../avatars-teams/ava_0011-230.png",
"image_default": true
},
"avatar_base_url": "https://dev.slack.com/avatarsource/",
"is_verified": false,
"domain": "acme-corp",
"date_created": 1637947110,
"requires_sponsorship": false
},
"inviting_user": {
"id": "U12345",
"team_id": "E12345",
"name": "acme-corp-user",
"updated": 1721741979,
"who_can_share_contact_card": "EVERYONE",
"profile": {
"real_name": "acme-corp-user",
"display_name": "acme-corp-user",
"real_name_normalized": "acme-corp-user",
"display_name_normalized": "acme-corp-user",
"team": "E12345",
"avatar_hash": "hash",
"email": "acme-corp-user@acme-corp.com",
"image_24": "https://secure.gravatar.com/avatar/...0001-24.png",
"image_32": "https://secure.gravatar.com/avatar/...0001-32.png",
"image_48": "https://secure.gravatar.com/avatar/...0001-48.png",
"image_72": "https://secure.gravatar.com/avatar/...0001-72.png",
"image_192": "https://secure.gravatar.com/avatar/...0001-192.png",
"image_512": "https://secure.gravatar.com/avatar/...0001-512.png"
}
},
"is_external_limited": false,
"channel": {
"id": "C12345",
"is_im": false,
"is_private": true,
"date_created": 1721764754,
"name": "channel-name",
"connections": [
{
"team": {
"id": "E12345",
"name": "Acme Corp.",
"icon": {
"image_34": "https://.../ava_0011-34.png",
"image_44": "https://.../ava_0011-44.png",
"image_68": "https://.../ava_0011-68.png",
"image_88": "https://.../ava_0011-88.png",
"image_102": "https://.../ava_0011-102.png",
"image_132": "https://.../ava_0011-132.png",
"image_230": "https://.../ava_0011-230.png",
"image_default": true
},
"avatar_base_url": "https://dev.slack.com/avatarsource/",
"is_verified": false,
"domain": "acme-corp",
"date_created": 1637947110,
"requires_sponsorship": false
},
"is_private": true
}
],
"pending_connections": [],
"previous_connections": []
},
"target_user": {
"recipient_email": "external-user@other-corp.com"
},
"reviewing_user": {
"id": "U12345",
"team_id": "E12345",
"name": "acme-corp-user",
"updated": 1721741979,
"who_can_share_contact_card": "EVERYONE",
"profile": {
"real_name": "acme-corp-user",
"display_name": "acme-corp-user",
"real_name_normalized": "acme-corp-user",
"display_name_normalized": "acme-corp-user",
"team": "E12345",
"avatar_hash": "hash",
"email": "acme-corp-user@acme-corp.com",
"image_24": "https://secure.gravatar.com/avatar/...0001-24.png",
"image_32": "https://secure.gravatar.com/avatar/...0001-32.png",
"image_48": "https://secure.gravatar.com/avatar/...0001-48.png",
"image_72": "https://secure.gravatar.com/avatar/...0001-72.png",
"image_192": "https://secure.gravatar.com/avatar/...0001-192.png",
"image_512": "https://secure.gravatar.com/avatar/...0001-512.png"
}
}
}
],
"response_metadata": {
"next_cursor": "aWQ6STAxNkszN0FBQUU="
}
}
Typical error response
{
"ok": false,
"error": "invalid_cursor"
}
This table lists the expected errors that this method could return. However, other errors can be returned in the case where the service is down or other unexpected factors affect processing. Callers should always check the value of the ok
params in the response.
Error | Description |
---|---|
restricted_action | A team preference prevents the user from listing invitation requests. |
invalid_cursor | The provided cursor is not valid. |
internal_error | The server could not complete your operation(s) without encountering an error, likely due to a transient issue on our end. It's possible some aspect of the operation succeeded before the error was raised. |
not_implemented | its not implemented! TODO: remove me |
access_denied | Access to a resource specified in the request is denied. |
account_inactive | Authentication token is for a deleted user or workspace when using a |
deprecated_endpoint | The endpoint has been deprecated. |
ekm_access_denied | Administrators have suspended the ability to post a message. |
enterprise_is_restricted | The method cannot be called from an Enterprise. |
invalid_auth | Some aspect of authentication cannot be validated. Either the provided token is invalid or the request originates from an IP address disallowed from making the request. |
is_bot | This method cannot be called by a legacy bot. |
user_is_restricted | This method cannot be called by a restricted user or single channel guest. |
method_deprecated | The method has been deprecated. |
missing_scope | The token used is not granted the specific scope permissions required to complete this request. |
not_allowed_token_type | The token type used in this request is not allowed. |
not_authed | No authentication token provided. |
no_permission | The workspace token used in this request does not have the permissions necessary to complete the request. Make sure your app is a member of the conversation it's attempting to post a message to. |
org_login_required | The workspace is undergoing an enterprise migration and will not be available until migration is complete. |
token_expired | Authentication token has expired |
token_revoked | Authentication token is for a deleted user or workspace or the app has been removed when using a |
two_factor_setup_required | Two factor setup is required. |
accesslimited | Access to this method is limited on the current network |
fatal_error | The server could not complete your operation(s) without encountering a catastrophic error. It's possible some aspect of the operation succeeded before the error was raised. |
invalid_arg_name | The method was passed an argument whose name falls outside the bounds of accepted or expected values. This includes very long names and names with non-alphanumeric characters other than |
invalid_arguments | The method was either called with invalid arguments or some detail about the arguments passed is invalid, which is more likely when using complex arguments like blocks or attachments. |
invalid_array_arg | The method was passed an array as an argument. Please only input valid strings. |
invalid_charset | The method was called via a |
invalid_form_data | The method was called via a |
invalid_post_type | The method was called via a |
missing_post_type | The method was called via a |
ratelimited | The request has been ratelimited. Refer to the |
request_timeout | The method was called via a |
service_unavailable | The service is temporarily unavailable |
team_added_to_org | The workspace associated with your request is currently undergoing migration to an Enterprise Organization. Web API and other platform operations will be intermittently unavailable until the transition is complete. |
This table lists the expected warnings that this method will return. However, other warnings can be returned in the case where the service is experiencing unexpected trouble.
Warning | Description |
---|---|
missing_charset | The method was called via a |
superfluous_charset | The method was called via a |