Skip to main content

magicTokenCreate

Create a new magic token for passwordless authentication.

Generates a new magic token that can be used for one-time or multiple-use authentication. The token can be associated with either a contact or customer and includes configurable expiration settings.

Possible errors:

  • MAGIC_TOKEN_CREATE_ERROR: Failed to create the magic token

AUTH: Role=[configuration.OWNER]

magicTokenCreate(
input: MagicTokenCreateInput!
): MagicToken!

Arguments

magicTokenCreate.input ● MagicTokenCreateInput! non-null input

Magic token creation parameters.

Must specify either contactId or customerId, but not both.

Type

MagicToken object

Magic token for passwordless authentication.

Magic tokens provide a secure way to authenticate users without requiring passwords. They can be associated with either contacts or customers and support configurable expiration and usage limits.