Open Data Platform for Headless Content

Go to site

Directus API Integrations

Build and run workflows using the Directus API. Use 1000s of open source triggers and actions across 800+ apps. Or write custom code to integrate any app or API in seconds.

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    directus: {
      type: "app",
      app: "directus",
  async run({steps, $}) {
    return await axios($, {
      url: `${this.directus.$auth.api_host}/users/me`,
      headers: {
        Authorization: `Bearer ${this.directus.$auth.access_token}`,


Directus uses API keys for authentication. When you connect your Directus account, Pipedream securely stores the keys so you can easily authenticate to Directus APIs in both code and no-code steps.

For api_host, use your API host url such as

For access_token, each user can have one static token that will never expire. This is useful for server-to-server communication. This token is saved to the database (directus_users.token) in plain-text and can be retrieved through the /auth/login endpoint. See docs.