List all webhook content types
GET/v2/config/webhooks/payload/content-types
This endpoint lists the payload content types that a webhook can use. Use one of these values in the contentType field when you create or update a webhook. The server posts the payload as a JSON body for application/json. For application/x-www-form-urlencoded, the server makes a string of the payload and posts it as a form under the payload key. Note the capital C in the ContentTypes response field. The order of the values changes between calls.
Responses
- 200
- 401
- 500
OK
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
ContentTypes string[]required
Possible values: [application/json, application/x-www-form-urlencoded]
The payload content types that a webhook can use.
{
"ContentTypes": [
"application/json",
"application/x-www-form-urlencoded"
]
}
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
errorCode integerrequired
errorDescription stringrequired
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
Internal server error
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
errorCode integerrequired
errorDescription stringrequired
{
"errorCode": 400,
"errorDescription": "Bad input parameter"
}
Loading...