curl -X POST \
-H "X-API-Key: $PARTICLE_API_KEY" \
"https://api.particle.pro/v1/projects/{projectId}/webhooks/connections/{id}/secret/rotate"{
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"project_id": "<string>",
"secret": "<string>",
"secret_prefix": "<string>",
"surface": "PLATFORM",
"url": "<string>",
"created_by": {
"id": "<string>",
"name": "<string>"
},
"name": "<string>",
"revoked_at": "2023-11-07T05:31:56Z"
}{
"detail": "Property foo is required but is missing.",
"error_code": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"resolve": {
"message": "<string>",
"action": "<string>",
"endpoint": "<string>",
"method": "<string>",
"url": "<string>"
},
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Rotate a webhook connection's signing secret
Generates a new signing secret for the connection and returns it once. The previous secret stops validating immediately, so update the receiver before rotating in production.
curl -X POST \
-H "X-API-Key: $PARTICLE_API_KEY" \
"https://api.particle.pro/v1/projects/{projectId}/webhooks/connections/{id}/secret/rotate"{
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"project_id": "<string>",
"secret": "<string>",
"secret_prefix": "<string>",
"surface": "PLATFORM",
"url": "<string>",
"created_by": {
"id": "<string>",
"name": "<string>"
},
"name": "<string>",
"revoked_at": "2023-11-07T05:31:56Z"
}{
"detail": "Property foo is required but is missing.",
"error_code": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"resolve": {
"message": "<string>",
"action": "<string>",
"endpoint": "<string>",
"method": "<string>",
"url": "<string>"
},
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
Pass your API key in the X-API-Key header (recommended).
Path Parameters
Project ID (base62-encoded).
Webhook connection ID (base62-encoded).
Response
OK
Signing secret — shown only at create/rotate time. Store it securely; it cannot be retrieved again. Used to verify the X-Webhook-Signature header on delivered payloads.
Masked signing-secret prefix for identification. The full secret is shown only at create/rotate time and cannot be retrieved afterward.
Which Particle surface created this connection. Fixed at create time and inferred from the caller's authenticated surface context. Provenance only — an alert on either surface can deliver through it. Render it to show where the endpoint was registered.
PLATFORM, RADAR Destination URL that signed POSTs are delivered to.
User who created the connection. Null when created via an API key.
Show child attributes
Show child attributes
Optional human label for the connection.
Set when the connection was deleted/revoked; absent for active connections. A revoked connection stops delivering and is skipped by alerts that still reference it.
Was this page helpful?