> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# BALLDONTLIE Webhook Setup Guide

> Configure BALLDONTLIE to deliver events to StackOne.

## Prerequisites

The connector should already be set up, with a Connector Profile and a Linked Account. See [Getting Started](https://docs.stackone.com/connectors/balldontlie.md#getting-started) on the BALLDONTLIE connector page.

## Create the webhook endpoint

BALLDONTLIE delivers events to a webhook endpoint you register in its dashboard. Create one endpoint pointed at your StackOne Native Webhook URL and subscribe it to the NBA events you want.

**1. Retrieve your StackOne Native Webhook URL**

The **Native Webhook URL** is generated once an account has been linked. You will paste it into BALLDONTLIE in a later step.

<ul>
  <li>Open the linked account in StackOne.</li>
  <li>Copy the value from **Native Webhook URL**.</li>
</ul>

**2. Sign in to BALLDONTLIE**

Open the [BALLDONTLIE dashboard](https://app.balldontlie.io) and sign in with the account whose API key you connected to StackOne. Enter your **email** and **password** on the **WELCOME BACK** screen, then click **Submit**.

![The BALLDONTLIE WELCOME BACK screen with the email and password fields and the Submit button highlighted.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-sign-in.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=0a5b1c16dbd838ff5810aa86dee6de93)

**3. Open the Webhooks page**

Click **Webhooks** in the sidebar. The page shows your **Endpoints** and **Deliveries This Month** counts against your plan's allowances.

<ul>
  <li>A Free plan allows **0 / 1** endpoints and **0 / 100** deliveries a month.</li>
</ul>

![The BALLDONTLIE Webhooks page with the Webhooks sidebar entry highlighted.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-open-webhooks.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=1906e3c99e7ac3d3c9b7afdbc67b7c19)

**4. Start creating an endpoint**

Click **Create Endpoint** in the top right. On an account with no endpoints yet you can also click **Create Your First Endpoint** in the middle of the page — both open the same dialog.

![The Webhooks page with the Create Endpoint and Create Your First Endpoint buttons highlighted.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-create-endpoint-button.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=63cbf7fd4781c60599934004b1d26e32)

**5. Enter the webhook URL**

In the **Create Webhook Endpoint** dialog, paste the **Native Webhook URL** you copied into **URL**. In **Description (optional)**, type a name you will recognise later, for example `StackOne`.

![The Create Webhook Endpoint dialog with the URL and Description (optional) fields highlighted.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-endpoint-url.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=b9db8652acba4a6e9576e2e329d35e3f)

**6. Select the event types**

Under **Event Types**, click **NBA** to expand the list, then tick the events you want delivered. Event types your plan cannot receive are greyed out with a padlock.

<ul>
  <li>On a Free plan only **nba.game.started** and **nba.game.ended** can be selected.</li>
  <li>**Select all** ticks every event type your plan allows.</li>
  <li>BALLDONTLIE delivers only the events you tick here.</li>
</ul>

![The Event Types list expanded for NBA, with nba.game.started and nba.game.ended highlighted and the remaining events greyed out behind padlocks.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-select-event-types.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=7cfb76cc53357a20532b3cedd493e57e)

**7. Create the endpoint**

Check the count beside **Event Types** matches what you selected, then click **Create**.

![The completed Create Webhook Endpoint dialog reading 2 events selected, with the Create button highlighted and the URL value masked.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-create-endpoint-form.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=f370cfda2d2e539b249a987937bb0af5)

**8. Copy the signing secret**

The **Webhook Created** dialog shows the **Signing Secret** once. Click **Copy** to store it somewhere safe, then click **Done**.

<ul>
  <li>The **Signing Secret** is only displayed once and cannot be retrieved later. If you lose it, use **Rotate Secret** on the endpoint to issue a new one.</li>
  <li>StackOne does not need this secret. It authenticates each delivery using the token already in the **Native Webhook URL**, and BALLDONTLIE states that verifying webhook signatures is optional but recommended.</li>
</ul>

![The Webhook Created dialog with the Copy and Done buttons highlighted and the signing secret value masked.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-signing-secret.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=34696fde71cabd7e7f5ee8284888a1bf)

## Confirm the endpoint is receiving events

Check the endpoint is active and that BALLDONTLIE can reach StackOne before relying on live events.

**1. Check the endpoint appears as Active**

The endpoint is now listed on the **Webhooks** page with an **Active** badge, its description, and the number of events it is subscribed to. The **Endpoints** count rises to **1 / 1** on a Free plan, and **Create Endpoint** is disabled with a **Upgrade to ALL-ACCESS** link beside it.

![The Webhooks page listing the new Active endpoint, with the endpoint row highlighted and its URL masked.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-endpoint-list.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=90b04ff77c1da156acd1d01dede51d83)

**2. Review the endpoint configuration**

Click the endpoint to open it. The **Overview** tab shows its **URL**, when it was **Created**, its **Event Types**, and the **Signing Secret** section with **Rotate Secret**. Expand the sport under **Event Types** to confirm which events are subscribed.

![The endpoint Overview tab with Event Types expanded to show game.ended and game.started, and the URL masked.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-endpoint-overview.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=890e4f8b3549a3ba24e46de9488fc516)

**3. Verify delivery with a test event**

Click **Actions** in the top right and choose **Send Test** to confirm StackOne accepts deliveries. The same menu holds **Edit**, **Disable** and **Delete**.

<ul>
  <li>The test payload is not an NBA event — it carries a type of `test`. StackOne acknowledges it so the check succeeds, but it produces no sandbox or game record.</li>
</ul>

![The endpoint page with the Actions menu open and Send Test highlighted.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-send-test.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=b017417e425b0f4d59037a2c2f8f889d)

**4. Check the delivery history**

Open the **Deliveries** tab to see each attempt, filtered by **All sports** and **All statuses**. Use it to tell a delivery problem from a mapping one when events are not arriving.

<ul>
  <li>A delivery is retried after 30 seconds, 2 minutes, 10 minutes and 30 minutes. A Free plan makes 3 attempts in total and ALL-ACCESS makes 5.</li>
  <li>An endpoint is disabled automatically after 2 consecutive deliveries that use up every attempt. Re-enable it from the **Actions** menu.</li>
  <li>Delivery history is kept for 3 days on a Free plan and 30 days on ALL-ACCESS.</li>
</ul>

![The endpoint Deliveries tab with the All sports and All statuses filters and the Deliveries tab highlighted.](https://mintcdn.com/stackone-60/E8Ws5YBMn_xZ9Ydj/connectors/balldontlie/images/events-deliveries.png?fit=max\&auto=format\&n=E8Ws5YBMn_xZ9Ydj\&q=85\&s=fee7bd68686adac2a3838fc7f33d7da0)

## Available webhook events

The following NBA events can be enabled. Only events ticked in BALLDONTLIE are delivered — nothing is sent for event types that are not subscribed. **nba.game.started** and **nba.game.ended** are available on every plan; the rest require ALL-ACCESS.

**1. Enable game events**

Events covering the state of a game. Each reports the game.

<ul>
  <li>**Game Started** (`nba.game.started`) — Fired when a game begins. Available on a Free plan.</li>
  <li>**Game Ended** (`nba.game.ended`) — Fired when a game reaches final. Available on a Free plan.</li>
  <li>**Game Period Ended** (`nba.game.period_ended`) — Fired when a period or quarter ends. Requires ALL-ACCESS.</li>
  <li>**Game Overtime** (`nba.game.overtime`) — Fired when a game enters overtime. Requires ALL-ACCESS.</li>
</ul>

**2. Enable player events**

Events covering individual plays. Each reports the player, along with the game and the play itself. All require ALL-ACCESS.

<ul>
  <li>**Player Scored** (`nba.player.scored`) — Fired when a player scores.</li>
  <li>**Player Rebound** (`nba.player.rebound`) — Fired when a player gets a rebound.</li>
  <li>**Player Assist** (`nba.player.assist`) — Fired when a player records an assist.</li>
  <li>**Player Steal** (`nba.player.steal`) — Fired when a player records a steal.</li>
  <li>**Player Block** (`nba.player.block`) — Fired when a player records a block.</li>
  <li>**Player Foul** (`nba.player.foul`) — Fired when a player commits a foul.</li>
  <li>**Player Turnover** (`nba.player.turnover`) — Fired when a player commits a turnover.</li>
</ul>

**3. Enable injury events**

Events covering the injury report. Each reports the player, because the injury itself carries no identifier. All require ALL-ACCESS.

<ul>
  <li>**Injury Created** (`nba.injury.created`) — Fired when a player is added to the injury report.</li>
  <li>**Injury Updated** (`nba.injury.updated`) — Fired when a player's injury details change.</li>
  <li>**Injury Cleared** (`nba.injury.cleared`) — Fired when a player is removed from the injury report.</li>
</ul>

## Verify

Your Connector should now be able to receive and process events. Try triggering an event and you should see an Event appear in the Connector logs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.