Messages

get messages

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
boxstringOptional

Filter Parameter Available values : [outbox,inbox,archived]

Example: outbox
statusstringOptional

Filter Parameter Available values : [all,received,archived,pending,sent]

Example: received
contactinteger · int32Optional

Filter Parameter check the contact id

Example: 1
parentinteger · int32Optional

Filter Parameter check the parent id

Example: 2
postinteger · int32Optional

Filter Parameter check the post id

Example: 1
typestringOptional

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

Example: sms
qstringOptional

Filter Parameter check the value if it likes contact, title, message

Example: test
data_sourcestringOptional

Filter Parameter check the data_source Available values : [sms,twitter,email]

Example: smssync
Responses
200

OK

application/json
get
/api/v3/messages

add message

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

Request Body

Name
Type
Description

parent_id

String

The parent identifier

datetime

String

Date and time

user_id

String

user ID

title

String

Massage title

data_source_message_id

String

Data source message identifier

message

String

The main message you would like to add

contact_id

Integer

The post contact identifier

data_source

String

Data source

post_id

String

post ID

notification_post_id

String

Notification post identifier

additional_data

String

Additional information

direction

String

Message direction e.g. "outgoing"

status

String

Message status

type

String

Message type e.g. "sms"

contact_type

String

Contact type

contact

String

Message contact

get message

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

OK

application/json
get
/api/v3/messages/2

edit message

PUT https://ushahididocs.api.ushahidi.io/api/v3/messages/18

Request Body

Name
Type
Description

parent_id

String

The parent identifier

datetime

String

Date and time

user_id

String

user ID

title

String

Massage title

data_source_message_id

String

Data source message identifier

message

String

The main message you would like to add

contact_id

Integer

The post contact identifier

data_source

String

Data source

post_id

String

post ID

notification_post_id

String

Notification post identifier

additional_data

String

Additional information

direction

String

Message direction e.g. "outgoing"

status

String

Message status

type

String

Message type e.g. "sms"

contact_type

String

Contact type

contact

String

Message contact

get message posts

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

OK

application/json
get
/api/v3/messages/4/post