Autional Autional
API Reference GitHub autional.com →

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

NameInTypeRequiredDefaultExampleConstraintsDescription
user_id path string Yes User ID

Request Body

Schema: dto.AddIdentityRequest

FieldTypeRequiredExampleConstraintsDescription
identifier string Yes Identifier
type string Yes enum: `email`, `phone` Type
code string No Verification code
password string No Password

Responses

StatusDescriptionSchema
201Addition successfuldto.AddIdentityResponse

Referenced Schemas

dto.AddIdentityResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.IdentityResponse No
message string No
timestamp string No

dto.IdentityResponse

User credential info

FieldTypeRequiredExampleConstraintsDescription
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