List a Project's Service Hooks

GET /api/0/projects/{organization_slug}/{project_slug}/hooks/

Return a list of service hooks bound to a project.

This endpoint requires the ‘servicehooks’ feature to be enabled for your project.

Path Parameters:
  • organization_slug (string)

    the slug of the organization the client keys belong to.

  • project_slug (string)

    the slug of the project the client keys belong to.

Authentication: required
Method: GET
Path: /api/0/projects/{organization_slug}/{project_slug}/hooks/

Example

GET /api/0/projects/the-interstellar-jurisdiction/pump-station/hooks/ HTTP/1.1
Host: sentry.io
Authorization: Bearer <token>
HTTP/1.1 200 OK
Content-Length: 271
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Language: en
Vary: Accept-Language, Cookie
Link: <https://sentry.io/api/0/projects/the-interstellar-jurisdiction/pump-station/hooks/?&cursor=1:0:1>; rel="previous"; results="false"; cursor="1:0:1", <https://sentry.io/api/0/projects/the-interstellar-jurisdiction/pump-station/hooks/?&cursor=1:100:0>; rel="next"; results="false"; cursor="1:100:0"
Allow: GET, POST, HEAD, OPTIONS
X-Frame-Options: deny
Content-Type: application/json

[
  {
    "dateCreated": "2018-11-06T21:20:08.143Z", 
    "events": [
      "event.alert", 
      "event.created"
    ], 
    "id": "4f9d73e63b7144ecb8944c41620a090b", 
    "secret": "8fcac28aaa4c4f5fa572b61d40a8e084364db25fd37449c299e5a41c0504cbc2", 
    "status": "active", 
    "url": "https://example.com/sentry-hook"
  }
]