POST /accounts/{account_id}/magic/ipsec_tunnels/psk
Sets Pre-Shared Keys for multiple IPsec tunnels associated with an account. Use ?validate_only=true as an optional query parameter to only run validation without persisting changes. After PSKs are applied, they are immediately persisted to Cloudflare's edge and cannot be retrieved later. Store the PSKs in a safe place.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id |
String | Yes |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
validate_only |
Boolean | No |
If |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
psks[] |
Array | Yes |
List of tunnel ID and PSK pairs. |
psks[].id |
String | Yes |
The ID of the IPsec tunnel. |
psks[].psk |
String | Yes |
A randomly generated or provided string for use in the IPsec tunnel. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.