Set Endpoint SMS Quota
A 3-step recipe with emnify. We can help you get access.
Recipe · 3 steps
Set Endpoint SMS Quota
with emnify
Read the existing SMS quota and assign a new one to an endpoint.
- Exchange the application token for an auth_token used as a Bearer token.
- Read the endpoint's current SMS quota before assigning a new one.
- Set a new SMS quota with ACTIVE status, the supplied volume, expiry, and threshold percentage, and Block on exhaustion (action id 1).
What you'll need to have ready
- applicationToken: emnify application token used to obtain an auth_token.
- endpointId: The ID of the endpoint to set the SMS quota on.
- volume: Number of SMS messages allowed on the quota.
- expiryDate: Timestamp when the quota expires (ISO 8601 date-time).
- thresholdPercentage: Remaining percentage at which a threshold-reached event is generated.
For your developer
Arazzo workflow emnify:set-endpoint-sms-quota, 3 operations: authenticate → endpoint-quota-sms-by-endpoint-id-get → endpoint-quota-sms-by-endpoint-id-post. Specs on APIs.io.