Skip to content
  • Machine-to-Machine (M2M)
  • M2M token customization

Customize the claims of an M2M token

You can customize the claims of tokens issued to Machine-to-Machine (M2M) applications in Kinde by including selected Properties and Feature Flags. This allows you to inject structured metadata and configuration directly into the token, without requiring an additional lookup at runtime.

This is useful for:

  • Routing or behavior changes based on metadata
  • Feature gating in backend systems
  • Configuring AI agents or other automation tools

Tokens remain signed JWTs and can be verified like any other Kinde-issued token.

See Token customization for detailed procedures.

Include feature flags in the token

Link to this section

If your M2M app is scoped to an organization, you can also include feature flags that are enabled for that org. See Add feature flags to M2M applications

Important info about customizing M2M tokens

Link to this section

Complete control over the token

Link to this section

For complete control over the token, you can use the Kinde M2M token generation workflow to customize the token further.

For example, you can:

  • Add custom claims to the token
  • Add custom scopes to the token
  • Add custom metadata to the token