# 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;
