get /users/me users.me Me
Fetches the current authenticated user
A set of endpoints to manage Iris msg organisations and sent messages to subscribers through the donor network
Fetches the current authenticated user
Requests a login sms to be sent and creates a new user if it doesn't exist
name | type | description |
---|---|---|
phoneNumber | string | The local phone number of the user |
countryCode | string | The ISO_3166-2 country where the phone is |
Checks a login sms code and logs in the user and optionally verifies the user
name | type | description |
---|---|---|
code | number | The sms code to check |
Updates the fcm token for the current user
name | type | description |
---|---|---|
newToken | string | The updated fcm token |
Fetches organisations the current user is part of
Fetches a specific organisation that the user is part of
name | type | description |
---|---|---|
org_id | string | The id of the organisation ti fetch |
Fetches the members of an organisation with their phone numbers
name | type | description |
---|---|---|
org_id | string | The id of the organisation ti fetch |
Creates a new organisation with the current user as a coordinator
name | type | description |
---|---|---|
name | string | The name of the new organisation |
info | string | A longer description of the new organisation |
Deletes an organisation (using a soft delete)
name | type | description |
---|---|---|
org_id | string | The id of the delete |
Invites a member to an organisation
name | type | description |
---|---|---|
org_id | string | The id of the organisation to be added to |
name | type | description |
---|---|---|
phoneNumber | string | The phone number of the person to invite |
countryCode | string | The ISO_3166-2 country where the phone is |
role | string | The role of the new user (coordinator|donor|subscriber) |
label | string | A label for the new member |
Remove a member from an organisation (uses a soft delete)
name | type | description |
---|---|---|
org_id | string | The id of the organisation to be removed from |
mem_id | string | The id of the membership to be removed |
Accept an invitation to join an organisation and returns UserAuth
name | type | description |
---|---|---|
token | string | The invite token the user was sent |
Unsubscribes a member from an organisation (uses a soft delete)
name | type | description |
---|---|---|
token | string | The unsubscribe token the user was sent |
Gets the information for a deep-linked donation accept screen
name | type | description |
---|---|---|
token | string | The invite token the user was sent |
Creates a message and sends out fcm `new_donations` messages to donors
name | type | description |
---|---|---|
orgId | string | The id of the organisation to send to |
content | string | The message to be sent |
Gets the pending messages you have to send as a donor
Sets the state of a set of MessageAttempts
name | type | description |
---|---|---|
updates | array | The updates to perform |
updates[n].attempt | string | The id of the attempt to update |
updates[n].newState | string | The new state of the attempt (success|failed|rejected|no_service|no_sms_data|radio_off) |