com.atproto.server.createAccount

Create an account. Implemented by PDS.

class atproto_client.models.com.atproto.server.create_account.Data

Bases: DataModelBase

Input data model for com.atproto.server.createAccount.

field did: Did | None = None

Pre-existing atproto DID, being imported to a new account.

field email: str | None = None

Email.

field handle: Handle [Required]

Requested handle for the account.

field invite_code: str | None = None

Invite code.

field password: str | None = None
field plc_op: UnknownInputType | None = None
field recovery_key: str | None = None
field verification_code: str | None = None

Verification code.

field verification_phone: str | None = None

Verification phone.

class atproto_client.models.com.atproto.server.create_account.DataDict

Bases: TypedDict

handle: Handle

Requested handle for the account.

did: NotRequired[Did | None]

Pre-existing atproto DID, being imported to a new account.

email: NotRequired[str | None]

Email.

invite_code: NotRequired[str | None]

Invite code.

password: NotRequired[str | None]

Initial account password. May need to meet instance-specific password strength requirements.

plc_op: NotRequired[Annotated[Any, UnknownRecordFallback] | None]

A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented.

recovery_key: NotRequired[str | None]

DID PLC rotation key (aka, recovery key) to be included in PLC creation operation.

verification_code: NotRequired[str | None]

Verification code.

verification_phone: NotRequired[str | None]

Verification phone.

class atproto_client.models.com.atproto.server.create_account.Response

Bases: ResponseModelBase

Output data model for com.atproto.server.createAccount. Account login session returned on successful account creation.

field access_jwt: str [Required]

Access jwt.

field did: Did [Required]

The DID of the new account.

field did_doc: UnknownType | None = None

Complete DID document.

field handle: Handle [Required]

Handle.

field refresh_jwt: str [Required]

Refresh jwt.