Right now the SDK expects the api_endpoint configuration to be in the form of https://us.i.posthog.com/i/v0/e/, which means a client can only use the single event endpoint (/i/v0/e) OR the batch endpoint (/batch), but not both at the same time.
Instead, users should only need to provide a URL like https://us.i.posthog.com and have the SDK use the correct path for the right action (also in future for querying other endpoints for ex. error tracking or feature flags).