Mautic API query with curl

Hi, Should I use the mautic username /password for the following request?

curl -X GET https://your-mautic.com/api/contacts/[[contact-id]] -u [[username]]:[[password]

It’s the example query in the KB.

Yes. And make sure you turn on API and clear cache.

2 Likes

Thanks, It works after cleaning cache.