# place.wisp.v2.secret.rotate

> Published by [wisp.place](https://lexicon.garden/identity/did:plc:7puq73yz2hkvbcpdhnsze2qw)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.secret.rotate)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.secret.rotate/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.secret.rotate/examples)

## Definitions

### `place.wisp.v2.secret.rotate`

**Type**: `procedure`

Rotate a webhook signing secret, generating a new token. The old token stops working immediately. The new token is only returned in this response.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` (record-key) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `token` | `string` | Yes | The new signing token. Only returned here — store it now. |
| `rotatedAt` | `string` (datetime) | Yes |  |

#### Errors

- **AuthenticationRequired**
- **NotFound**

## Raw Schema

```json
{
  "id": "place.wisp.v2.secret.rotate",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "name"
          ],
          "properties": {
            "name": {
              "type": "string",
              "format": "record-key"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "name",
            "token",
            "rotatedAt"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "token": {
              "type": "string",
              "description": "The new signing token. Only returned here — store it now."
            },
            "rotatedAt": {
              "type": "string",
              "format": "datetime"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Rotate a webhook signing secret, generating a new token. The old token stops working immediately. The new token is only returned in this response."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
