Mutations
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.
MUTATION
mintEmbedToken(input: MintEmbedTokenInput!): MintEmbedTokenOutput!Arguments
input
required
Returns
token
error
Mutation
Variables
Response
Mutation
Variables
Response

