> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-agent-native-development.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Error Codes

> Error Codes for CometChat REST API.

Error codes specific to the BYO Agent APIs.

## Agent Errors

| Error Code | Description |
| - | - |
| `ERR_AGENT_NOT_FOUND` | No BYO agent exists with the specified ID. |
| `ERR_AGENT_CREATION_FAILED` | Failed to create the BYO agent. |

## Tool Errors

| Error Code | Description |
| - | - |
| `ERR_TOOL_NOT_FOUND` | No tool exists with the specified ID. |

## Authentication Errors

| Error Code | Description |
| - | - |
| `AUTH_ERR_EMPTY_APIKEY` | The `apikey` header is missing from the request. |
| `AUTH_ERR_APIKEY_NOT_FOUND` | The provided API key is invalid. |
| `AUTH_ERR_NO_ACCESS` | The API key doesn't have the required scope. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.