> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/sdk-provider/eventos/emitoperationid.md).

# emitOperationId

## Details

Notifies the operation ID as soon as it is created.

**Event:** `emitOperationId`

**Type:** `FacephiSdkProviderCustomEvent<string>` | `CustomEvent<string>`

### Syntax

```typescript
provider.addEventListener('emitOperationId', onEmitOperationId);
```

### Received object

```json
detail: string
```

## Description

Useful for linking the SDK operation with your backend.

***

## Example

```jsx
<facephi-sdk-provider
    apikey={process.env.FACEPHI_SDK_APIKEY}
    onEmitOperationId={onEmitOperationId}
/>
```
