Axios with Meridian

Configure a shared Axios instance with your Meridian base URL and license headers. All requests are automatically signed and routed through the Meridian gateway.

import axios from "axios";

const meridian = axios.create({
  baseURL: "https://api.meridian.example.com/v1",
  headers: {
    "X-License-Key": process.env.MERIDIAN_LICENSE_KEY,
    "X-Client-ID":  process.env.MERIDIAN_CLIENT_ID,
  },
});

const { data } = await meridian.get("/status");