GET
/
v1
/
activity
/
businesses
/
{businessId}
curl --request GET \
  --url https://sandbox.layerfi.com/v1/activity/businesses/{businessId} \
  --header 'Authorization: Bearer <token>'
[
  {
    "businessId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "legal_name": "ACME Inc.",
    "sms_sent": 400,
    "sms_received": 400,
    "sms_sent_last_30": 40,
    "sms_received_last_30": 40,
    "categorized_last_month": 60,
    "uncategorized_last_month": 5,
    "categorized_by_api_last_month": 40,
    "categorized_by_sms_last_month": 20,
    "categorized_pct_last_month": 0.92,
    "categorized_this_month": 30,
    "uncategorized_this_month": 10,
    "categorized_by_api_this_month": 10,
    "categorized_by_sms_this_month": 20,
    "categorized_pct_this_month": 0.75,
    "days_since_last_activity": 1,
    "current_sms_queue_length": 5
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to fetch

Response

200
application/json

The response is of type object[].