Create multiple identities

PATCH {{baseUrl}}/admin/identities

Creates multiple identities. This endpoint can also be used to import credentials for instance passwords, social sign in configurations or multifactor methods.

Request Body

{"identities"=>[{"create"=>{"schema_id"=>"<string>", "credentials"=>{"oidc"=>{"config"=>{"config"=>{"hashed_password"=>"<string>", "password"=>"<string>"}, "providers"=>[{"subject"=>"<string>", "provider"=>"<string>"}, {"subject"=>"<string>", "provider"=>"<string>"}]}}, "password"=>{"config"=>{"hashed_password"=>"<string>", "password"=>"<string>"}}}, "metadata_admin"=>{"description"=>"Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`."}, "metadata_public"=>{"description"=>"Store metadata about the identity which the identity itself can see when calling for example the\nsession endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field."}, "recovery_addresses"=>[{"id"=>"<uuid>", "value"=>"<string>", "via"=>"<string>", "created_at"=>"<dateTime>", "updated_at"=>"<dateTime>"}, {"id"=>"<uuid>", "value"=>"<string>", "via"=>"<string>", "created_at"=>"<dateTime>", "updated_at"=>"<dateTime>"}], "state"=>"inactive", "verifiable_addresses"=>[{"value"=>"<string>", "verified"=>"<boolean>", "via"=>"sms", "status"=>"<string>", "created_at"=>"<dateTime>", "id"=>"<uuid>", "updated_at"=>"<dateTime>", "verified_at"=>"<dateTime>"}, {"value"=>"<string>", "verified"=>"<boolean>", "via"=>"email", "status"=>"<string>", "created_at"=>"<dateTime>", "id"=>"<uuid>", "updated_at"=>"<dateTime>", "verified_at"=>"<dateTime>"}]}, "patch_id"=>"<uuid>"}, {"create"=>{"schema_id"=>"<string>", "credentials"=>{"oidc"=>{"config"=>{"config"=>{"hashed_password"=>"<string>", "password"=>"<string>"}, "providers"=>[{"subject"=>"<string>", "provider"=>"<string>"}, {"subject"=>"<string>", "provider"=>"<string>"}]}}, "password"=>{"config"=>{"hashed_password"=>"<string>", "password"=>"<string>"}}}, "metadata_admin"=>{"description"=>"Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`."}, "metadata_public"=>{"description"=>"Store metadata about the identity which the identity itself can see when calling for example the\nsession endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field."}, "recovery_addresses"=>[{"id"=>"<uuid>", "value"=>"<string>", "via"=>"<string>", "created_at"=>"<dateTime>", "updated_at"=>"<dateTime>"}, {"id"=>"<uuid>", "value"=>"<string>", "via"=>"<string>", "created_at"=>"<dateTime>", "updated_at"=>"<dateTime>"}], "state"=>"active", "verifiable_addresses"=>[{"value"=>"<string>", "verified"=>"<boolean>", "via"=>"email", "status"=>"<string>", "created_at"=>"<dateTime>", "id"=>"<uuid>", "updated_at"=>"<dateTime>", "verified_at"=>"<dateTime>"}, {"value"=>"<string>", "verified"=>"<boolean>", "via"=>"sms", "status"=>"<string>", "created_at"=>"<dateTime>", "id"=>"<uuid>", "updated_at"=>"<dateTime>", "verified_at"=>"<dateTime>"}]}, "patch_id"=>"<uuid>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;identities&quot;:[{&quot;action&quot;:&quot;create&quot;,&quot;identity&quot;:&quot;\u003cuuid\u003e&quot;,&quot;patch_id&quot;:&quot;\u003cuuid\u003e&quot;},{&quot;action&quot;:&quot;create&quot;,&quot;identity&quot;:&quot;\u003cuuid\u003e&quot;,&quot;patch_id&quot;:&quot;\u003cuuid\u003e&quot;}]}