latestOpenAPI 3.0.12026-08-188456240.4 KB

6e6982573ba6

Action Management API

Create a new Webhook action

post/api/2.0/actions/webhooks

Request body

createdDateinteger

Created date in milliseconds

lastModDateinteger

Last modified date

idinteger

Action ID

userIdinteger

Action owner's user ID

actionTypestring

Action type

dataFormat'attachment' | 'json'

Webhook data format

urlstring

Webhook request URL

authUrlstring

Webhook authentication URL

authHeadersstring

Webhook authentication headers

webhookHeadersstring

Webhook request headers

customPostBodystring

Webhook request post body

namestring

Webhook action name

Example request

{
  "actionType": "SLACK, TEAMS, WEBHOOK"
}

Response

Success

createdDateinteger

Created date in milliseconds

lastModDateinteger

Last modified date

idinteger

Action ID

userIdinteger

Action owner's user ID

actionTypestring

Action type

dataFormat'attachment' | 'json'

Webhook data format

urlstring

Webhook request URL

authUrlstring

Webhook authentication URL

authHeadersstring

Webhook authentication headers

webhookHeadersstring

Webhook request headers

customPostBodystring

Webhook request post body

namestring

Webhook action name

Example response

{
  "actionType": "SLACK, TEAMS, WEBHOOK"
}