Slack. Web. Admin. Analytics
(SlackKit v1.0.0-alpha.0)
View Source
Summary
Functions
Retrieve analytics data for a given date, presented as a compressed JSON file
Functions
Retrieve analytics data for a given date, presented as a compressed JSON file
API reference
Rate limit: Tier 2: 20+ per minute
Scopes:
- User token:
admin.analytics:read
Required Params
type- The type of analytics to retrieve. The options are currently limited tomember(for Enterprise org member analytics) andpublic_channel(for public channel analytics). When settingtypetopublic_channel, you may also use themetadata_onlyboolean argument, which changes the response entirely to give you metadata about the public channels appearing in your conversation analytics. ex:member
Optional Params
date- Date to retrieve the analytics data for, expressed asYYYY-MM-DDin UTC. Required unlessmetadata_onlyis set to true. ex:2020-09-01metadata_only- Retrieve metadata for thetypeof analytics indicated. Can be used only withtypeset topublic_channelanalytics. See detail below. Omit thedateparameter when using this argument. When settingtypetopublic_channel, you may also use themetadata_onlyboolean argument, which changes the response entirely to give you metadata about the public channels appearing in your conversation analytics. ex:true
Errors the API can return:
data_not_available- Thedatewas before the API became available.feature_not_available- The user token does not belong to an Enterprise or Business+ team.feature_not_enabled- This feature is not enabled on your workspace.file_not_found- The analytics data for thedatespecified weren't found.file_not_yet_available- The analytics data for thedateisn't available yet.invalid_date- Thedateargument was invalid.invalid_type- The analytics data for thetypespecified weren't found.member_analytics_disabled- Member analytics are disabled for your organization.metadata_not_available- Metadata not available for the analyticstypeyou provided.metadata_only_does_not_support_date- Themetadata_onlyfield gets the latest metadata file. Thedatefield is not supported.not_an_admin- The user token does not have admin privileges.org_level_email_display_disabled- This API is unavailable for organizations with a 'Hide email addresses' policy.user_cannot_manage_public_channels- The user must have permissions to manage public channels at the Enterprise level.
See the Common Errors guide for errors returned by every Web API method.