Common Request Headers

Here are the request headers that are common across the APIs.

Header Description Example
Accept List the media types that you prefer for the response body. Note that unless an operation specifies otherwise, the media type for a response body is application/json. application/json
Authorization How to validate the user. See Authorization.
  • Authorization: Basic abcvZTphYmMxMjM=

  • Authorization: Bearer eyJhbGciOiJ...9yoQ

Content-Length The size of the request body in bytes. 540
Content-Type The media type of the request body. This header is required for POST and PUT requests.

Note that unless an operation specifies otherwise, the media type for a request body is application/json.

application/json
Oracle-Mobile-Backend-ID The unique identifier that is assigned to the mobile backend. You can find this ID in the Settings tab for the mobile backend. If you use Basic authentication, then you must pass this header in every call that you make to the Oracle Mobile Cloud Service REST API. All mobile apps that are associated with a mobile backend use the same mobile backend ID. This ID is different for each environment (such as an environment used for development and a runtime environment). bc52e296-9d7e-4cd3-8137-55e0e5b14457