---
title: "Devin"
canonical_url: "https://docs.getdx.com/connectors/devin/"
md_url: "https://docs.getdx.com/connectors/devin.md"
last_updated: "2026-05-08"
---

# Devin
By enabling the Devin connector, you can import daily metrics for user consumption and pull request activity. Please refer to the API documentation below and our [schema explorer](https://docs.getdx.com/schema/) to see what data DX imports.

## Prerequisites

To connect Devin to DX, you will need:

- a [Devin API key](https://docs.devin.ai/api-reference/overview) with the following permissions:
  - **ManageAccountMembership** — to list enterprise members
  - **ManageBilling** — to access consumption data
  - **ViewAccountMetrics** — to access PR and usage metrics

## Setup instructions

Follow the steps below to connect Devin to DX.

#### Step 1

Navigate to the Devin admin settings page to obtain your API key. Ensure your API key has the required permissions listed above for DX to fetch data successfully.

#### Step 2

- Navigate to the connections page in DX and select "+ Connection" in the top right.
- Enter the credentials you have generated in the previous steps—refer to the information below for errors and troubleshooting.

## API reference

The table below lists the specific API endpoints that are used by DX.


| Endpoint | Documentation |
|--------------------------------------------------|---------------|
| /v3/enterprise/members | [Link](https://docs.devin.ai/api-reference/v3/users/members-users) |
| /v3/enterprise/consumption/daily/{userId} | [Link](https://docs.devin.ai/api-reference/v3/consumption/consumption-daily-users) |
| /v3/enterprise/metrics/prs | [Link](https://docs.devin.ai/api-reference/v3/metrics/metrics-prs) |


## Errors

The table below lists potential error codes when adding a connection in DX.


| Error | Description |
|------------------------|--------------------------------------------------------------------------|
| `invalid_credentials` | Your API credentials entered are not valid. |
| `invalid_permissions` | Your API key does not have the required permissions (ManageAccountMembership, ManageBilling, ViewAccountMetrics). |
| `unauthorized` or `forbidden` | Your API key is missing at least one required permission (ManageAccountMembership, ManageBilling, ViewAccountMetrics). |
| `no_resources` | DX cannot access any enterprise organizations. |
---

## Sitemap

[Overview of all docs pages](/llms.txt)
