Content
All MolnX services authenticate using a standard OAuth 2.0 flow ...
https://api.iam.molnx.com/oauth2/token
Only the Client Credentials grant type is supported at the moment.
You can find the client_id
and client_secret
values for your application in the application details
in the MolnX portal.
MolnX does not currently support refresh tokens. You should instead request a new token whenever the current one is about to expire.
Scope | Description |
---|---|
dispatch.all.read | Read access to all Dispatch APIs |
dispatch.all.readwrite | Read & Write access to all Dispatch APIs |
dispatch.messages.read | Read access to the Messages API endpoints |
dispatch.messages.readwrite | Read & Write access to the Messages API endpoints |
dispatch.targets.read | Read access to the Targets API endpoints |
dispatch.targets.readwrite | Read & Write access to the Targets API endpoints |
dispatch.domains.read | Read access to the Domains API endpoints |
dispatch.domains.readwrite | Read & Write access to the Domains API endpoints |
First we will need to acquire an access token. We do this by making a form-encoded request to the token URL.
The following example shows us creating a token with the dispatch.messages.read
and dispatch.targets.read
scopes.
The access token endpoint will return a response like the following:
Now that we have an access token ready we can finally start to use it to start scheduling messages: