> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/integrations/builtin/credentials/segment.md).

# Segment credentials

You can use these credentials to authenticate the following nodes:

* [Segment](/integrations/builtin/app-nodes/n8n-nodes-base.segment.md)

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

Create a [Segment](https://segment.com/) account.

## Supported authentication methods <a href="#supported-authentication-methods" id="supported-authentication-methods"></a>

* API key

## Related resources <a href="#related-resources" id="related-resources"></a>

Refer to [Segment's Sources documentation](https://segment.com/docs/connections/sources/) for more information about the service.

## Using API key <a href="#using-api-key" id="using-api-key"></a>

To configure this credential, you'll need:

* A **Write Key**: To get a Write Key, go to **Sources > Add Source**. Add a **Node.js** source and copy that write key to add to your n8n credential.

Refer to [Locate your Write Key](https://segment.com/docs/connections/find-writekey/) for more information.
