Show Webhooks
GET
/api/managing-entity/{managingEntityIdentifier}/webhook/list
const url = 'https://api.wink.travel/api/managing-entity//webhook/list';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/api/managing-entity//webhook/list \ --header 'Wink-Version: 2.0'List all webhooks owned by the managing entity
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” managingEntityIdentifier
required
string
Identifier of the managing entity whose webhooks to list
Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Responses
Section titled “ Responses ”OK
Media type application/json
Array<object>
object
id
required
Document UUID
string
createdDate
Datetime this record was first created
string format: date-time
lastUpdate
Datetime this record was last updated
string format: date-time
version
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
integer format: int64
userIdentifier
required
Unique owner record identifier
string format: uuid
ownerIdentifier
required
Unique owner record identifier
string format: uuid
ownerName
required
Name of company owner.
string
name
required
Descriptive name of webhook.
string
enabled
required
Whether this webhook is enabled.
boolean
eventUrl
required
The url to POST event to.
string
eventList
required
Array<string>
Example
[ { "id": "", "createdDate": "", "lastUpdate": "", "version": "", "userIdentifier": "", "ownerIdentifier": "", "ownerName": "", "name": "", "enabled": true, "eventUrl": "", "eventList": [ "" ] }]Bad Request
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Unauthorized
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Forbidden
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Internal Server Error
object
Example generated
{}