If you want to pass data to the API, such as the details of a notice you want to create we’re recommend you pass them as query parameters rather than as JSON in the body.

curl -X POST https://api.sorryapp.com/v1/pages \
  -d name="My Example Status Page" \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"

You can however pass the requests as a JSON packet in your body should you wish, you’ll need to include the Content-Type: application/json header too, so we know to decode your JSON.

curl -X POST https://api.sorryapp.com/v1/pages \
  -d "{ name: 'My Example Status Page' }" \
  -H "Content-Type: application/json"
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"

For the most part data-in matches data-out. If you see an attribute listed in a JSON response you can pass that exact same attribute name into a POST/PUT/PATCH request.