# \SlackAgentsApi
All URIs are relative to */api*
[**get_agent_slack_channels**](SlackAgentsApi.md#get_agent_slack_channels) | **GET** /w/{workspace}/slack_agents/agent_channels/{path} | the Slack channels an agent is shared in, and whether the caller can share it
[**get_slack_agents_status**](SlackAgentsApi.md#get_slack_agents_status) | **GET** /w/{workspace}/slack_agents/status | whether agents can answer in Slack on this instance
[**list_available_slack_channels**](SlackAgentsApi.md#list_available_slack_channels) | **GET** /w/{workspace}/slack_agents/available_channels | list the connected Slack workspace's public channels
[**list_slack_agent_channels**](SlackAgentsApi.md#list_slack_agent_channels) | **GET** /w/{workspace}/slack_agents/channels | list the Slack channels this workspace's agents are shared in
[**share_agent_in_slack_channel**](SlackAgentsApi.md#share_agent_in_slack_channel) | **POST** /w/{workspace}/slack_agents/agent_channels/{path} | share an agent in a Slack channel, or change how it answers there
[**unshare_agent_from_slack_channel**](SlackAgentsApi.md#unshare_agent_from_slack_channel) | **DELETE** /w/{workspace}/slack_agents/agent_channels/{path} | stop sharing an agent in a Slack channel
## get_agent_slack_channels
> models::GetAgentSlackChannels200Response get_agent_slack_channels(workspace, path)
the Slack channels an agent is shared in, and whether the caller can share it
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
[**models::GetAgentSlackChannels200Response**](getAgentSlackChannels_200_response.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_slack_agents_status
> models::GetSlackAgentsStatus200Response get_slack_agents_status(workspace)
whether agents can answer in Slack on this instance
### Parameters
**workspace** | **String** | | [required] |
### Return type
[**models::GetSlackAgentsStatus200Response**](getSlackAgentsStatus_200_response.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## list_available_slack_channels
> models::ListAvailableSlackChannels200Response list_available_slack_channels(workspace, cursor)
list the connected Slack workspace's public channels
### Parameters
**workspace** | **String** | | [required] |
**cursor** | Option<**String**> | the next_cursor of the previous page | |
### Return type
[**models::ListAvailableSlackChannels200Response**](listAvailableSlackChannels_200_response.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## list_slack_agent_channels
> Vec<models::SlackAgentChannel> list_slack_agent_channels(workspace)
list the Slack channels this workspace's agents are shared in
### Parameters
**workspace** | **String** | | [required] |
### Return type
[**Vec<models::SlackAgentChannel>**](SlackAgentChannel.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## share_agent_in_slack_channel
> String share_agent_in_slack_channel(workspace, path, share_agent_in_slack_channel_request)
share an agent in a Slack channel, or change how it answers there
the workspace members in the channel whose Slack email matches and who can read the agent can then ask it, or anyone there when its settings say so (slack_anyone, with run_on_behalf_of). Needs edit access to the agent; making it the channel's default takes an admin.
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**share_agent_in_slack_channel_request** | [**ShareAgentInSlackChannelRequest**](ShareAgentInSlackChannelRequest.md) | | [required] |
### Return type
**String**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: text/plain
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## unshare_agent_from_slack_channel
> String unshare_agent_from_slack_channel(workspace, path, channel_id)
stop sharing an agent in a Slack channel
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**channel_id** | **String** | | [required] |
### Return type
**String**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: text/plain
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)