com.atproto.server.createAccount
POST/xrpc/com.atproto.server.createAccount
This endpoint is part of the atproto PDS server and account management APIs. Requests often require authentication and are made directly to the user's own PDS instance.
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Create an account. Implemented by PDS.
Request
- application/json
Body
required
Requested handle for the account.
Pre-existing atproto DID, being imported to a new account.
Initial account password. May need to meet instance-specific password strength requirements.
DID PLC rotation key (aka, recovery key) to be included in PLC creation operation.
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
The DID of the new account.
{
"accessJwt": "string",
"refreshJwt": "string",
"handle": "string",
"did": "string",
"didDoc": {}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InvalidRequest
, ExpiredToken
, InvalidToken
, InvalidHandle
, InvalidPassword
, InvalidInviteCode
, HandleNotAvailable
, UnsupportedDomain
, UnresolvableDid
, IncompatibleDidDoc
]
{
"error": "InvalidRequest",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}