# Devin — Pipedream Connect

> The AI Software Engineer

- API slug: `devin` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Artificial Intelligence (AI)
- Website: https://devin.ai
- This page (HTML): https://pipedream.com/apps/devin
- Tools: 13 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: devin`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "devin",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Knowledge:
const result = await mcp.callTool({
  name: "devin-create-knowledge",
  arguments: {
    body: "Body",
    name: "Name",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Devin endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.devin.ai/v1/sessions

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZGV2aW4uYWkvdjEvc2Vzc2lvbnM?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "devin-create-knowledge",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    devin: { authProvisionId: "apn_xxxxxxx" },
    body: "Body",
    name: "Name",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (13)

### `devin-create-knowledge` — Create Knowledge (Write)

Create a new knowledge object to share information with Devin. See the documentation

Full schema: https://pipedream.com/apps/devin/actions/create-knowledge.md

### `devin-create-session` — Create Session (Write)

Create a new session with Devin. See the documentation

Full schema: https://pipedream.com/apps/devin/actions/create-session.md

### `devin-delete-knowledge` — Delete Knowledge (Write)

Delete an existing knowledge object. See the documentation

Full schema: https://pipedream.com/apps/devin/actions/delete-knowledge.md

### `devin-get-session` — Get Session (Read-only)

Retrieve details about an existing session. See the documentation

Full schema: https://pipedream.com/apps/devin/actions/get-session.md

### `devin-list-folder-id-options` — List Folder ID Options (Read-only)

Retrieves available options for the Folder ID field.

Full schema: https://pipedream.com/apps/devin/actions/list-folder-id-options.md

### `devin-list-knowledge` — List Knowledge (Read-only)

Retrieve a list of all knowledge objects. See the documentation

Full schema: https://pipedream.com/apps/devin/actions/list-knowledge.md

### `devin-list-secret-ids-options` — List Secret IDs Options (Read-only)

Retrieves available options for the Secret IDs field.

Full schema: https://pipedream.com/apps/devin/actions/list-secret-ids-options.md

### `devin-list-session-id-options` — List Session ID Options (Read-only)

Retrieves available options for the Session ID field.

Full schema: https://pipedream.com/apps/devin/actions/list-session-id-options.md

### `devin-list-sessions` — List Sessions (Read-only)

Retrieve a list of all sessions. See the documentation

Full schema: https://pipedream.com/apps/devin/actions/list-sessions.md

### `devin-send-message-to-session` — Send Message to Session (Write)

Send a message to an existing Devin session. See the documentation

Full schema: https://pipedream.com/apps/devin/actions/send-message-to-session.md

### `devin-update-knowledge` — Update Knowledge (Write)

Update an existing knowledge object. See the documentation

Full schema: https://pipedream.com/apps/devin/actions/update-knowledge.md

### `devin-update-session-tags` — Update Session Tags (Write)

Update the tags for an existing session. See the documentation

Full schema: https://pipedream.com/apps/devin/actions/update-session-tags.md

### `devin-upload-file` — Upload File (Write)

Upload files for Devin to use in sessions. See the documentation

Full schema: https://pipedream.com/apps/devin/actions/upload-file.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
