file_created event
A file was created
Facts
Required Scopes
Usage info
This example includes both the event wrapper and the event structure for the file_created event.
{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "file_created",
"file_id": "F2147483862",
"file": {
"id": "F2147483862"
}
},
"type": "event_callback",
"authed_users": [
"U123ABC456",
"U222222222"
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}
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_sharedevent will also be sent.