Request / Response Headers
Learn which headers are used in Mobile Text Alerts API calls and responses.
Last updated
Was this helpful?
Learn which headers are used in Mobile Text Alerts API calls and responses.
Request headers contain information about the client request. These are the header types used by the Mobile Text Alerts API.
The Authorization header is used for authentication in HTTP requests. It contains a token or credentials used to prove the client's identity. The Mobile Text Alerts API uses bearer token authentication with an API key.
Header structure: "Authorization: Bearer {myAPIKey}"
Example request:
curl -L \
-H 'Authorization: Bearer 89fa747a-e01b-5940-99c2-4e96fa996258' \
'https://api.mobile-text-alerts.com/v3/auth/verify-api-key'See Get an API Key to learn how to generate and send this key in a request.
Content-Type is an HTTP header that indicates the data type of the request's message body. This allows the server to understand how to process the request data.
All POST and PATCH requests to the Mobile Text Alerts API must include Content-Type: application/json
Header structure: "Content-Type: application/json"
Example request:
Response headers provide metadata about the response to the client. Most of the Mobile Text Alerts API response headers provide information about your account's rate limit usage.
RateLimit-Limit
integer
The maximum number of requests that the consumer is permitted to make per window.
RateLimit-Remaining
integer
The number of requests remaining in the current rate limit window.
RateLimit-Reset
integer
The remaining window before the rate limit resets (in milliseconds).
Retry-After
integer
The number of seconds to wait before retrying the request.
X-RateLimit-Limit
integer
The maximum number of requests that the consumer is permitted to make per window.
X-RateLimit-Remaining
integer
The number of requests remaining in the current rate limit window.
X-RateLimit-Reset
integer
The remaining window before the rate limit resets (in milliseconds).
X-Request-ID
string
A unique identifier for the request.
Last updated
Was this helpful?
Was this helpful?
curl --location 'https://api.mobile-text-alerts.com/v3/groups/12345/subscribers/bulk-create' \
--header 'Content-Type: application/json' \
--data '{
"subscriberIds": [
123
]
}'