With the Modern Treasury API, you can build a variety of financial applications. Here are a few examples:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
modern_treasury: {
type: "app",
app: "modern_treasury",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.moderntreasury.com/api/api_keys/current`,
auth: {
username: `${this.modern_treasury.$auth.organization_id}`,
password: `${this.modern_treasury.$auth.api_key}`,
},
})
},
})
Modern Treasury uses API keys for authentication. When you connect your Modern Treasury account, Pipedream securely stores the keys so you can easily authenticate to Modern Treasury APIs in both code and no-code steps.
You can retrieve your production and sandbox API keys from the API keys page.