Skip to Content
Pipelines Hooks

List all hooks in a pipeline

GET
/pipelines/{pipeline_id}/hooks

Path Parameters

pipeline_id*integer

The ID of the pipeline.

Range1 <= value

Query Parameters

page?integer

Number of the page to be retrieved

Range1 <= value
per_page?integer

Number of items returned per page

Range1 <= value <= 100

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Ok

application/json
  1. response
[index: integer]?|null
Example Request
curl -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"  }]