HTTP Verb: GET

Available statuses: 200 OK, 204 No Content

Object: Webhook

Location: n/a

Formats: XML, JSON

Returns the list of webhooks in a given space.

Params

No params are accepted

Examples

Request XML, using cURL utility:

curl -i -XGET -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/myspace/webhooks.xml

Response:


HTTP/2 200
date: Wed, 29 Jan 2020 07:05:37 GMT
content-type: application/xml; charset=utf-8
cache-control: max-age=0, private, must-revalidate
etag: W/"b06d5331caed984ab5e062a8ebab5a35-gzip"
status: 200 OK
vary: Accept-Encoding
...

<?xml version="1.0" encoding="UTF-8"?>
<objects type="array">
  <object>
    <id type="integer">11</id>
    <title>MyWebhook</title>
    <enabled type="boolean">false</enabled>
    <authentication-type type="integer">1</authentication-type>
    <app-api-key nil="true"/>
    <app-secret nil="true"/>
    <app-request-token-url nil="true"/>
    <app-access-token-url nil="true"/>
    <app-authorize-url nil="true"/>
    <app-authorize-query nil="true"/>
    <access-token nil="true"/>
    <access-token-secret nil="true"/>
    <external-url>https://www.google.com</external-url>
    <http-method type="integer">1</http-method>
    <content-type nil="true"/>
    <content nil="true"/>
    <created-at type="datetime">2014-09-26T06:28:17+00:00</created-at>
    <updated-at type="datetime">2014-09-26T06:28:17+00:00</updated-at>
  </object>
</objects;>

Request JSON, using cURL utility:

curl -i -XGET -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/myspace/webhooks.json

Response:


HTTP/2 200
date: Wed, 29 Jan 2020 07:05:37 GMT
content-type: application/xml; charset=utf-8
cache-control: max-age=0, private, must-revalidate
etag: W/"b06d5331caed984ab5e062a8ebab5a35-gzip"
status: 200 OK
vary: Accept-Encoding
...

[
  {
    "id": 13,
    "title": "MyWebhook",
    "enabled": false,
    "authentication_type": 1,
    "app_api_key": null,
    "app_secret": null,
    "app_request_token_url": null,
    "app_access_token_url": null,
    "app_authorize_url": null,
    "app_authorize_query": null,
    "access_token": null,
    "access_token_secret": null,
    "external_url": "https://www.assembla.com",
    "http_method": 1,
    "content_type": null,
    "content": null,
    "created_at": "2014-09-26T06:29:11+00:00",
    "updated_at": "2014-09-26T06:29:11+00:00"
  }
]

JSON is formatted here for readability, in a real response JSON body is inline with no indentation.

Description for each field: webhook object fields reference