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

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

***

### key

> **key**: `string`

Defined in: [packages/b2c-tooling-sdk/src/auth/types.ts:127](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/2feab01f654eec77c6d702777ec2818472f131f1/packages/b2c-tooling-sdk/src/auth/types.ts#L127)
