Unsubscribes
Create Unsubscribe POST /unsubscribes
Get Unsubscribe for Number GET /unsubscribes/{number}
List Unsubscribes GET /unsubscribes
Bulk Unsubscribes POST /unsubscribes/bulk
Authorizations
Body
numberstringRequired
Responses
200
Success
application/json
400
BadRequestError
application/json
401
UnauthorizedError
application/json
403
ForbiddenError
application/json
500
InternalServerError
application/json
post
POST /v3/unsubscribes HTTP/1.1
Host: api.mobile-text-alerts.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"number": "text"
}
{
"success": true,
"error": "text",
"message": "text",
"data": null
}
Authorizations
Path parameters
numberstringRequired
Responses
200
Success
application/json
Responseall of
400
BadRequestError
application/json
401
UnauthorizedError
application/json
403
ForbiddenError
application/json
500
InternalServerError
application/json
get
GET /v3/unsubscribes/{number} HTTP/1.1
Host: api.mobile-text-alerts.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"error": "text",
"message": "text",
"data": {
"unsubscribed": true
}
}
Authorizations
Query parameters
pagenumberOptional
pageSizenumberOptional
sortBystringOptional
sortDirectionstring · enumOptionalPossible values:
querystringOptional
Responses
200
Success
application/json
Responseall of
400
BadRequestError
application/json
401
UnauthorizedError
application/json
403
ForbiddenError
application/json
500
InternalServerError
application/json
get
GET /v3/unsubscribes HTTP/1.1
Host: api.mobile-text-alerts.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"error": "text",
"message": "text",
"data": {
"rows": [
{
"id": 1,
"name": "text",
"number": "text",
"email": "text",
"date": "2025-10-13T21:09:27.068Z"
}
],
"page": 1,
"pageSize": 1,
"total": 1
}
}
This endpoint allows users to unsubscribe subscribers in bulk. The endpoint would accept array of objects with key "number", which is the phone number of the subscriber to unsubscribe and of type string.
undefined
Authorizations
Bodyobject[]
numberstringRequired
Responses
200
Success
application/json
Responseall of
400
BadRequestError
application/json
401
UnauthorizedError
application/json
403
ForbiddenError
application/json
500
InternalServerError
application/json
post
POST /v3/unsubscribes/bulk HTTP/1.1
Host: api.mobile-text-alerts.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 19
[
{
"number": "text"
}
]
{
"success": true,
"error": "text",
"message": "text",
"data": {
"totalRecordCount": 1,
"unsubscribedRecordCount": 1,
"errorRecordCount": 1,
"unsubscribedRecords": [
{
"id": 1,
"firstName": "text",
"lastName": "text",
"email": "text",
"number": 1,
"e164Number": "text",
"date": "2025-10-13T21:09:27.068Z",
"countryId": 1,
"groups": [
{
"id": 1,
"name": "text",
"addedToGroupAt": "2025-10-13T21:09:27.068Z"
}
],
"subscriberFieldData": [
{
"id": 1,
"subscriberFieldId": 1,
"data": "text"
}
],
"signupMethod": 1,
"longNumber": 1,
"carrierId": 1
}
],
"errorRecords": [
{
"number": "text",
"error": "text"
}
]
}
}
Last updated
Was this helpful?