With the Invoice Ninja API, you can build applications that can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
invoice_ninja: {
type: "app",
app: "invoice_ninja",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.invoice_ninja.$auth.domain}/api/v1/clients`,
headers: {
"X-Ninja-Token": `${this.invoice_ninja.$auth.api_token}`,
},
})
},
})
Invoice Ninja uses API keys for authentication. When you connect your Invoice Ninja account, Pipedream securely stores the keys so you can easily authenticate to Invoice Ninja APIs in both code and no-code steps.
For hosted accounts, find your API token here.
For hosted accounts, use https://app.invoiceninja.com for your domain.