Definitions related to session-management in ATP.
{
"lexicon": 1,
"id": "com.atproto.session.create",
"defs": {
"main": {
"type": "procedure",
"description": "Create an authentication session.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"handle",
"password"
],
"properties": {
"handle": {
"type": "string"
},
"password": {
"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"
}
}
}
}
}
}
}
{
"lexicon": 1,
"id": "com.atproto.session.delete",
"defs": {
"main": {
"type": "procedure",
"description": "Delete the current session."
}
}
}
{
"lexicon": 1,
"id": "com.atproto.session.get",
"defs": {
"main": {
"type": "query",
"description": "Get information about the current session.",
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"handle",
"did"
],
"properties": {
"handle": {
"type": "string"
},
"did": {
"type": "string"
}
}
}
}
}
}
}
{
"lexicon": 1,
"id": "com.atproto.session.refresh",
"defs": {
"main": {
"type": "procedure",
"description": "Refresh an authentication session.",
"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"
}
}
}
}
}
}
}
The AT Protocol will launch soon.
Join the waitlist to try the beta before it's publicly available.