This guide will be removed on April 29, 2022. Please use our new, easier-to-use Toast technical documentation site. All updated content is on the new site.

Standard HTTP headers

In addition to the Toast-specific HTTP headers, webhook events include the standard HTTP headers shown in the table below. For more detailed information on these headers, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers:

Header Value

Accept-Encoding

gzip,deflate

Connection

close

Content-Length

The size of the message body, in bytes.

Content-Type

application/json

Host

The domain name and port of the server that is listening for webhook events. Generated from the partner URI that is specified when a webhook subscription is created.

User-Agent

Apache-HttpClient/4.5.10 (Java/1.8.0_212)