# TargetApiName

> Type reference for TargetApiName in the Rippling SDK, including its public shape and related types.

Extracts the target api name from a lookup or parent-child target.

## Type definition

```
export type TargetApiName<TTarget> = TTarget extends {
    readonly apiName: infer TApiName extends string;
} ? TApiName : never;
```

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/TargetApiName-6d0b57e7

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
