Get webhook

get
https://api.box.com/2.0
/webhooks/:webhook_id

Retrieves a specific webhook

Request

application/json

Path Parameters

stringin pathrequired
3321123

The ID of the webhook.

Response

application/jsonWebhook

Returns a webhook object

application/jsonClient error

Returns an error if the application does not have the permission to manage webhooks.

application/jsonClient error

Returns an error if the webhook could not be found

application/jsonClient error

An unexpected client error.

get
Get webhook
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -X GET https://api.box.com/2.0/webhooks/3321123 \
     -H 'Authorization: Bearer <ACCESS_TOKEN>'
.NET
BoxWebhook webhook = await client.WebhooksManager.GetWebhookAsync("12345");
Java
BoxWebHook webhook = new BoxWebHook(api, id);
BoxWebHook.Info info = webhook.getInfo();
Python
webhook = client.webhook(webhook_id='12345').get()
print('Webhooks ID is {0} and the address is {1}'.format(webhook.id, webhook.address))
Node
client.webhooks.get('1234')
	.then(webhook => {
		/* webhook -> {
			id: '1234',
			type: 'webhook',
			target: { id: '22222', type: 'folder' },
			created_by: 
			{ type: 'user',
				id: '33333',
				name: 'Example User',
				login: 'user@example.com' },
			created_at: '2016-05-09T17:41:27-07:00',
			address: 'https://example.com/webhook',
			triggers: [ 'FILE.DOWNLOADED', 'FILE.UPLOADED' ] }
		*/
	});
iOS
client.folders.get(webhookId: "22222", fields: ["id", "created_at"]) { (result: Result<Webhook, BoxSDKError>) in
    guard case let .success(webhook) = result else {
        print("Error getting webhook information")
        return
    }

    print("Webhook \(webhook.id) was created at \(webhook.createdAt)")
}