Optional
api?: stringAPI to use, e.g. publishing/v2.0
. Will be prefixed to the path
Optional
debug?: booleanOptional
headers?: () => Record<string, string>Request headers for all requests
Optional
onError?: (error: ApiRequestError) => void | Promise<void>Callback for request errors
Optional
origin?: stringHost origin to make request against, including protocol and port
Request options