Go to Slack

file_created event

Compatibility: RTM Events API

Events API Scope: files:read


A file was created

{
    "type": "file_created",
    "file": { … }
}

The file_created event is sent to all connected clients for a user when that user uploads a file to Slack. The file property is a file object containing information about the uploaded file.

When a file is shared with other members of the team (which can happen at upload time) a file_shared event will also be sent.

Events API compatibility

Subscribe to this event via the Events API.

Events of this type will be wrapped in metadata when sent via the Events API.

file_created requires the files:read OAuth permission scope.