---
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:143](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1cc5681b8c76554833dc7a40097f33641882a372/packages/b2c-tooling-sdk/src/auth/types.ts#L143)

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:145](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1cc5681b8c76554833dc7a40097f33641882a372/packages/b2c-tooling-sdk/src/auth/types.ts#L145)

***

### key

> **key**: `string`

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:144](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1cc5681b8c76554833dc7a40097f33641882a372/packages/b2c-tooling-sdk/src/auth/types.ts#L144)
