# place.wisp.v2.secret.create

> 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.create)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.secret.create/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7puq73yz2hkvbcpdhnsze2qw/place.wisp.v2.secret.create/examples)

## Definitions

### `place.wisp.v2.secret.create`

**Type**: `procedure`

Create a named webhook signing secret. The server generates a short random token returned once in the response. Reference the secret by name via secretId in place.wisp.v2.wh.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` (record-key) | Yes | Unique name for this secret, scoped to the caller DID. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `token` | `string` | Yes | The signing token. Only returned at creation time — store it now. |
| `createdAt` | `string` (datetime) | Yes |  |

#### Errors

- **AuthenticationRequired**
- **InvalidRequest**
- **AlreadyExists**

## Raw Schema

```json
{
  "id": "place.wisp.v2.secret.create",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "name"
          ],
          "properties": {
            "name": {
              "type": "string",
              "format": "record-key",
              "description": "Unique name for this secret, scoped to the caller DID."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidRequest"
        },
        {
          "name": "AlreadyExists"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "name",
            "token",
            "createdAt"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "token": {
              "type": "string",
              "description": "The signing token. Only returned at creation time — store it now."
            },
            "createdAt": {
              "type": "string",
              "format": "datetime"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Create a named webhook signing secret. The server generates a short random token returned once in the response. Reference the secret by name via secretId in place.wisp.v2.wh."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
