Search Messages
SearchMessages searches messages in a workspace.
It calls GET https://slack.com/api/search.messages.
The activity has 4 tabs: Configuration, Auth, Input, and Output.
Configuration
| Field | Required | Description |
|---|---|---|
| Name | Optional | Name of the step, should be unique within this workflow. |
| Description | Optional | Describe the purpose or function of this step. |
| Result Count | Optional | Maximum number of results to return. |
| Is Highlighted | Optional | Whether to highlight the results. |
| Page Number | Optional | Enter the page number for pagination. |
| Search Query | Optional | Enter the query to search for results. |
| Sort By | Optional | Specify the criteria to sort the results. |
| Sort Direction | Optional | Specify the direction to sort the results (e.g., ascending, descending). |
Auth
| Field | Required | Description |
|---|---|---|
| Auth Type | Optional | Select the authentication method for the request. Options: No Auth, OAuth 2. |
| Auth Resource | Optional | OAuth resource containing credentials. |
Input
This activity is built on the REST Client, so the Input tab is the generic HTTP request rather than a Slack-shaped payload.
| Field | Required | Data Type | Description |
|---|---|---|---|
| Target | Required | Object | The HTTP request. |
Output
The activity returns an httpResponse object.
| Field | Data Type | Description |
|---|---|---|
| status.code | Integer | Numeric HTTP status code. |
| status.message | String | Short message associated with the HTTP status. |
| headers | Object | HTTP response headers. |
| body | Object | Parsed body of the response. |
note
The output schema for this activity declares the response body without describing its properties, so no response fields are listed here.