> For the complete documentation index, see [llms.txt](https://docs.mdintegrations.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mdintegrations.com/help-center/account-and-credentials/authentication-and-credential-issues.md).

# Authentication & Credential Issues

Use these answers to resolve common authentication and credential issues.

<details>

<summary>I am getting <code>Client credentials must be provided...</code></summary>

The credential format is missing or malformed.

Provide your Client ID and Secret in either the JSON request body or a Basic Authorization header. Choose one method and use it consistently.

</details>

<details>

<summary>I am getting <code>Client authentication failed.</code></summary>

The Client ID or Secret is not recognized. Verify both values in the **API** tab of the **Tech** page.

The secret appears only once, when the credential is created.

</details>

<details>

<summary>My token stopped working after about 30 minutes</summary>

This is expected. Tokens are short-lived and do not support a refresh grant.

Request a new token after the current token expires.

</details>

<details>

<summary>I am authenticated, but reach Sandbox instead of Live</summary>

Each credential is permanently assigned to its environment at creation. You cannot switch its environment later.

Create a credential in the environment you need.

</details>

<details>

<summary>I closed the window and cannot find my API secret</summary>

This is expected. The secret appears only once, when the credential is created.

Create a new credential to generate a new secret.

</details>

<details>

<summary>My integration stopped working after I removed a credential</summary>

Removing a credential takes effect immediately.

Deploy the replacement credential to your integration before removing the existing credential.

</details>

<details>

<summary>I cannot save a pharmacy connection</summary>

Verify that every required secret field for the pharmacy has a value.

Saving remains blocked until all required fields are complete.

</details>

<details>

<summary>I need to change my Stripe secret key</summary>

Saved Stripe secret keys are masked and cannot be edited directly.

Remove the Stripe account, then add it again with the new key.

</details>

<details>

<summary>Can I pause a credential instead of deleting it?</summary>

No. Credentials cannot be disabled or regenerated.

Create a replacement credential before deleting the current one.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mdintegrations.com/help-center/account-and-credentials/authentication-and-credential-issues.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
