Skip to content
Last updated

HTTP Basic Authentication

All requests to Momnt API must be authenticated using HTTP Basic Authentication. You must include your email (username) and API password in every request.

Credentials are sent as username:password, Base64-encoded, in the Authorization header. Most HTTP clients handle this automatically.

Using curl

Pass credentials with the -u flag:

curl -s -X GET "https://app-stg.momnt.com/api/v1/sponsor/merchants/" \
  -H "Content-Type: application/json" \
  -u "mail@example.com:your-api-password"

Using the Authorization header directly

curl -s -X GET "https://app-stg.momnt.com/api/v1/sponsor/merchants/" \
  -H "Content-Type: application/json" \
  -H "Authorization: Basic $(echo -n 'mail@example.com:your-api-password' | base64)"

Environments

EnvironmentBase URL
Staginghttps://app-stg.momnt.com/
Productionhttps://app.momnt.com/

Use staging for development and testing. API passwords differ between environments.

Callback Authentication

Endpoints that fire callbacks (e.g., merchant onboarding, consumer applications) also support Basic Auth on the callback URL. You provide Momnt with a username and password, which Momnt stores securely and uses when POSTing to your callback URL.