Data Format
API People APIs use application/json as the default and preferred media type for all request and response payloads.
See the code snippet below for an example.
POST /v1/customers
Host: dev.api.api-peoplebankus.com
Content-Type: application/json
Accept: application/json
{
"firstName": "Jane",
"lastName": "Doe",
"email": "jane.doe@example.com"
}
Requirements
Ensure the following when using the API People APIs:
- When sending data to the API (e.g., in a POST or PUT request), include:
Content-Type: application/json
- When receiving data from the API, the server responds with:
Content-Type: application/json - If your client can only accept JSON (recommended), also include:
Accept: application/json
Exceptions
Most API People APIs use application/json as the standard format, but some endpoints, such as file uploads or specific webhooks, may use different formats. Any such exceptions will be clearly mentioned in the API reference.