(mt):API HTTP headers
- This page was last modified on February 17, 2011, at 14:16.
From (mt) Community Wiki
The (mt) Media Temple Public API provides several HTTP headers that can be used across resource requests to perform common operations.
HTTP headers
The following is a list of HTTP headers that are globally available across resource requests:
| Param | Description | Default | Example |
|---|---|---|---|
| Authorization | Used to specify the API key used to authenticate requests. See API Query parameters also. | "Authorization: MediaTemple FbDgBldQMoKLwIXsBwq..." | |
| Accept | Used to specify the desired content type of the response data | HTTP/REST client dependent | "Accept: application/json" |
| Content-type | Used to specify the content type of the request data. See API Content Types also. | HTTP/REST client dependent | "Content-type: application/json" |