For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

emitOperationId

Emits operationId when it is generated.

Details

Notifies the operation ID as soon as it is created.

Event: emitOperationId

Type: FacephiSdkProviderCustomEvent<string> | CustomEvent<string>

Syntax

provider.addEventListener('emitOperationId', onEmitOperationId);

Received object

detail: string

Description

Useful for linking the SDK operation to your backend.


Example

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

Last updated