Regarding Mautic api issue

Your software
My Mautic version is: 4.4.9
My PHP version is: 8.0.29
My Database type and version is: 10.6.12-MariaDB-0ubuntu0.22.04.1
I am doing some integration using Mautic api to 3rd party crm and For this I need to use the Mautic Rest api and I have successfully authenticated the api But I am unable to get or post contacts using api. I always keep getting 500 internal server error in api response while trying to execute api request in postman. Could anyone please help us regarding this?

2 Likes

Plz clear the cache and check again.

Hi There.
It’s done. Still got the same error.

Hi, what is your call exactly?

Hi @joeyk
I am simply trying to retrieve the contacts from Mautic using the GET Api request. But it doesn’t seems to work.

Hi,
What is your call exactly?
Also: when you make your call, do you have @ or : in your password?
Are you using Basic Auth?

Hi,
Yes I am using Basic Auth
Username:Password (base64 encode)

Sorry, what are you encoding?

Hi,
username and password to login into mautic account like e,g, username=“test”, Password=“test@123”
test:test@123
dGVzdDp0ZXN0QDEyMw==
Just like that I am doing For authentication I use authorization header in postman request Basic dGVzdDp0ZXN0QDEyMw==

The @ in your password is messing up things. Try to change the password without spec chars for testing.
And don’t encode.