Gowit API
  • Gowit API (1.0.1)
  • Webhooks
  • API Key
  • API reference
    • 🔵Retrieve user webhooks
    • 🟢Add a webhook subscription
    • 🔴Delete webhook
Powered by GitBook
On this page
  1. API reference

Retrieve user webhooks

Retrieve a list of the webhooks configured for an user.

PreviousAPI referenceNextAdd a webhook subscription

Last updated 1 year ago

curl -i -X GET \
'https://api.gowit.us/v1/webhook?user=INSERT_USER&key=INSERT_KEY'
const query = new URLSearchParams({
  user: 'INSERT_USER',
  key: 'INSERT_KEY'
}).toString();

const resp = await fetch(
  `https://api.gowit.us/v1/webhook?${query}`,
  {method: 'GET'}
);

const data = await resp.text();
console.log(data);
import fetch from 'node-fetch';

async function run() {
  const query = new URLSearchParams({
    user: 'INSERT_USER',
    key: 'INSERT_KEY'
  }).toString();

  const resp = await fetch(
    `https://api.gowit.us/v1/webhook?${query}`,
    {method: 'GET'}
  );

  const data = await resp.text();
  console.log(data);
}

run();
import requests

url = "https://api.gowit.us/v1/webhook"

query = {
  "user": "INSERT_USER",
  "key": "INSERT_KEY"
}

response = requests.get(url, params=query)

data = response.json()
print(data)
🔵
get
Authorizations
Query parameters
keystringRequired

The API key is a unique identifier provided by our support team for accessing the API.

userstringRequired

The 'user' parameter is a unique identifier provided by the API support team to identify authorized users in the requests.

Responses
200
```json { "data": [ { "id": "PKzHHvYGCrmjS31DJA", "name": "Webhook name", "url": "https://webhook.url.com/" } ] } ```
400
INVALID_ARGUMENT: {message}
get
GET /v1/webhook HTTP/1.1
Host: api.gowit.us
Accept: */*

No content