apps.activities.list
method
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
Refer to obtaining a service token for more details.
Using activities
This method returns the latest logs for a given app_id
.
Note that if multiple filters are used, filtering will be performed with a logical 'and' operator.## Event type definitions
Each event type have some subtleties which are documented here.
For example some event type might carry a different meaning based on the log level.
The content of the payload
object for each activity
in the activities[]
array is also dependent on the event_type
.
function_execution_started
"payload": {
"function_name": "Reverse",
"function_type": "app"
}
function_execution_result
The log level could be info
meaning the execution was a success, or could be error
in case of failure.
"payload": {
"function_name": "Reverse",
"error": "An optional error message, this property is absent in case of success."
}
function_execution_output
"payload": {
"log": "The raw stdout/stderr from the function execution captured at the end of the process execution."
}
function_deployment
The possible values for the action
property are: 'Create', 'Update', and 'Delete'.
Note: For the 'Delete' action, the property bundle_size_kb
will be absent.
"payload": {
"action": "Create",
"team_id": "T12345",
"user_id": "U12345",
"bundle_size_kb": 13
}
workflow_bot_invited
"payload": {
"channel_id": "C12345",
"bot_user_id": "U12345"
}
workflow_execution_started
"payload": {
"workflow_name": "Reverse",
"actor": "U12345",
}
workflow_execution_result
The possible values for the exec_outcome
property are: 'Pending', 'Success', and "Error'.
"payload": {
"workflow_name": "Reverse",
"exec_outcome": "Success"
}
workflow_step_started
"payload": {
"function_id": "Fn12345",
"total_steps": 1,
"current_step": 1,
"function_name": "Reverse",
"function_execution_id": "Fx12345"
}
workflow_published
"payload": {
"workflow_name": "Reverse"
}
workflow_unpublished
"payload": {
"workflow_name": "Reverse"
}
workflow_step_execution_result
The inputs
property will display the workflow inputs, this can be anything.
The possible value for the exec_outcome
property are: 'Pending', 'Success', and "Error'.
"payload": {
"inputs": {
"string": "Reverse"
},
"function_id": "Fn12345",
"exec_outcome": "Success",
"function_name": "Reverse",
"function_execution_id": "Fx12345"
}
workflow_created_from_template
"payload": {
"template_id": "SEND_KUDOS",
"date_created": 12345
}
trigger_executed
The possible value for the type
property are: 'event', 'shortcut', 'webhook', 'scheduled', 'external' and "blockkit'.
Note: The trip_information
can be null/empty and theconfig
property will be different based on the type of trigger.
"payload": {
"trigger": {
"id": "Ft12345",
"type": "shortcut",
"config": {
"name": "Reverse",
"description": "Reverses a string"
},
"trip_information": {
"user_id": "U12345",
"channel_id": "C12345"
}
},
"function_name": "Reverse"
}
external_auth_started
The possible value for the code
property are: 'app_not_found', 'app_not_installed', 'provider_not_found', and "external_auth_started'.
"payload": {
"code": "external_auth_started",
"team_id": "T12345",
"user_id": "U12345",
"provider_key": "secret:key:12345",
"app_id": "A12345"
}
external_auth_result
The possible value for the code
property can be 'oauth2_callback_error' or "oauth2_exchange_success'.
"payload": {
"code": "oauth2_exchange_success",
"team_id": "T12345",
"user_id": "U12345",
"provider_key": "secret:key:12345",
"app_id": "A12345"
}
external_auth_token_fetch_result
There are multiple possible value for the code
property, will display successful or unsuccessful codes such as: 'no_collaborator_found', 'external_token_found', 'token_not_found', etc.
"payload": {
"code": "external_token_found",
"team_id": "T12345",
"user_id": "U12345",
"provider_key": "secret:key:12345",
"app_id": "A12345"
}
external_auth_missing_function
The possible value for the code
property is only 'function_not_found'.
"payload": {
"code": "function_not_found",
"team_id": "T12345",
"function_id": "Fn12345",
"app_id": "A12345"
}
external_auth_missing_selected_auth
The possible value for the code
property can be 'missing_oauth_token_or_selected_auth' or other errors encountered.
"payload": {
"code": "missing_oauth_token_or_selected_auth",
"team_id": "T12345",
"user_id": "U12345",
"provider_key": "secret:key:12345",
"app_id": "A12345"
}