# Check your Collector configuration
> View your Snowplow Collector configuration in Console, or retrieve it from the Console API to add Collector health checks to your own monitoring.
> Source: https://docs.snowplow.io/docs/pipeline/collector/
> Documentation index: https://docs.snowplow.io/llms.txt

The Collector is the pipeline component that receives events from your [trackers](/docs/sources/) and webhooks. Its configuration sets the cookie domains, the request paths it accepts, and its cookie attributes. Check it when you set up a new tracker, change your cookie domain, or debug events that don't arrive.

You can view the configuration in Snowplow Console, or retrieve it from the Console API. Snowplow monitors Collector health around the clock, but if you want Collector checks in your own monitoring systems, use the API: read the Collector endpoints and settings from it, then run your health checks against them. That way your checks follow any configuration change.

To look up a field in the API response, or the HTTP headers the Collector accepts, see the [Collector configuration reference](/docs/pipeline/collector/configuration-reference/). If you run Snowplow Self-Hosted, configure the Collector with its [configuration file](/docs/api-reference/stream-collector/configure/) instead.

## Before you begin

You'll need:

- Access to your pipeline in [Snowplow Console](https://console.snowplowanalytics.com)
- To use the API, a Snowplow API key and its key ID, with read access to pipelines. See [create an API key](/docs/account-management/#create-an-api-key).

## Steps

To only view the configuration, the first step is enough. The remaining steps retrieve the same configuration from the API.

### View the configuration in Console

Log in to Console and click **Pipeline Configuration** in the navigation menu for your pipeline.

![Snowplow Console showing a pipeline with the Configuration tab selected (indicated by a red arrow), and the left sidebar showing configuration sections including COLLECTOR (Collector domains, Tracker request paths, Collector settings), VALIDATION, COMPONENTS, and ALERTS.](/assets/images/image-1-8ca1a1d304dc7770448eb2698869a7ee.png)

Console shows your configuration, with default values displayed for empty fields. This view reads the same API that the rest of these steps use.

![Snowplow Console Collector configuration page showing the Tracker request paths section with a table of default paths: POST at /com.snowplowanalytics.snowplow/tp2, Redirect at /r/tp2, and Iglu at /com.snowplowanalytics.iglu/v1.](/assets/images/image-2-d20f02e67f447d2499aeba129631d9ab.png)

### Get an access token

Exchange your API key and key ID for an access token, which is valid for 24 hours. Your organization ID is on the [**Manage organization** page](https://console.snowplowanalytics.com/settings) in Console.

```bash
curl \
  --header 'X-API-Key-ID: <API_KEY_ID>' \
  --header 'X-API-Key: <API_KEY>' \
  https://console.snowplowanalytics.com/api/msc/v1/organizations/<ORGANIZATION_ID>/credentials/v3/token
```

The response contains the token, as `{ "accessToken": "<JWT>" }`. [Obtain an access token](/docs/account-management/#obtain-an-access-token) has the details.

Send the token with every API request, in the `Authorization: Bearer {{token}}` header.

### Find your pipeline ID

The pipeline ID is the second UUID in the browser's address bar when you view the pipeline in Console:

![Snowplow Console browser address bar showing a URL where the pipeline ID UUID is highlighted as the second UUID in the path.](/assets/images/image-4-716927604c876d4c0652077b2cc6071c.png)

### Call the configuration endpoint

Send a `GET` request to the Collector configuration endpoint, with your IDs and token:

```bash
curl \
  --header 'Authorization: Bearer {{token}}' \
  'https://console.snowplowanalytics.com/api/msc/v1/organizations/{organizationId}/resources/v1/pipelines/{pipelineId}/configuration/collector'
```

To try the endpoint in your browser instead, open the [API specification](https://console.snowplowanalytics.com/api/msc/v1/docs/index.html?url=/api/msc/v1/docs/docs.yaml#/configuration/getOrganizationsOrganizationidResourcesV1PipelinesPipelineidConfigurationCollector), click **Authorize** at the top of the page, and enter your token. The specification then uses it for every request you send.

### Check the response

The response is a JSON object with the `cookieDomains`, `paths`, `cookieAttributes`, and `blockUnencrypted` fields. Compare it with the values Console showed in the first step. The [Collector configuration reference](/docs/pipeline/collector/configuration-reference/#response-fields) describes each field and its default.

To monitor the Collector, have your monitoring system read the configuration from this endpoint, and point your health checks at the request paths it lists.
