ai.newnal.pdn.server.createAttestedAccount
Create an account on behalf of a client attested by a trusted issuer. Authenticated with a service-auth JWT (iss = trusted issuer DID, aud = this PDN, lxm = this method, exp - iat <= 60 s, unique jti). No invite code, no captcha. Without handle the server generates a memorable one; without email the server stores the placeholder <label>@newnal.id. Returns a full session, like createAccount; clients that need a scoped session create a scoped app password with it.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | server.pdn.newnal.ai |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.emailNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.passwordNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.recoveryKeyNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.accessJwtNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.emailNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.refreshJwtNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Create an account on behalf of a client attested by a trusted issuer. Authenticated with a service-auth JWT (iss = trusted issuer DID, aud = this PDN, lxm = this method, exp - iat <= 60 s, unique jti). No invite code, no captcha. Without handle the server generates a memorable one; without email the server stores the placeholder <label>@newnal.id. Returns a full session, like createAccount; clients that need a scoped session create a scoped app password with it.",
"errors": [
{
"name": "InvalidAttestation"
},
{
"name": "UntrustedIssuer"
},
{
"name": "AttestationReplayed"
},
{
"name": "InvalidHandle"
},
{
"name": "HandleNotAvailable"
},
{
"name": "InvalidEmail"
},
{
"name": "EmailNotAvailable"
},
{
"name": "InvalidPassword"
},
{
"name": "HandleGenerationFailed"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"email": {
"type": "string"
},
"handle": {
"format": "handle",
"type": "string"
},
"password": {
"type": "string"
},
"recoveryKey": {
"description": "DID PLC rotation key to include in the creation operation.",
"type": "string"
}
},
"required": [
"password"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"accessJwt": {
"type": "string"
},
"did": {
"format": "did",
"type": "string"
},
"didDoc": {
"type": "unknown"
},
"email": {
"type": "string"
},
"emailPlaceholder": {
"type": "boolean"
},
"handle": {
"format": "handle",
"type": "string"
},
"refreshJwt": {
"type": "string"
}
},
"required": [
"accessJwt",
"refreshJwt",
"handle",
"did",
"email",
"emailPlaceholder"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "ai.newnal.pdn.server.createAttestedAccount",
"lexicon": 1
}