Approve Sender ID API

Approve or reject registered Sender IDs.

# 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
- **Method**: POST
- **URL**: https://api.moolre.com/open/sms/status

## Headers
| Header | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| X-API-VASKEY | string | Yes | Your SMS API VAS key. |

## Request Body
| Parameter | 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). |

## Response (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
}
```

## Response (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
}
```

Back to the Moolre AI documentation index