TypeScript Prerequisites
The IQM documentation's TypeScript samples use Axios to make API calls. Each endpoint's TypeScript example must be paired with the code below in order to function as intended.
prerequisites.ts
import axios, { AxiosError, AxiosResponse } from "axios";
const instance = axios.create({
headers: {
authorization: `Bearer token`,
"X-IAA-OW-ID": `Organization Workspace ID`,
},
});
export function getInstance() {
return instance;
}