Requests
API request structures
Headers
All requests to any API endpoint should have these headers:
Content-Type: application/json
Accept: application/json
Authorization: Bearer {ACCESS_TOKEN}Content-Type
So the API knows you are sending a JSON body.
Accept
So the API knows you accept JSON responses.
Authorization
So the API knows who is making the request.
Body
All requests to any API endpoint should be in JSON. See example below:
{
"key": "value",
"object": {
"key1": "value1",
"key2": "value2"
},
"array": [
"value1",
"value2"
],
"bool": true,
"int": 123
}Last updated
Was this helpful?