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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [clients](../index.md) / CustomApisClient

# Type Alias: CustomApisClient

> **CustomApisClient** = `Client`\<`paths`\>

Defined in: [packages/b2c-tooling-sdk/src/clients/custom-apis.ts:61](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/clients/custom-apis.ts#L61)

The typed Custom APIs client for Custom SCAPI endpoint management.

## Common Endpoints

| Method | Path | Description |
|--------|------|-------------|
| GET | `/organizations/{organizationId}/endpoints` | List all custom API endpoints |
| GET | `/organizations/{organizationId}/endpoints/{apiName}` | Get specific API info |

## Example

```typescript
import { createCustomApisClient, toOrganizationId } from '@salesforce/b2c-tooling-sdk/clients';
import { OAuthStrategy } from '@salesforce/b2c-tooling-sdk/auth';

const auth = new OAuthStrategy({
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
});

const client = createCustomApisClient(
  { shortCode: 'kv7kzm78', tenantId: 'zzxy_prd' },
  auth
);

// List all custom API endpoints
const { data, error } = await client.GET('/organizations/{organizationId}/endpoints', {
  params: { path: { organizationId: toOrganizationId('zzxy_prd') } }
});
```

## See

 - [createCustomApisClient](../functions/createCustomApisClient.md) for instantiation
 - [Custom APIs Reference](https://developer.salesforce.com/docs/commerce/commerce-api/references/custom-apis?meta=Summary)
