# Campaigns

Trigger campaigns using the Nexthink Campaigns API, giving you the flexibility to create integrations with external applications.

## Setting up API credentials

To set up an integration with the Nexthink API, you must first create a set of API credentials in your instance that the external application or service will use to access the API and send requests to Remote Actions. Refer to the [API Credentials](https://docs.nexthink.com/api/readme) documentation.

## Configuring a campaign for API

1. Create a new campaign or edit an existing one as described in the [Manage Campaigns](https://docs.nexthink.com/platform/latest/manage-campaigns) documentation.
2. Under the **General** tab, check the **API** check box.

![Enabling a campaign for the API](https://2357343894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJJ2qSHrtIyc9j4mVppGN%2Fuploads%2Fgit-blob-41f8049192de209b0dab0810af48fbe1169697cb%2FCMP-1680601624.png?alt=media)

## Copying a campaign ID

To trigger a campaign via the API, you must know its NQL ID.

1. Select **Campaigns** from the main menu.
2. Click the **Manage campaigns** button at the bottom of the navigation panel.
3. Find the campaign you need the ID for and edit it.
4. Save the NQL ID for late use.
