Skip to main content

Create identifier

Creates an identifier. The system uses "identifier" as an abstraction: choose what type of identifier you need to participate in your chosen ecosystem.

Related guide: Identifiers

Function

createIdentifier(identifierRequest: CreateIdentifierRequest): Promise<string>;

Parameters

export interface CreateIdentifierRequest {
organisationId: string;
name: string;
keyId?: KeyListItem["id"];
did?: CreateIdentifierDidRequest;
}

Fields

  • organisationId - Value from create organization.

  • name - Must be unique in the organization.

  • Must choose one of:

    • keyId: Reference a key to create an identifier.

    • did: Create a new DID.

Return value

The system returns the UUID of the identifier.