Contacts

get contacts

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

Sorting parameter Available values : entity fields Default value : id

Example: failed_attempts
orderstringOptional

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

Example: Desc
limitinteger · int32Optional

Paging parameter Default value : null

Example: 2
offsetinteger · int32Optional

Paging parameter Default value : 0

Example: 3
contactinteger · int32Optional

Filter Parameter check the contact

Example: 123456789
typestringOptional

Filter Parameter check the type Available values : [email,phone,email]

Example: email
userinteger · int32Optional

Filter Parameter check the user_id

  • accept "me" as special value
Example: 1
data_sourcestringOptional

Filter Parameter check the data_source

Example: email
Responses
200

OK

application/json
get
/api/v3/contacts

add contact

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

Request Body

Name
Type
Description

user_id

Integer

The user identifier

country_code

String

Country code

can_notify

Boolean

Set True to enable contact notification and False to disable

contact

String

Contact number

type

String

The type of contact e.g. "phone"

data_source

String

The data source

get contact

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

OK

application/json
get
/api/v3/contacts/1

edit contact

PUT https://ushahididocs.api.ushahidi.io/api/v3/contacts/3

Request Body

Name
Type
Description

user_id

Integer

The user identifier

country_code

String

Country code

can_notify

Boolean

Set True to enable contact notification and False to disable

contact

String

Contact number

type

String

The type of contact e.g. "phone"

data_source

String

The data source

delete contact

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

OK

application/json
delete
/api/v3/contacts/9