# New speech signing secret

Source: https://docs.vlayers.ai/reference/hosting/rotate-speech-signing-secret

`POST /v1/connections/{id}/signing-secret` · scope `workspace:write`

Makes a new signing secret for a custom speech service and shows it once. The old one stops matching at once, so put the new one in your service before the next call.

Requires an API key with the `workspace:write` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The connection id. Example: `"0e9d8c7b-6a5f-4e3d-8c1b-0a9f8e7d6c5b"` |

## Request

cURL:

```bash
curl -X POST "https://api.vlayers.ai/v1/connections/$CONNECTION_ID/signing-secret" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { signingSecret } = await voicelayer.hosting.rotateSpeechSigningSecret('<connection-id>');
console.log(signingSecret);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.rotate_speech_signing_secret("<connection-id>")
print(result.signing_secret)
```

## Response `200`

```json
{
  "signingSecret": "vlss_0000000000000000000000000000000000000000000000"
}
```
