Skip to content

SDK API Reference / RawAPIRequestOptions

Interface: RawAPIRequestOptions ​

Options for raw API requests

Properties ​

apiType? ​

optional apiType?: APIType

API type to use (determines base URL) Default: 'td'


body? ​

optional body?: string | object

Request body as string or object Will be JSON stringified if object


headers? ​

optional headers?: Record<string, string>

Custom HTTP headers These will be merged with authentication headers Custom headers take precedence over default headers


includeHeaders? ​

optional includeHeaders?: boolean

Include HTTP response headers in result Default: false


method? ​

optional method?: HTTPMethod

HTTP method (GET, POST, PUT, DELETE, PATCH) Default: GET