pub.techne.draft.identity.listLinkTokens
The caller's live links for `app` and `target`, each with its token, in no promised order. A procedure so the token never rides a URL. One call spends one of the caller's writes.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | identity.draft.techne.pub |
| Commit rev | 3n3iob5j7a62u |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "The caller's live links for `app` and `target`, each with its token, in no promised order. A procedure so the token never rides a URL. One call spends one of the caller's writes.",
"errors": [
{
"description": "HTTP 400: a field out of bounds, or a body that is not JSON; 415: not application/json; 422: not the input's shape.",
"name": "InvalidRequest"
},
{
"description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there; or the caller holds its own session (it came through its PDS with a service-auth token): call this method on its identity PDS itself.",
"name": "NotSupported"
},
{
"description": "Too many writes from this DID (HTTP 429).",
"name": "RateLimitExceeded"
},
{
"description": "HTTP 502: the identity PDS could not be reached, refused the credential the platform holds for the caller, or answered with a failure; try again.",
"name": "UpstreamFailure"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"app": {
"description": "The app the link is for, a label the caller gives itself (unverified).",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"target": {
"description": "What the link is for, as a URI with a scheme (at://, https://, did:...).",
"maxLength": 2048,
"minLength": 1,
"type": "string"
}
},
"required": [
"app",
"target"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"links": {
"items": {
"ref": "pub.techne.draft.identity.defs#linkTokenListed",
"type": "ref"
},
"type": "array"
}
},
"required": [
"links"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "pub.techne.draft.identity.listLinkTokens",
"lexicon": 1
}