# Webhooks Actions
Details on the various actions that can be performed on the
Webhooks resource, including the expected
parameters and the potential responses.
##### Contents
* [Get](#get)
* [Post](#post)
## Get
Returns the webhooks for an application
```ruby
result = client.webhooks.get(applicationId: my_application_id)
puts result
```
#### Available Parameters
| Name | Type | Required | Description | Default | Example |
| ---- | ---- | -------- | ----------- | ------- | ------- |
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
| sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate | name | name |
| sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
| page | string | N | Which page of results to return | 0 | 0 |
| perPage | string | N | How many items to return per page | 1000 | 10 |
| filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name | | name |
| filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my*webhook |
#### Successful Responses
| Code | Type | Description |
| ---- | ---- | ----------- |
| 200 | [Webhooks](_schemas.md#webhooks) | Collection of webhooks |
#### Error Responses
| Code | Type | Description |
| ---- | ---- | ----------- |
| 400 | [Error](_schemas.md#error) | Error if malformed request |
| 404 | [Error](_schemas.md#error) | Error if application was not found |
## Post
Create a new webhook for an application
```ruby
result = client.webhooks.post(
applicationId: my_application_id,
webhook: my_webhook)
puts result
```
#### Available Parameters
| Name | Type | Required | Description | Default | Example |
| ---- | ---- | -------- | ----------- | ------- | ------- |
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
| webhook | [Webhook Post](_schemas.md#webhook-post) | Y | New webhook information | | [Webhook Post Example](_schemas.md#webhook-post-example) |
#### Successful Responses
| Code | Type | Description |
| ---- | ---- | ----------- |
| 201 | [Webhook](_schemas.md#webhook) | Successfully created webhook |
#### Error Responses
| Code | Type | Description |
| ---- | ---- | ----------- |
| 400 | [Error](_schemas.md#error) | Error if malformed request |
| 404 | [Error](_schemas.md#error) | Error if application was not found |