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

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

***

### key

> **key**: `string`

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