Audience

Get organization audience list

GET https://a.loopmessage.com/api/v1/audience/list/?page=1&per_page=20&sort_by=desc

Headers

Name
Type
Description

Authorization*

String

API Key. Required*.

Content-Type*

String

application/json

Query parameters

Name
Type
Description

page

Integer

The current page of the paginated request. Default: 1.

per_page

Integer

The number of items to be returned for a specific page. Default: 20. Max value: 1000.

sort_by

String

Possible values: asc or desc. Default: desc.

from_date

String

YYYY-MM-DD format date. For example: 2010-12-31.

to_date

String

YYYY-MM-DD format date. For example: 2010-12-31.

search

String

Phone number or email

Response

{
  "page": 1,
  "num_pages": 5,
  "per_page": 20,
  "count": 100,
  "items": [
    "id": "string",
    "value": "string"  # Phone number or email
  ]
}

Check audience status

GET https://a.loopmessage.com/api/v1/audience/check-status/{contact}/

Headers

Name
Type
Description

Authorization*

String

API Key. Required*.

Content-Type*

String

application/json

Path parameters

Name
Type
Description

contact

String

Required. Email address or phone number of the contact to delete. Phone number must be in the international format (include country code and start with +, for example: +13231112233)

Response

{
  "status": "string"  # Values: active, unsubscribed, unknown
}

Unsubscribe contact


DELETE https://a.loopmessage.com/api/v1/audience/delete/{contact}/

Headers

Name
Type
Description

Authorization*

String

API Key. Required*.

Content-Type*

String

application/json

Path parameters

Name
Type
Description

contact

String

Required. Email address or phone number of the contact to delete. Phone number must be in the international format (include country code and start with +, for example: +13231112233)

Last updated