# API credentials (key + secret) had changed? Is it possible?

**URL:** https://forum.mautic.org/t/api-credentials-key-secret-had-changed-is-it-possible/33898
**Category:** Product Support
**Created:** [October 22, 2024, 9:52am UTC](https://forum.mautic.org/t/api-credentials-key-secret-had-changed-is-it-possible/33898 "2024-10-22T09:52:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![markusvjh](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@markusvjh](https://forum.mautic.org/u/markusvjh)
#### Post date: [October 22, 2024, 9:52am UTC](https://forum.mautic.org/t/api-credentials-key-secret-had-changed-is-it-possible/33898/1 "2024-10-22T09:52:50Z")

</div>

**Your software**  
My Mautic version is: 5.1.1  
My PHP version is: 8.1.29  
My Database type and version is: mariadb 10.6.18

**Your problem**  
My problem is:

We had setup API credentials on our Mautic site a while ago, and been successfully using them in our Drupal site with the [Mautic Paragraphs](https://www.drupal.org/project/mautic_paragraph) module.

But yesterday, the site had errors, error 400, saying that the credentials are invalid. One of us then went to Mautic, copied credentials, and added them to Drupal. The ids did not match, so they had changed in either Drupal or Mautic.

So I want to ask from the community if someone has ever experienced the created API credentials (key + secret) in Mautic changing? Is it possible? Or must it be something else

These errors are showing in the log: -  
Drupal log:

Mautic\Exception\UnexpectedResponseFormatException: The response has unexpected status code (400). Response: {“errors”:[{“message”:“The client credentials are invalid”,“code”:400,“type”:“invalid\_client”}]} in function Mautic\Response-\>validate() (line 172 in file /app/vendor/mautic/api-library/lib/Response.php).

Steps I have tried to fix the problem:
