> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

Devin

Devin iconDevin icon
Loading version...

Port's Devin integration surfaces Devin sessions, playbooks, knowledge notes, and organization secret metadata in your Context Lake. From there, you can start new Devin sessions, send follow-up messages, terminate runs, and archive sessions directly from Port workflows.

Start a Devin session​

Use this workflow to open a new Devin session with a prompt, optional playbook, repositories, and knowledge. See the Devin integration action page for the full node field reference.

Send a follow-up message​

Use this workflow to continue an existing Devin session when it is idle. See the Devin integration action page for the full node field reference.

Port MCP​

When enablePortMcp is true on create_session or send_message, the integration injects a per-session user secret keyed MCP_PORT_TOKEN with a short-lived Port access token for the workflow node's executionIdentity. Devin reads that value as ${MCP_PORT_TOKEN} in MCP HTTP headers.

  1. Configure a Customize MCP HTTP server in your Devin organization once, with Authorization: Bearer ${MCP_PORT_TOKEN} and the Port MCP URL for your region (https://mcp.port.io/v1 or https://mcp.us.port.io/v1).
  2. Set executionIdentity on the integration action node (actor or service_account).
  3. Set enablePortMcp: true on the action inputs.

The integration does not install or rotate Devin MCP servers. The secret key is fixed as MCP_PORT_TOKEN (not configurable). See Managed Port MCP and the Port MCP server overview.

Session tracking​

Devin does not send outbound webhooks. When reportCompletion is true on create_session or send_message, the Port workflow run stays IN_PROGRESS until Devin finishes the turn (or fails). A background SessionTracker polls Devin on sessionTrackingIntervalSeconds (default 30).

The integration persists tracking state with tags on the Devin session (not in Port). Reserved tags start with port: and cannot be set in workflow inputs.

TagMeaning
port:managedSession was created by this integration. Drives managedByPort in the catalog.
port:pending:<installationId>A Port run for this installation is waiting on the session.
port:external-id:devin:<runId>Links the session to the Port run.
port:sent-at:<epochSeconds>Turn start time. Only messages after this timestamp count for the current turn.

On each poll, the integration posts new session messages to the Port run log as [devin] ... or [user] .... When the turn completes, the node output includes pull requests, structured output, ACU usage, and timestamps. Runs waiting longer than sessionTrackingMaxHours (default 72) fail with a timeout.

Workflow actions that touch sessions: create_session, send_message, terminate_session, and archive_session. See the Devin integration action page.

Prerequisites​

  • A Devin service-user API key (cog_*) under Devin Settings → Service users with:
    • ViewOrgSessions and ManageOrgSessions (resync, actions, tracking).
    • Read access to playbooks, knowledge notes, and secrets for catalog resync.
    • ImpersonateOrgSessions when you use createAsUserId or messageAsUserId.
  • Your Devin organization ID.
  • Your Port user role is set to Admin.

Setup​

Choose one of the installation methods below. If you are not sure which option to use, review the installation methods overview.

Choose method

Configuration​

Port integrations use a YAML mapping block to ingest data from the third-party API into Port.

The mapping uses the JQ JSON processor to transform fields and shape incoming Devin data into Port entities.

Catalog resync​

Catalog resources do not use incremental Ocean resync yet.

  • Sessions are listed in a rolling window controlled by createdAfterDays (default 30). Older sessions may be removed from Port on the next full sync.
  • Playbooks, knowledge notes, and secrets are fully listed on each resync (paginated). Secret entities contain metadata only; Devin never returns secret values.

Resource selectors​

In addition to query, each resource supports optional selector fields in your Port App config:

ResourceFieldDefaultDescription
sessionincludeArchivedfalseInclude archived Devin sessions.
sessioncreatedAfterDays30Only ingest sessions created within this many days.
sessiononlyManagedByPortfalseWhen true, ingest only sessions tagged port:managed.
playbookincludeEnterprisefalseInclude enterprise playbooks.

Default mapping configuration​

Default mapping configuration (click to expand)
resources:
- kind: playbook
selector:
query: 'true'
includeEnterprise: false
port:
entity:
mappings:
identifier: .playbook_id
title: .title
blueprint: '"devin_playbook"'
properties:
body: .body
macro: .macro
accessType: .access_type
createdBy: .created_by
createdAt: .created_at | todate
updatedAt: .updated_at | todate
- kind: knowledge-note
selector:
query: 'true'
port:
entity:
mappings:
identifier: .note_id
title: .name
blueprint: '"devin_knowledge_note"'
properties:
body: .body
trigger: .trigger
folderPath: .folder_path
pinnedRepo: .pinned_repo
enabled: .is_enabled
accessType: .access_type
createdAt: .created_at | todate
updatedAt: .updated_at | todate
- kind: secret
selector:
query: 'true'
port:
entity:
mappings:
identifier: .secret_id
title: .key // .secret_id
blueprint: '"devin_secret"'
properties:
note: .note
secretType: .secret_type
accessType: .access_type
sensitive: .is_sensitive
createdBy: .created_by
createdAt: .created_at | todate
- kind: session
selector:
query: 'true'
includeArchived: false
createdAfterDays: 30
onlyManagedByPort: false
port:
entity:
mappings:
identifier: .session_id
title: .title // .session_id
blueprint: '"devin_session"'
properties:
status: .status
statusDetail: .status_detail
url: .url
origin: .origin
category: .category
tags: .tags
managedByPort: 'any(.tags[]?; . == "port:managed")'
pullRequests: '[.pull_requests[]?.pr_url]'
acusConsumed: .acus_consumed
onDemandUsage: .on_demand_usage
devinMode: .devin_mode
archived: .is_archived
createdAt: .created_at | todate
updatedAt: .updated_at | todate
relations:
playbook: .playbook_id
parentSession: .parent_session_id

Mapping & examples per resource​

To view and test the integration mapping against sample API responses, use the jq playground in your connectors page.

Monitoring and sync status​

To learn more about how to monitor and check the sync status of your integration, see the relevant documentation.