You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Banned Users](/rest-api/banned-users)| Ban and unban users from groups |
63
+
48
64
## Authentication
49
65
50
66
Authentication is a crucial aspect of utilizing CometChat's REST API securely. All API requests must be accompanied by an API key to authenticate the incoming requests. CometChat employs industry-standard authentication mechanisms to ensure the security and integrity of your data.
51
67
52
68
<Note>
53
-
The HTTP header name for authentication is **`apikey`** (all lowercase). In JSON response bodies, the API key property is returned as **`apiKey`** (camelCase). This distinction is intentional — HTTP headers are case-insensitive by specification, while JSON properties are case-sensitive.
69
+
The HTTP header name for authentication is **`apikey`** (all lowercase). In
70
+
JSON response bodies, the API key property is returned as **`apiKey`**
71
+
(camelCase). This distinction is intentional — HTTP headers are
72
+
case-insensitive by specification, while JSON properties are case-sensitive.
Copy file name to clipboardExpand all lines: rest-api/settings.mdx
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,3 +29,13 @@ The **Settings** API lets you customize how conversations behave in your CometCh
29
29
-**Conversations** — These settings directly control how [Conversations](/rest-api/conversations) display the last message and calculate unread counts.
30
30
-**Messages** — Settings determine which [Message](/rest-api/messages) types affect conversation previews.
31
31
-**Management APIs** — Use the [Map Settings API](/rest-api/management-apis/settings/maps-settings) to toggle these features.
32
+
33
+
## Error Handling
34
+
35
+
| Error Code | Description |
36
+
| --- | --- |
37
+
|`AUTH_ERR_EMPTY_APIKEY`| The `apikey` header is missing from the request |
38
+
|`AUTH_ERR_APIKEY_NOT_FOUND`| The provided API key is invalid |
39
+
|`AUTH_ERR_NO_ACCESS`| The API key doesn't have the required scope |
40
+
41
+
For the complete error reference, see [Error Guide](/articles/error-guide).
0 commit comments