# Error Codes

## **Consent API (ERROR Codes)**

| Error Code | Description                                          |
| ---------- | ---------------------------------------------------- |
| 8006       | Required parameter is missing                        |
| 8006       | type is invalid. type must be optin/optout.          |
| 8006       | recipients is required.                              |
| 8006       | source cannot be empty.                              |
| 8006       | source value cannot be greater than 25 characters.   |
| 8006       | Invalid recipient. Only numeric values allowed.      |
| 8006       | recipient value cannot be less than 10 digits.       |
| 8006       | recipient value cannot be greater than 15 digits     |
| 8005       | Optin already found for provided mobilenumber        |
| 8005       | Error occurred while updating optin for mobilenumber |

## **Message API (ERROR Code)**

| ERROR Code | Description                                                                                                                                     |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| 8001       | Required parameter is missing                                                                                                                   |
| 8002       | Phone number is not opted in                                                                                                                    |
| 8003       | WhatsApp contact does not exist                                                                                                                 |
| 8004       | Client details not found                                                                                                                        |
| 8005       | Technical error occurred                                                                                                                        |
| 8007       | Failed to send message because you are outside the support window for freeform messages to this user. Please use a valid template or reconsider |
| 8008       | Invalid Media id or bad media                                                                                                                   |
| 8006       | message\_type can only be text/media/template/location.                                                                                         |
| 8006       | message\_type cannot be null or blank                                                                                                           |
| 8006       | source cannot be null or blank                                                                                                                  |
| 8006       | recipient\_type cannot be null or blank                                                                                                         |
| 8006       | recipient\_type can only be individual                                                                                                          |
| 8006       | recipient\_whatsapp cannot be null or blank                                                                                                     |
| 8006       | recipient\_whatsapp cannot be less than 10 digits                                                                                               |
| 8006       | recipient\_whatsapp cannot be greater than 15 digits                                                                                            |
| 8006       | Invalid value in recipient\_whatsapp parameter. Only numbers are allowed                                                                        |


---

# Agent Instructions: 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://wadocs.pepipost.com/error-codes.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.
