# Approve Sender ID API

Approve or reject registered Sender IDs. Note: This API requires X-API-VASKEY in the header for authentication and specific administrative permissions.

## Endpoint
`POST https://api.moolre.com/open/sms/status`

## Request Parameters
| Name | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| type | integer | Yes | ID of the approve sender ID function. Must be 6. |
| senderids | array | Yes | An array of sender ID objects containing senderid and approve (0 = Pending, 1 = Approved, 2 = Rejected). |

## Responses
### 200 - Success
Sender IDs updated successfully.

```json
{
  "status": 1,
  "code": "ASMQ07",
  "message": "Sender IDs updated successfully.",
  "data": [
    {
      "id": "14",
      "senderid": "Dummy",
      "approval": "Approved",
      "whitelisted": false
    },
    {
      "id": "13",
      "senderid": "SmartSMS",
      "approval": "Rejected",
      "whitelisted": false
    }
  ],
  "go": null
}
```

### 400 - Permission Denied
You do not have permission to update Sender IDs.

```json
{
  "status": 0,
  "code": "ASMQ09",
  "message": "You do not have permission to update Sender IDs. Contact Customer Support.",
  "data": "senderid",
  "go": null
}
```

