Skip to Content
Hook Requests

Get a hook request by ID

GET
/hook-requests/{hook_request_id}

Path Parameters

hook_request_id*string

The ID of the hook request.

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Ok

application/json
  1. response
id*string

The unique UUID of the hook request

hook_id*string

The UUID of the hook that the request belongs to

action_id*|

The ID of the action that the request belongs to

retry_of*|

The UUID of the request that this request is a retry of

ip_address*string

The IP address of the source that triggered the hook

url*string

Original URL used on the request

request_headers*

The headers of the request

request_body*

The body of the request

response_status_code*integer

The response status code

response_headers*

The headers of the response

response_body*

The body of the response

hook*|null
created_at*string

The date and time when the record was created

updated_at*string

The date and time when the record was last updated

Example Request
curl -X GET 'https://api.devopness.com/hook-requests/2ab973e1-9528-4d67-aff0-209d74975830' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json'
Example Response
{  "id": "6fa16226-9dc4-4367-88aa-e689ad2bc580",  "hook_id": "f1a61a4e-4d08-11eb-9481-0242ac130004",  "action_id": 1985239,  "retry_of": "002afd04-e3af-4dad-bf46-b2b25978482a",  "ip_address": "172.17.0.4",  "url": "https://api.devopness.com/hooks-incoming/f1a61a4e-4d08-11eb-9481-0242ac130004",  "request_headers": {    "Content-Type": "application/json",    "Accept": "application/json"  },  "request_body": {    "message": "Hello World"  },  "response_status_code": 200,  "response_headers": {    "Content-Type": "application/json",    "Accept": "application/json"  },  "response_body": {    "success": true  },  "hook": {    "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"  },  "created_at": "2022-09-26T15:30:31.000000Z",  "updated_at": "2022-09-26T15:30:58.000000Z"}