Regenerate API keys
curl --request POST \
--url https://dev.api.withconvexity.com/v1/projects/api-keys/regenerate \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.api.withconvexity.com/v1/projects/api-keys/regenerate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.api.withconvexity.com/v1/projects/api-keys/regenerate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": true,
"message": "A new API key pair has been generated and sent to your registered business email."
}{
"status": false,
"message": "Token is missing project or business context"
}Projects
Regenerate API keys
Generates a fresh API key pair for the calling project and immediately invalidates the old one. For security the new key is not returned in the response; it is emailed to the business’s registered address. Requires a token carrying project + business context.
POST
/
v1
/
projects
/
api-keys
/
regenerate
Regenerate API keys
curl --request POST \
--url https://dev.api.withconvexity.com/v1/projects/api-keys/regenerate \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.api.withconvexity.com/v1/projects/api-keys/regenerate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.api.withconvexity.com/v1/projects/api-keys/regenerate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": true,
"message": "A new API key pair has been generated and sent to your registered business email."
}{
"status": false,
"message": "Token is missing project or business context"
}Authorizations
OAuth 2.0 access token from Auth-Edge.
Response
Created
The response is of type object.
