application/vnd.api+json media type in Accept and/or Content-Type headers.
Header requirements by method
| HTTP Method | Accept header | Content-Type header |
|---|---|---|
| GET, OPTIONS, HEAD | Required | Not required |
| POST, PATCH, DELETE | Recommended | Required |
Media type constraints
- The
Content-Typeheader valueapplication/vnd.api+jsonmust not contain any media type parameters. - The
Acceptheader valueapplication/vnd.api+jsonmust not contain media type parameters, except quality values. - The client must ignore any media type parameters received in the
Content-Typeheader of the response.
Valid request examples
GET requestJSON:API response format
When using theapplication/vnd.api+json media type, responses are in JSON:API format:
Plain API format
Requests with a non-JSON:API media type value (e.g.,application/json) are treated as plain API requests. The response data will be in plain JSON format rather than JSON:API.
Request