with Docnify and Mistral AI?
Emit new event when a document is signed by all recipients.
Emit new event when a new batch job is completed. See the Documentation
Emit new event when a new batch job fails. See the Documentation
Add a recipient to an existing Docnify document. [See the documentation](See the documentation)
Create a new batch job, it will be queued for processing. See the Documentation
Create a new document in Docnify from a pre-existing template. See the documentation
Download a batch job results file to the /tmp directory. See the Documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
docnify: {
type: "app",
app: "docnify",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.docnify.$auth.url}/api/v1/documents`,
headers: {
"Authorization": `${this.docnify.$auth.api_token}`,
},
params: {
page: `1`,
perPage: `1`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mistral_ai: {
type: "app",
app: "mistral_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mistral.ai/v1/models`,
headers: {
Authorization: `Bearer ${this.mistral_ai.$auth.api_key}`,
"content-type": `application/json`,
},
})
},
})