Login & Register

login

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
usernamestringRequired

The Ushahidi login username/email

Example: [email protected]
passwordstringRequired

The Ushahidi password

Example: Doc@test2022
grant_typestringRequired

Login grant type. Use Password for this grant type

Example: password
client_idstringRequired

The user client ID

Example: ushahidiui
client_secretstringRequired

The client unique secret indentifier

Example: 35e7f0bca957836d05ca0492211b0ac707671261
scopestringOptional

You need to also provide the scope. you can add multiple scope to this parameters. (Scope Options - posts, country_codes, media, forms, api, tags, savedsearches, sets, users, stats, layers, config, messages, notifications, webhooks, contacts, roles, permissions, csv, tos dataproviders, migrate, apikeys)

Example: posts country_codes media forms api tags savedsearches sets users stats layers config messages notifications webhooks contacts roles permissions csv tos dataproviders migrate apikeys
Responses
200

OK

application/json; charset=UTF-8
post
/oauth/token
200

OK

register

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

Request Body

Name
Type
Description

email*

String

The user's email address

password*

String

The user's password

password reset

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

Request Body

Name
Type
Description

email*

String

The user's registered email address

confirm password reset

POST https://ushahididocs.api.ushahidi.io/api/v3/passwordreset/confirm

Request Body

Name
Type
Description

token*

String

The password reset token the user received in their mail

password*

String

The user's new password