API Keys
Rotate API Key
Revokes the existing key and creates a replacement key with updated settings.
veriworkly-auth.session_token<token>
Internal session cookie for local development.
In: cookie
Path Parameters
id*string
The ID of the API key to rotate.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.veriworkly.com/api/v1/api-keys/string/rotate" \ -H "Content-Type: application/json" \ -d '{}'{
"success": true,
"message": "string",
"data": {
"id": "string",
"key": "vw_a1b2c3...x9y0z1",
"name": "string",
"isActive": true,
"rateLimit": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"lastUsed": "2019-08-24T14:15:22Z"
}
}{
"success": true,
"message": "string",
"statusCode": 0,
"details": [
{
"path": "string",
"message": "string"
}
]
}{
"success": false,
"statusCode": 401,
"message": "Authentication required"
}{
"success": true,
"message": "string",
"statusCode": 0,
"details": [
{
"path": "string",
"message": "string"
}
]
}