You must enable javascript in order to use the Slack API Documentation. You can do this in your browser settings.
Go to Slack

file_created event

A file was created

Compatibility: RTM Events API

Expected scopes:

{
    "type": "file_created",
    "file_id": "F2147483862",
    "file": {
        "id": "F2147483862"
    }
}

The file_created event is sent to all connected clients for a user when that user uploads a file to Slack. The file property includes the file ID, as well as a top-level file_id. To obtain additional information about the file, use the files.info API method.

When a file is shared with other members of the workspace (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.