Delete key pair
Removes a key pair for the principal by sending its public key in the JSON body. On success: 204 No Content, empty body.
DELETE
{{host}}/v1/keypair?principal={{principal}}VERB:DELETE
BASE URL:{{host}}/v1/keypair
QUERY STRING:?principal={{principal}}
- principalstringRequired
Principal whose cryptographic key pairs are managed.
example: root
Send these headers with the request. Names are case-insensitive per HTTP rules.
- x-api-keyRequired
Your BigState API key.
*provide api key here* - Content-TypeRequired
MIME type of the request body.
application/json - AcceptRequired
MIME types the client can understand in the response.
application/json
See authentication headers here.
- Delete by public key{"publicKey": "{{publicKey}}"}
- publicKeystringRequired
Public key (hex) identifying the key pair to remove.
- 204Response body · no content
The key pair was deleted.
- 401
Unauthorized.
- 403
Access denied. The caller does not have sufficient rights to perform this operation.
- 404
No key pair exists for the given public key under this principal.
- 400Response body · object
Bad request.
{"error": 6,"desc": "Invalid request"}- errornumber
Numeric error code. See the error codes reference for the full list.
- descstring
Human-readable description of the error.
Delete key pair
Remove a key pair by public key for the given principal. Success: 204, no body.
curl https://api.bigstate.dev/v1/keypair?principal=root \
--request DELETE \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"publicKey": "{{publicKey}}"
}'