Rotate a project's signing key
Changed onRotates the project's signing key and returns the project with the new signing_key.
The previous key may take about 1–2 minutes to stop working. As with create, the signing_key is only returned on this response and cannot be retrieved afterward.
Use it when the project's webhook-signing credential has been exposed or is due for rotation; this is separate from creating or revoking REST API tokens.
Permissions
With a project API token, the token must have the following scope(s) enabled to make a successful request: Management.
With a Personal access token there are no scopes. The token holder must be an owner or admin of the space, and the request reaches only the projects the holder is enabled for, plus their subprojects.
Learn more about API scopes.
Request
- Base URLhttps://{Your_Space_Name}.signalwire.com
- URLhttps://{Your_Space_Name}.signalwire.com/api/projects/{id}/signing-key/rotate
- Auth
- HTTP basic
- or HTTP basic
Path parameters
Universal Unique Identifier.
The unique identifier of the project or subproject.
Response
The request has succeeded.
Example response
{
"name": "Acme Staging",
"subproject": true,
"region_preference": "us-west",
"force_https_requests": true,
"created_at": "2024-05-06T12:20:00Z",
"updated_at": "2024-05-06T12:20:00Z",
"signing_key": "PSK_4d8c2b1a9f3e7c6d5b4a3e2f1d0c9b8a"
}Changes
- info
the endpoint scheme security
SignalWireBasicAuthwas added to the API - info
the endpoint scheme security
SignalWirePersonalAccessTokenAuthwas added to the API
- info
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
Some revisions have not been checked yet.