Download OpenAPI specification:Download
Egnyte Connect Public API - webhooks
Webhooks let your application react to events happening in Egnyte Connect in real time.
The number of webhooks registered for one pair: clientId+domain is limited.
Endpoint for registering a webhook to a URL with filters, we can define multiple path as a comma separated string upto 100 Endpoint returns ID of newly registered webhook, expiration timestamp and current status.
For webhook payloads documentation see specification of the receiver endpoint:
url required | string |
eventType | Array of strings (EventType) non-empty Items Enum: "comment:*" "fs:*" "link:*" "meta:*" "permission:*" "comment:remove_comment" "comment:set_comment" "fs:add_file" "fs:add_folder" "fs:upload_link" "fs:copy_file" "fs:copy_folder" "fs:delete_file" "fs:delete_folder" "fs:delete_from_trash" "fs:move_file" "fs:move_folder" "fs:restore_from_trash" "fs:lock_file" "fs:unlock_file" "fs:folder_project_activity" "link:create" "link:create_download_link" "link:create_upload_link" "link:delete" "link:delete_download_link" "link:delete_upload_link" "meta:add_metadata_key" "meta:delete_metadata_key" "workflow:created" "workflow:completed" "workflow:approvaltask_approved" "workflow:approvaltask_rejected" "group:create" "group:delete" "group:rename" "group:add_members" "group:remove_members" "group:add_owner" "group:remove_owner" "permission:permission_change" |
authHeader | string |
path | string |
{- "eventType": [
- "fs:add_file"
], - "path": "/Shared/Documents/Invoices, /Shared/Documents/Samples"
}
{- "webhookId": "c9ac0519-284a-4bee-9574-30ae7891e5dc",
- "expires": 2100000000,
- "status": "enabled"
}
Returns webhooks ID, expiration timestamp and status.
[- {
- "webhookId": "c9ac0519-284a-4bee-9574-30ae7891e5dc",
- "expires": 2100000000,
- "status": "enabled"
}, - {
- "webhookId": "c9ac0519-284a-4bee-9574-30ae7891e5dc",
- "expires": 2100000000,
- "status": "disabled"
}
]
Allows for webhook update.
webhookId required | string (WebhookId) ID of the webhook to update |
url required | string |
eventType | Array of strings (EventType) non-empty Items Enum: "comment:*" "fs:*" "link:*" "meta:*" "permission:*" "comment:remove_comment" "comment:set_comment" "fs:add_file" "fs:add_folder" "fs:upload_link" "fs:copy_file" "fs:copy_folder" "fs:delete_file" "fs:delete_folder" "fs:delete_from_trash" "fs:move_file" "fs:move_folder" "fs:restore_from_trash" "fs:lock_file" "fs:unlock_file" "fs:folder_project_activity" "link:create" "link:create_download_link" "link:create_upload_link" "link:delete" "link:delete_download_link" "link:delete_upload_link" "meta:add_metadata_key" "meta:delete_metadata_key" "workflow:created" "workflow:completed" "workflow:approvaltask_approved" "workflow:approvaltask_rejected" "group:create" "group:delete" "group:rename" "group:add_members" "group:remove_members" "group:add_owner" "group:remove_owner" "permission:permission_change" |
authHeader | string |
path | string |
status | string Enum: "enabled" "disabled" |
{- "eventType": [
- "fs:add_file"
], - "path": "/Shared/Documents/Invoices",
- "status": "enabled",
- "authHeader": "AuthHeader"
}
{- "code": "string",
- "message": "string",
- "details": "string"
}
Returns webhook ID, expiration timestamp and status.
webhookId required | string (WebhookId) ID of the webhook |
{- "webhookId": "c9ac0519-284a-4bee-9574-30ae7891e5dc",
- "expires": 2100000000,
- "status": "enabled"
}
Allows to set webhook status.
webhookId required | string (WebhookId) ID of the webhook |
status required | string Enum: "enabled" "disabled" |
{- "status": "enabled"
}
{- "webhookId": "c9ac0519-284a-4bee-9574-30ae7891e5dc",
- "expires": 2100000000,
- "status": "enabled"
}
Returns webhook ID, url, expiration timestamp and status and other important details
webhookId required | string (WebhookId) ID of the webhook |
{- "webhookId": "c9ac0519-284a-4bee-9574-30ae7891e5dc",
- "expires": 2100000000,
- "status": "enabled",
- "eventType": [
- "event type 1",
- "event type 2"
], - "path": "/path/dummypath,/path/samples",
- "authHeader": "AuthHeader",
}
Returns information about the user making request: data from Egnyte Connect plus clientId of application used.
{- "clientId": "hweb8adyh3gumiypa45qdgkm",
- "username": "johndoe",
- "domain": "acme",
- "scopes": [
- "fs"
]
}