Definitions related to account-management in ATP services.
{
"lexicon": 1,
"id": "com.atproto.account.create",
"defs": {
"main": {
"type": "procedure",
"description": "Create an account.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"handle",
"email",
"password"
],
"properties": {
"email": {
"type": "string"
},
"handle": {
"type": "string"
},
"inviteCode": {
"type": "string"
},
"password": {
"type": "string"
},
"recoveryKey": {
"type": "string"
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"accessJwt",
"refreshJwt",
"handle",
"did"
],
"properties": {
"accessJwt": {
"type": "string"
},
"refreshJwt": {
"type": "string"
},
"handle": {
"type": "string"
},
"did": {
"type": "string"
}
}
}
},
"errors": [
{
"name": "InvalidHandle"
},
{
"name": "InvalidPassword"
},
{
"name": "InvalidInviteCode"
},
{
"name": "HandleNotAvailable"
}
]
}
}
}
{
"lexicon": 1,
"id": "com.atproto.account.createInviteCode",
"defs": {
"main": {
"type": "procedure",
"description": "Create an invite code.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"useCount"
],
"properties": {
"useCount": {
"type": "integer"
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string"
}
}
}
}
}
}
}
{
"lexicon": 1,
"id": "com.atproto.account.delete",
"defs": {
"main": {
"type": "procedure",
"description": "Delete an account."
}
}
}
{
"lexicon": 1,
"id": "com.atproto.account.get",
"defs": {
"main": {
"type": "query",
"description": "Get information about an account."
}
}
}
{
"lexicon": 1,
"id": "com.atproto.account.requestPasswordReset",
"defs": {
"main": {
"type": "procedure",
"description": "Initiate a user account password reset via email.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string"
}
}
}
}
}
}
}
{
"lexicon": 1,
"id": "com.atproto.account.resetPassword",
"defs": {
"main": {
"type": "procedure",
"description": "Reset a user account password using a token.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"token",
"password"
],
"properties": {
"token": {
"type": "string"
},
"password": {
"type": "string"
}
}
}
},
"errors": [
{
"name": "ExpiredToken"
},
{
"name": "InvalidToken"
}
]
}
}
}
The AT Protocol will launch soon.
Join the waitlist to try the beta before it's publicly available.