POST /admin/users/{user_id}/identities
Add a new login identity (e.g., email, phone, third-party account) for a specified user
Account Management `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
user_id |
path |
string |
Yes |
|
|
|
User ID |
Request Body
Schema: dto.AddIdentityRequest
| Field | Type | Required | Example | Constraints | Description |
identifier |
string |
Yes |
|
|
Identifier |
type |
string |
Yes |
|
enum: `email`, `phone` |
Type |
code |
string |
No |
|
|
Verification code |
password |
string |
No |
|
|
Password |
Referenced Schemas
dto.AddIdentityResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.IdentityResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.IdentityResponse
User credential info
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2026-01-01T00:00:00Z |
|
Created at |
id |
string |
No |
id_abc123 |
|
Credential ID |
identifier |
string |
No |
j***@example.com |
|
Identifier (masked) |
is_primary |
boolean |
No |
True |
|
Is primary credential |
is_verified |
boolean |
No |
True |
|
Is verified |
type |
string |
No |
email |
|
Type |
user_id |
string |
No |
usr_abc123 |
|
User ID |
verified_at |
string |
No |
2026-01-10T08:00:00Z |
|
Verified at |