Authorization without login

Hello, I’m new in Mautic and I’m trying to make a connection with the API through my application.

The problem is how to do this connection without show the login page to authorize the user?



I would like to do everything with AJAX, transparent to the user.



Searching inside Mautic documentation I found this:

Code:
POST /oauth/v1/request_token Authorization: OAuth oauth_callback="https%3A%2F%2Fyour-callback-uri.com", oauth_consumer_key="CONSUMER_KEY", oauth_nonce="UNIQUE_STRING", oauth_signature="GENERATED_REQUEST_SIGNATURE", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1318467427", oauth_version="1.0"

If I tried to send a get request with this data, I got all the time error.
Could someone explain me a little bit what am I doing wrong?

Thanks

Hello, I’m new in Mautic and I’m trying to make a connection with the API through my application.
The problem is how to do this connection without show the login page to authorize the user?

I would like to do everything with AJAX, transparent to the user.

Searching inside Mautic documentation I found this:

POST /oauth/v1/request_token Authorization: OAuth oauth_callback="https%3A%2F%2Fyour-callback-uri.com", oauth_consumer_key="CONSUMER_KEY", oauth_nonce="UNIQUE_STRING", oauth_signature="GENERATED_REQUEST_SIGNATURE", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1318467427", oauth_version="1.0"

If I tried to send a get request with this data, I got all the time error.
Could someone explain me a little bit what am I doing wrong?

Thanks