Webhooks

get webhooks

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
orderbystringOptional

Sorting parameter Available values : entity fields Default value : id

Example: id
orderstringOptional

Sorting parameter Available values : [ASC,DESC] Default value : ASC

Example: asc
limitinteger · int32Optional

Paging parameter Default value : null

Example: 2
offsetinteger · int32Optional

Paging parameter Default value : 0

Example: 3
userinteger · int32Optional

Filter Parameter check the user id

  • accept "me" as special value
Example: 3
Responses
chevron-right
200

OK

application/json
countinteger · int32Required
limitstring · nullableRequired
offsetinteger · int32Required
orderstringRequired
orderbystringRequired
currstringRequired
nextstringRequired
prevstringRequired
total_countinteger · int32Required
get
/api/v3/webhooks

add webhooks

POST https://ushahididocs.api.ushahidi.io/api/v3/webhooks

Request Body

Name
Type
Description

user_id

Integer

The user identifier

webhook_uuid

String

Webhook unique ID

shared_secret

String

The shared secrete unique ID

name

String

Webhook name

form_id

String

The form identifier

destination_field_key

String

event_type

String

The event type

url

String

Webhook URL

source_field_key

String

entity_type

String

Entity type

get webhook

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

OK

application/json
idinteger · int32Required
urlstringRequired
form_idstring · nullableRequired
namestringRequired
shared_secretstringRequired
webhook_uuidstringRequired
event_typestringRequired
entity_typestringRequired
source_field_keystring · nullableRequired
destination_field_keystring · nullableRequired
createdstringRequired
updatedstring · nullableRequired
allowed_privilegesstring[]Required
get
/api/v3/webhooks/2

edit webhooks

PUT https://ushahididocs.api.ushahidi.io/api/v3/webhooks/2

Request Body

Name
Type
Description

user_id

Integer

The user identifier

webhook_uuid

String

Webhook unique ID

shared_secret

String

The shared secrete unique ID

name

String

Webhook name

form_id

String

The form identifier

destination_field_key

String

event_type

String

The event type

url

String

Webhook URL

source_field_key

String

entity_type

String

Entity type

delete webhook

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

OK

application/json
idinteger · int32Required
urlstringRequired
form_idstring · nullableRequired
namestringRequired
shared_secretstringRequired
webhook_uuidstringRequired
event_typestringRequired
entity_typestringRequired
source_field_keystring · nullableRequired
destination_field_keystring · nullableRequired
createdstringRequired
updatedstring · nullableRequired
allowed_privilegesstring[]Required
delete
/api/v3/webhooks/3

edit a webhook post

PUT https://ushahididocs.api.ushahidi.io/api/v3/webhooks/posts/96

Request Body

Name
Type
Description

form_id

Integer

Form unique identifier

slug

String

Post slug

type

String

Post type

message

String

Additiong message for post

url

String

Post URL

author_email

String

Email address of source

title

String

Title of the new post

content

String

Post content

user_id

Integer

The user's unique Identifier

author_realname

String

The full name of the Post source

status

String

The status of post

locale

String

Post local language

color

String

Post color

id

String

Unique identifier of post

values

String

This is an array containing two items, one for the title and the description

published_to

Array

This contains an array of where the post was published

source

String

Source of post

sets

String

An array of set id's

tags

String

Contains an array of tag Id's

contact

String

Post contact