# NewsBreak

# How To Generate NewsBreak API Key

#### Introduction

Welcome to the **NewsBreak API Integration Guide**! This guide will help you seamlessly integrate NewsBreak API into your application, enabling data exchange and automation. Follow the steps below to get started.

---

#### Step 1: Create an Ad Account

Before you can use the API, ensure you have an **ad account** in our **Ad Manager**. If you don’t have an account, sign up through platform.

---

#### Step 2: Obtain an API Access Token

1. Log in to your **Ad Manager** account.
2. Navigate to **Resources → API Access Tokens**. [![1.png](https://agency.p2w.tech/uploads/images/gallery/2025-02/scaled-1680-/1.png)](https://agency.p2w.tech/uploads/images/gallery/2025-02/1.png)
3. Click **"Generate Token"** to create a new API access token. [![2.png](https://agency.p2w.tech/uploads/images/gallery/2025-02/scaled-1680-/2.png)](https://agency.p2w.tech/uploads/images/gallery/2025-02/2.png)

> **📌 Note:** Keep your API token secure and do not share it publicly. This token is required for authentication in API requests.

---

#### Step 3: Authenticate API Requests

Once you have your **API access token**, you can authenticate API requests by including the token in the HTTP **header**.

##### Authentication Header Format

<table id="bkmrk-key-value-type-acces"><thead><tr><th>**Key**</th><th>**Value**</th><th>**Type**</th></tr></thead><tbody><tr><td>Access-Token</td><td>`your_access_token_here`</td><td>String</td></tr></tbody></table>

---

#### Step 4: Making API Requests

Below is an example of how to make an API request using **cURL**:

```bash
curl -X 'POST' \
'https://business.newsbreak.com/business-api/v1/reports/getIntegratedReport' \
-H 'accept: application/json' \
-H 'Access-Token: your_access_token' \
-H 'Content-Type: application/json' \
-d '{
  "name": "string",
  "dateRange": "FIXED",
  "startDate": "2024-01-01",
  "endDate": "2024-01-01",
  "filter": null,
  "filterIds": ["string"],
  "dimensions": ["DATE"],
  "metrics": ["COST"],
  "emails": ["your_email"],
  "editors": ["your_name"]
}'

```