The base URL for the API.
The additional headers to be used in requests.
The token manager instance.
The organization ID.
Makes an HTTP request.
const response = await client.request('/endpoint', { method: 'GET', headers: {} });
The API endpoint.
Optional
options: HttpRequestInit = {}The request options.
Makes a POST request.
const response = await client.post('/endpoint', { key: 'value' });
The API endpoint.
The request body.
Optional
headers: Record<string, string> = {}The request headers.
Makes a PUT request.
const response = await client.put('/endpoint', { key: 'value' });
The API endpoint.
The request body.
Makes a PATCH request.
const response = await client.patch('/endpoint', { key: 'value' });
The API endpoint.
The request body.
Makes a GET request.
const response = await client.get('/endpoint');
The API endpoint.
Makes a DELETE request.
const response = await client.delete('/endpoint');
The API endpoint.
Creates an instance of BaseClient.
Example