> ## Documentation Index
> Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# mintEmbedToken

> Issues a short-lived RS256-signed JWT (60-second TTL) that a Plain embed iframe passes to your
backend so you can verify the calling user's identity and context. Verify the token by fetching
the public keys from the JWKS endpoint returned in `EmbedToken.jwksUrl`. The token carries
claims identifying the Plain user, the thread, and the customer, plus the `plain_embed_id` you
supplied for audit logging. Each call produces a unique token; call this mutation immediately
before your embed needs to make an authenticated request to your backend.

