place.wisp.v2.secret.rotate

Rotate a webhook signing secret to a newly generated token, or to a caller-supplied one. The old token stops working immediately. The new token is only returned in this response.

Repository @wisp.place did:plc:7puq73yz2hkvbcpdhnsze2qw not from the namespace authority
Details · procedure
Kindprocedure
Authoritysecret.v2.wisp.place
Indexed

Showing version bafyreigebya7nf5j4f6ycu5ciy5taj3g6wiacpcq6tnk5oloet7td3jzra. Show the latest

cid bafyreigebya7nf5j4f6ycu5ciy5taj3g6wiacpcq6tnk5oloet7td3jzra

Checks

Valid
  • unlimited-string defs.main.output.schema.properties.nameNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.output.schema.properties.tokenNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Rotate a webhook signing secret to a newly generated token, or to a caller-supplied one. The old token stops working immediately. The new token is only returned in this response.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "name": {
              "description": "1–64 character server-managed secret ID. Use ASCII letters, digits, dots, underscores, and hyphens only.",
              "format": "record-key",
              "maxLength": 64,
              "type": "string"
            },
            "token": {
              "description": "Optional caller-supplied signing token: 32–256 printable ASCII characters, no whitespace. Omit it to have the server generate one.",
              "maxLength": 256,
              "minLength": 32,
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "name": {
              "type": "string"
            },
            "rotatedAt": {
              "format": "datetime",
              "type": "string"
            },
            "token": {
              "description": "The new signing token. Only returned here — store it now.",
              "type": "string"
            }
          },
          "required": [
            "name",
            "token",
            "rotatedAt"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "place.wisp.v2.secret.rotate",
  "lexicon": 1
}