pub.techne.draft.identity.revokeLinkToken

Revoke one of the caller's links: it no longer redeems. A redemption the identity PDS took before the revoke still gets its grant. One call spends one of the caller's writes.

Details · procedure
Kindprocedure
Authorityidentity.draft.techne.pub
Commit rev3n3iob5smyg2u
Indexed
cid bafyreiftzj4vngqch36v4mepia6ck2s3whxdejuqvhrje72qdjdplttfyq

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Revoke one of the caller's links: it no longer redeems. A redemption the identity PDS took before the revoke still gets its grant. 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": {
            "id": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "id"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "revoked": {
              "description": "True when the caller had an unrevoked link with this id (spent or expired included) and this call revoked it; false when the caller has no link with this id or it was already revoked.",
              "type": "boolean"
            }
          },
          "required": [
            "revoked"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "pub.techne.draft.identity.revokeLinkToken",
  "lexicon": 1
}