Bloodbath API
  • Bloodbath API
  • Getting started
    • Acquire your API key
    • Schedule your first event
    • Being on the beta release
  • API
    • Working with REST
    • Working with GraphQL
  • Open source libraries
  • Ruby
  • Python
  • Node
  • FAQ
    • What protocols can be used?
    • What's the maximum payload size?
    • What's the correct format to build headers?
    • Wrong format when sending my body over the REST API
Powered by GitBook
On this page

Was this helpful?

  1. FAQ

What's the correct format to build headers?

The headers should be a valid JSON. You have to quote the keys and values and avoid spaces before the : character.

In some clients, you may have to escape the double quotes like so

"{\\"valid\\": \\"json-format\\"}"

Upon receiving a bad JSON format, Bloodbath API will refuse adding your event and output a clear error.

PreviousWhat's the maximum payload size?NextWrong format when sending my body over the REST API

Last updated 3 years ago

Was this helpful?