---
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/36eea0d308f1312d1a446ec8813ed30b0bdba62c/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/36eea0d308f1312d1a446ec8813ed30b0bdba62c/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/36eea0d308f1312d1a446ec8813ed30b0bdba62c/packages/b2c-tooling-sdk/src/auth/types.ts#L144)
