> 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/metodos/getoperationid.md).

# getOperationId

## Details

Returns the operation identifier generated by the SDK in the current Flow.

### Syntax

```typescript
await provider.getOperationId();
```

## Description

Allows you to read the `operationId` from JavaScript once the SDK has generated it.

### Considerations

The method is asynchronous; use `await` or `.then()`. You can also receive the value through the event [emitOperationId](/docs.facephi-en/sdks/sdk-web/componentes/sdk-provider/eventos/emitoperationid.md).

***

## Example

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

const operationId = await provider.getOperationId();
```
