Skip to content

generateIntentId()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / generateIntentId

generateIntentId(): string

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:3339

Generate a unique intent identifier

Creates a cryptographically random intent ID with the sip- prefix. IDs are globally unique with negligible collision probability (128-bit randomness).

string

Intent ID string in format: sip-<32 hex chars>

const intentId = generateIntentId()
console.log(intentId) // "sip-a1b2c3d4e5f67890a1b2c3d4e5f67890"