Quick start
Machine-to-Machine (M2M)
If you’re building AI-powered tools or agents that act on behalf of your customers, machine-to-machine (M2M) applications in Kinde offer a simple, secure way to authenticate them.
M2M apps are ideal for:
By scoping M2M apps to specific organizations, you ensure each token can only access the data and functionality appropriate to that customer.
You’ve built a support assistant that uses a customer’s internal knowledge base to generate responses. Each org gets their own agent instance.
With Kinde, you can:
enable_agent_v2
)org_code
in your API to isolate accessYour backend APIs validate the incoming token and respond accordingly — no need for separate credential logic or inline configuration.
If you deploy a shared service that rotates between customer workspaces, you can:
This keeps your infrastructure lightweight while maintaining strict org isolation.
model_version
or max_tokens
org_code
and scopes
server-side to prevent token misuse{ "org_code": "org_123456789", "application_properties": { "model_version": { "v": "gpt-4" }, "region": { "v": "eu" } }, "feature_flags": { "agent-v2": { "t": "b", "v": true }, "beta-tools": { "t": "b", "v": false } }}
The t
and v
are short codes for the type and value of the feature flag.
t
= type
(boolean, string, number)v
= value
(true | false, “beta”, 1, etc.)Only the feature flags you explicitly toggle on will be included.