Request / Response Headers
Learn which headers are used in MTA API calls and responses.
Last updated
Learn which headers are used in MTA API calls and responses.
Last updated
Request headers contain information about the client request. Learn more about the header types used by the Mobile Text Alerts API.
The Authorization header is used for authentication purposes in HTTP requests. This is 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:
See 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 is needed for the server to understand how to process the request data.
Header structure: "Content-Type: application/json"
Example request:
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.
Response headers provide metadata about the response to the client. Most of the MTA API response headers provide information about your individual account's usage.