API reference · Access & roles

User Verification

POST Confirm email address verification

POST /user/{emailAddress}/verify/email

Validates the supplied OTP against the most recently generated one for this user's email address. On success, marks the email address as verified. Fails after 5 incorrect attempts or once the OTP expires (10 minutes after generation).

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Path parameters

Name
emailAddress

Example

Request body: VerifyOtpRequest · Response: Void

curl -X POST "https://api.bridgemoni.com/user/ada%40example.com/verify/email" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
    "otp": "482913"
  }'

Responses

StatusWhen
200Email address verified successfully
400The OTP does not match, or has expired
404No user exists for the given email address, or no OTP has been generated for it

POST Initiate email address verification

POST /user/{emailAddress}/verify/email/initiate

Generates a 6-digit OTP valid for 10 minutes, stores it against the user's email address, and publishes an OtpGeneratedEvent so it can be dispatched via email. Does not return the OTP in the response.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
emailAddress

Example

Response: Void

curl -X POST "https://api.bridgemoni.com/user/ada%40example.com/verify/email/initiate" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Email address verification initiated successfully
404No user exists for the given email address

POST Confirm mobile number verification

POST /user/{msisdn}/verify/msisdn

Validates the supplied OTP against the most recently generated one for this user's mobile number. On success, marks the mobile number as verified. Fails after 5 incorrect attempts or once the OTP expires (10 minutes after generation).

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Path parameters

Name
msisdn

Example

Request body: VerifyOtpRequest · Response: Void

curl -X POST "https://api.bridgemoni.com/user/%2B2348012345678/verify/msisdn" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
    "otp": "482913"
  }'

Responses

StatusWhen
200Mobile number verified successfully
400The OTP does not match, or has expired
404No user exists for the given reference, or no OTP has been generated for it

POST Initiate mobile number verification

POST /user/{msisdn}/verify/msisdn/initiate

Generates a 6-digit OTP valid for 10 minutes, stores it against the user's mobile number, and publishes an OtpGeneratedEvent so it can be dispatched via SMS. Does not return the OTP in the response.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
msisdn

Example

Response: Void

curl -X POST "https://api.bridgemoni.com/user/%2B2348012345678/verify/msisdn/initiate" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Mobile number verification initiated successfully
404No user exists for the given reference

Generated from the OpenAPI document. Branch on the HTTP status: there is no machine-readable error code on the wire. Errors