# Message API

&#x20;Netcore provides developers with the ability to use APIs to carry out a wide range of actions and activities.

You can use the APIs to

* Send Template message
* Get Media
* Delete Media
* Send text message
* Send media message
* Send location messages

### Types of API

| Endpoints        | Request type | What it does                                            |
| ---------------- | ------------ | ------------------------------------------------------- |
| /message/        | POST         | Send text, media, template message to a WhatsApp number |
| /consent/manage  | POST         | Manages opt-in and opt-outs for a phone number          |
| /consent/        | POST         | Get consent details for a phone number                  |
| /media/upload/   | POST         | Uploads a media file                                    |
| /media/{mediaId} | DELETE       | Deletes a media file                                    |
| /media/{mediaId} | GET          | Return a binary media file                              |

### **End Point:**&#x200B; ​

&#x20;<https://waapi.pepipost.com/api/v2/>

### Header:

| Key           | Value                     |
| ------------- | ------------------------- |
| Authorization | Bearer ​ AUTHORIZATIONKEY |
| Content-Type  | application/json          |

* You will get the AUTHORIZATIONKEY once your WhatsApp account is setup.&#x20;


---

# 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/sending-message/send-message-api.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.
