---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [auth](../index.md) / ApiKeyAuthConfig

# Interface: ApiKeyAuthConfig

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:64](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/auth/types.ts#L64)

Configuration for API key authentication.
Used for MRT and external services.

## Properties

### headerName?

> `optional` **headerName**: `string`

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:66](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/auth/types.ts#L66)

***

### key

> **key**: `string`

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:65](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/auth/types.ts#L65)
