# DEV.to Integration

> Part of the [NextBlog documentation](https://nextblog.ai/docs.md). Live page: [https://nextblog.ai/docs/integration-devto](https://nextblog.ai/docs/integration-devto)

Cross-post approved blog posts to DEV.to (Forem) with native markdown support. When enabled, approving a post will publish (or update) the matching DEV article automatically.

#### Prerequisites

Before you begin, make sure you have:

- A DEV.to account
- A DEV Community API key

### Step 1: Create a DEV Community API Key

#### 1.1 Open DEV account settings

Go to [https://dev.to/settings/extensions](https://dev.to/settings/extensions).

#### 1.2 Generate an API key

Scroll to the **DEV Community API Keys** section, generate a new key, and copy it.

**Important:** Treat this key like a password and store it securely.

### Step 2: Configure DEV.to in NextBlog

#### 2.1 Open your project settings

In your NextBlog dashboard, open the project you want to connect.

#### 2.2 Enable DEV.to integration

In the **Integrations** section, expand **DEV.to** and toggle the enable switch to ON.

#### 2.3 Paste your API key

Paste your DEV API key into the **DEV.to API Key** field.

#### 2.4 Test connection

Click **Test Connection**. You should see a success message if the key is valid.

#### 2.5 Save changes

Click **Save Changes** at the bottom of the page to persist your DEV.to settings.

### How Publishing Works

#### Approve publishes to DEV.to

When you approve a blog post, NextBlog will publish it to DEV.to. If it was published before, it will update the existing DEV article instead of creating a duplicate.

#### Unpublish reverts to draft

If you unpublish a blog post in NextBlog, the linked DEV article will be reverted back to a draft (unpublished) state.

### Troubleshooting

#### Connection test fails

**Common issues:**

- Invalid or revoked API key
- Copy/paste included extra whitespace
- DEV API keys not enabled on your account
