HTTP headers

In addition to the Protobuf (for gRPC) or JSON (for REST) POST body of the request, the Custom Logic client also adds some HTTP headers to each request. These headers include the following:

  • x-request-id: A unique value set for each request. This is the same value as the session variable state.requestId.
  • x-call-session-id: The unique ID of the call session. This is the same value as the session variable state.callSessionId.
  • x-jwt: The signed JWT value for the request. Available only if generateJwtHeader is true. See JWT Header for more information.

For REST webhooks, you can also specify additional HTTP headers using the configuration httpHeaders. For each header, the name property must be specified. If the value remains the same for all webhook requests, you can set it in the value property. Instead, to set the value to the value of a session variable of the current request, set the property sessionVariableKey to the session variable key.