The payload of a Box skill as sent to a Custom Skill's
invocation_url.
2012-12-12T10:53:43-08:00The time this invocation was created.
The enterprise that this invocation was triggered for
11446498The unique identifier for this object
Acme Inc.The name of the enterprise
enterpriseValue is always enterprise
The event that triggered this invocation
fd1d2e53-35f5-41fb-9c25-4ba326daf2f9_341016304Unique identifier for the invocation request.
The skill that triggered this invocation
The item that caused the invocation to trigger
The details status of this event.
ExampleAdditional status information.
400Error code information, if error occurred.
ExampleStatus information
invokedThe state of this event.
invoked - Triggered the skill with event details to start
applying skill on the file.processing - Currently processing.success - Completed processing with a success.transient_failure - Encountered an issue which can be
retried.permanent_failure - Encountered a permanent issue and
retry would not help.Value is one of invoked,processing,success,transient_failure,permanent_failure
The read-only and read-write access tokens for this item
The basics of an access token
c3FIOG9vSGV4VHo4QzAyg5T1JvNnJoZ3ExaVNyQWw6WjRsanRKZG5lQk9qUE1BVQThe requested access token.
3600The time in seconds in seconds by which this token will expire.
The permissions that this access token permits, providing a list of resources (files, folders, etc) and the scopes permitted for each of those resources.
The file for which the file can be accessed
item_downloadThe file scopes for the file access
Value is one of annotation_edit,annotation_view_all,annotation_view_self,base_explorer,base_picker,base_preview,base_upload,item_delete,item_download,item_preview,item_rename,item_share
bearerValue is always bearer
The basics of an access token
c3FIOG9vSGV4VHo4QzAyg5T1JvNnJoZ3ExaVNyQWw6WjRsanRKZG5lQk9qUE1BVQThe requested access token.
3600The time in seconds in seconds by which this token will expire.
The permissions that this access token permits, providing a list of resources (files, folders, etc) and the scopes permitted for each of those resources.
The file for which the file can be accessed
item_downloadThe file scopes for the file access
Value is one of annotation_edit,annotation_view_all,annotation_view_self,base_explorer,base_picker,base_preview,base_upload,item_delete,item_download,item_preview,item_rename,item_share
bearerValue is always bearer
FILE_CONTENTAction that triggered the invocation
skill_invocationValue is always skill_invocation
{
"created_at": "2012-12-12T10:53:43-08:00",
"enterprise": {
"id": 11446498,
"name": "Acme Inc.",
"type": "enterprise"
},
"event": {
"additional_details": {
"key": "value"
},
"created_by": {
"id": 11446498,
"login": "ceo@example.com",
"name": "Aaron Levie",
"type": "user"
},
"event_id": "f82c3ba03e41f7e8a7608363cc6c0390183c3f83",
"event_type": "FILE_MARKED_MALICIOUS",
"session_id": "70090280850c8d2a1933c1",
"source": {
"id": 11446498,
"login": "ceo@example.com",
"name": "Aaron Levie",
"type": "user"
},
"type": "event"
},
"id": "fd1d2e53-35f5-41fb-9c25-4ba326daf2f9_341016304",
"skill": {
"api_key": "hxel2s12wd2h9r8ne103c4gjbqefofih",
"id": 11446498,
"name": "Hello World Skill",
"type": "skill"
},
"source": {
"content_created_at": "2012-12-12T10:53:43-08:00",
"content_modified_at": "2012-12-12T10:53:43-08:00",
"created_at": "2012-12-12T10:53:43-08:00",
"created_by": {
"id": 11446498,
"login": "ceo@example.com",
"name": "Aaron Levie",
"type": "user"
},
"description": "Contract for Q1 renewal",
"etag": 1,
"file_version": {
"id": 12345,
"sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc",
"type": "file_version"
},
"id": 12345,
"item_status": "active",
"modified_at": "2012-12-12T10:53:43-08:00",
"modified_by": {
"id": 11446498,
"login": "ceo@example.com",
"name": "Aaron Levie",
"type": "user"
},
"name": "Contract.pdf",
"owned_by": {
"id": 11446498,
"login": "ceo@example.com",
"name": "Aaron Levie",
"type": "user"
},
"parent": {
"etag": 1,
"id": 12345,
"name": "Contracts",
"sequence_id": 3,
"type": "folder"
},
"path_collection": {
"entries": [
{
"id": 12345,
"etag": 1,
"type": "folder",
"sequence_id": 3,
"name": "Contracts"
}
],
"total_count": 1
},
"purged_at": "2012-12-12T10:53:43-08:00",
"sequence_id": 3,
"sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37",
"shared_link": {
"access": "open",
"download_count": 3,
"download_url": "https://www.box.com/shared/static/rh935iit6ewrmw0unyul.jpeg",
"effective_access": "company",
"effective_permission": "can_download",
"is_password_enabled": true,
"permissions": {
"can_download": true,
"can_preview": true
},
"preview_count": 3,
"unshared_at": "2018-04-13T13:53:23-07:00",
"url": "https://www.box.com/s/vspke7y05sb214wjokpk",
"vanity_url": "https://acme.app.box.com/v/my_url/"
},
"size": 629644,
"trashed_at": "2012-12-12T10:53:43-08:00",
"type": "file"
},
"status": {
"additional_info": "Example",
"error_code": 400,
"message": "Example",
"state": "invoked"
},
"token": {
"read": {
"access_token": "c3FIOG9vSGV4VHo4QzAyg5T1JvNnJoZ3ExaVNyQWw6WjRsanRKZG5lQk9qUE1BVQ",
"expires_in": 3600,
"restricted_to": [
{
"scope": "item_download",
"object": {
"id": 12345,
"etag": 1,
"type": "file",
"sequence_id": 3,
"name": "Contract.pdf"
}
}
],
"token_type": "bearer"
},
"write": {
"access_token": "c3FIOG9vSGV4VHo4QzAyg5T1JvNnJoZ3ExaVNyQWw6WjRsanRKZG5lQk9qUE1BVQ",
"expires_in": 3600,
"restricted_to": [
{
"scope": "item_download",
"object": {
"id": 12345,
"etag": 1,
"type": "file",
"sequence_id": 3,
"name": "Contract.pdf"
}
}
],
"token_type": "bearer"
}
},
"trigger": "FILE_CONTENT",
"type": "skill_invocation"
}