KindeK
Kinde2y ago
1 reply
Falah

create user using management api

is there a way where i can create user directly with email and password using, where the user can just login without the user need to verify the email while logging in for the first time for the first time

const usersResponse = await fetch(
      "https://{business_name}.kinde.com/api/v1/user",
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
          Accept: "application/json",
          Authorization: `Bearer ${access_token}`,
        },
        body: JSON.stringify({
          profile: {
            given_name: firstName,
            family_name: lastName,
          },
          organization_code: "org--------",
          identities: [
            {
              type: "email",
              details: {
                email: email,
                password: password,
              },
            },
          ],
        }),
      }
    );
    const userData = await usersResponse.json();
Was this page helpful?