logo

Back to Help Home Page.

GET Api/Webhooks

Retrieves the active webhooks linked to provided login/business.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of webhooks.

Collection of ChappReport.Site.Areas.Api.Models.V1.WebhookV1ModelResponse
NameDescriptionTypeAdditional information

Label

The label of the webhook. Possible value: OnFlowStatusChange

string

Required

Url

The url of the webhook for Chapps to call. This url will be enriched with following parameters: reportId and flowStatus.

string

Required

Max length: 100

Min length: 10

Credentials

The credentials to be used while calling the url.

ChappReport.Site.Areas.Api.Models.V1.Credentials

None.

Headers

The Headers to be add while calling the url.

Collection of Pair of string [key] and string [value]

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Label": "sample string 1",
    "Url": "sample string 2",
    "Credentials": {
      "Username": "sample string 1",
      "Password": "sample string 2"
    },
    "Headers": [
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      }
    ]
  },
  {
    "Label": "sample string 1",
    "Url": "sample string 2",
    "Credentials": {
      "Username": "sample string 1",
      "Password": "sample string 2"
    },
    "Headers": [
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfWebhookV1ModelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChappReport.Site.Areas.Api.Models.V1">
  <WebhookV1ModelResponse>
    <Credentials>
      <Password>sample string 2</Password>
      <Username>sample string 1</Username>
    </Credentials>
    <Headers xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
      <d3p1:KeyValuePairOfstringstring>
        <d3p1:key>sample string 1</d3p1:key>
        <d3p1:value>sample string 2</d3p1:value>
      </d3p1:KeyValuePairOfstringstring>
      <d3p1:KeyValuePairOfstringstring>
        <d3p1:key>sample string 1</d3p1:key>
        <d3p1:value>sample string 2</d3p1:value>
      </d3p1:KeyValuePairOfstringstring>
    </Headers>
    <Label>sample string 1</Label>
    <Url>sample string 2</Url>
  </WebhookV1ModelResponse>
  <WebhookV1ModelResponse>
    <Credentials>
      <Password>sample string 2</Password>
      <Username>sample string 1</Username>
    </Credentials>
    <Headers xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
      <d3p1:KeyValuePairOfstringstring>
        <d3p1:key>sample string 1</d3p1:key>
        <d3p1:value>sample string 2</d3p1:value>
      </d3p1:KeyValuePairOfstringstring>
      <d3p1:KeyValuePairOfstringstring>
        <d3p1:key>sample string 1</d3p1:key>
        <d3p1:value>sample string 2</d3p1:value>
      </d3p1:KeyValuePairOfstringstring>
    </Headers>
    <Label>sample string 1</Label>
    <Url>sample string 2</Url>
  </WebhookV1ModelResponse>
</ArrayOfWebhookV1ModelResponse>