> For the complete documentation index, see [llms.txt](https://foundations-documentation.reapit.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://foundations-documentation.reapit.cloud/troubleshooting/authentication-issues.md).

# Authentication Issues

## **Client Credentials Flow -** Authentication Issues

### **Error: "invalid\_client"**

* Check you have provided the correct ‘Client ID’ in your request payload using the header ‘client\_id’. Your Client ID is available on your app listing in the [Developer Portal](https://developers.reapit.cloud/apps)
* It’s possible that the ‘Authorization’ base64 secret you have provided maybe invalid.
* Ensure you have provided the encoded version as the value for the Authorization header set to ‘Basic’ (Basic XBASE64SECRETX)

For more information on Authentication (using the Client Credentials Flow), please click [here](https://foundations-documentation.reapit.cloud/api/api-documentation#client-credentials-flow)

Screenshot showing how to find your ‘Client ID’ and ‘Secret’ on your App listing:

<figure><img src="/files/I4o2Zv1Ke3mQZUHXq6BM" alt=""><figcaption></figcaption></figure>

### **Error:** "invalid\_request"

* Check you have provided the following values and headings:\
  \
  grant\_type=client\_credentials\
  client\_id=XCLIENTIDX\
  Authorization: Basic XBASE64SECRETX\
  content-type: application/x-www-form-urlencoded

### **Example POST Request (**&#x6F;nly applies to client\_credentials flow)

You can use the example `POST` request to obtain an access token, simply replace XCLIENTIDX with your client ID and XBASE64SECRETX with your encoded Client ID and Secret:

```
curl --request POST \
  --url 'https://connect.reapit.cloud/token?grant_type=client_credentials&client_id=XCLIENTIDX' \
  --header 'Authorization: Basic XBASE64SECRETX' \
  --header 'content-type: application/x-www-form-urlencoded' \

```

&#x20;


---

# 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:

```
GET https://foundations-documentation.reapit.cloud/troubleshooting/authentication-issues.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
