Pipelines Hooks
List all hooks in a pipeline
GET
pipeline_id*integerThe ID of the pipeline.
Range
1 <= valuepage?integerNumber of the page to be retrieved
Range
1 <= valueper_page?integerNumber of items returned per page
Range
1 <= value <= 100Accept*stringapplication/json
Content-Type*stringapplication/json
Ok
application/json- response
[index: integer]?|nullcurl -X GET 'https://api.devopness.com/pipelines/123/hooks?page=1&per_page=25' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <your_api_token>' \ -H 'Content-Type: application/json'Example Response
[ { "id": "f1a61a4e-4d08-11eb-9481-0242ac130004", "name": "my-app deploy", "type": "in", "action_type": "deploy", "url": "http://localhost/hooks/incoming/0a2f9b84-e9bb-4fef-b146-51847bb9e569", "target_url": "https://fake-url-test.com/hook/12345", "is_auto_generated": false, "requires_secret": true, "verify_ssl": true, "active": true, "project_id": 34985723, "environment_id": 579085, "pipeline_id": 289542, "resource_type": "application", "resource_id": 9056412, "settings": { "variables": [ { "name": "environment_id", "path": "data.environment.id", "type": "integer", "required": false, "default_value": null } ] }, "trigger_when": { "events": [ "action.status_changed", "action.queued", "action.started", "action.completed", "action.failed" ], "conditions": [ { "name": "Only trigger incoming hook on PRs of a given pull request author", "type": "request_body", "path": "sender.login", "accepted_values": [ "some-one" ] } ] }, "created_at": "2019-09-25T15:50:48.000000Z", "updated_at": "2019-09-25T15:50:48.000000Z" }]