---
title: "API Troubleshooting"
id: "api-troubleshooting"
project: "ClickHelp User Manual"
url: "https://docs.clickhelp.com/articles/clickhelp-user-manual/api-troubleshooting"
updated: 2026-11-16T06:43:38Z
---

# API Troubleshooting

Documentation index for AI tools: [/llms.txt](/llms.txt)
 
This topic overviews typical issues you might encounter when working with ClickHelp API and suggests basic steps to determine, diagnose and fix them.

## '401: Unauthorized' Response Code 

СlickHelp uses **basic authentication**, so make sure to use the appropriate option when setting up the environment in your API tool of choice.

| Here's what the **Authorization**tab in Postman looks like:<br> ![Authorization tab in Postman - Basic Auth](/resources/Storage/clickhelp-user-manual/Screenshots/api-troubleshooting/postman-authentication-tab.png) |
| --- |

Another thing to pay attention to is the credentials. Make sure to use your ClickHelp login as the login value and your [API key](/articles/clickhelp-user-manual/get-api-key) as the password value, not your ClickHelp password.

## '500: Internal Server Error' Response Code 

This error usually occurs when something is wrong with the syntax of the API call. In case you receive a 500 error code:

* Check the case of the values. All values, including booleans, are case-sensitive, so make sure you are using **true**, not **True**, etc.
* Make sure you replaced all placeholder values like your portal address, file paths, server certificate file name, etc., if you are utilizing one of the example scripts, e.g., [Bulk Creation of Power Readers](/articles/clickhelp-user-manual/bulk-creation-of-power-readers).
* Make sure the JSON is well-formed. 

    Example of a well-formed JSON
 
    
```json
{
    "userName": "John",
    "userInfo": {
        "email": "johndoe@company.co",
        "firstName": "John",
        "middleName": "M",
        "lastName": "Doe"
    },
    "userRole": "Role1",
    "isDontSendEmail": false
}
```


## Miscellaneous

Below are some other typical reasons why the API call may not work as expected:

* Use of an incorrect HTTP method in the API call, e.g., if you specify **GET** instead of**POST**when creating a user.
* Special characters might not be escaped correctly when using cURL.
* You are using a TLS version lower than 1.2.

| If you have tried all the above, but nothing helps, or the error you are facing isn't mentioned in this topic, don't hesitate to contact our [Support team](https://clickhelp.com/support/). Remember to provide them with the request and the response body of the API call or a screenshot of the error. |
| --- |