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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [scapi](../index.md) / createScapiSpecHost

# Function: createScapiSpecHost()

> **createScapiSpecHost**(`documents`, `detail`): (`args`) => `unknown`

Defined in: [packages/b2c-tooling-sdk/src/scapi/spec.ts:58](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/scapi/spec.ts#L58)

The host side of the program's `spec` object. Every member is a host call, so a program only
receives the parts of the contracts it asks for, and a replay sees the answers the first run did.

## Parameters

### documents

[`ScapiSchemaDocument`](../interfaces/ScapiSchemaDocument.md)[]

### detail

`"full"` | `"outline"`

## Returns

> (`args`): `unknown`

### Parameters

#### args

`unknown`

### Returns

`unknown`
