Rotate the MCP key
curl --request POST \
--url https://aquila.attaxr.com/api/mcp-key/rotate \
--cookie better-auth.session_token=const options = {method: 'POST', headers: {cookie: 'better-auth.session_token='}};
fetch('https://aquila.attaxr.com/api/mcp-key/rotate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/mcp-key/rotate"
headers = {"cookie": "better-auth.session_token="}
response = requests.post(url, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}MCP Key
Rotate the MCP key
Returns the new token once. The old key stops authenticating immediately.
POST
/
api
/
mcp-key
/
rotate
Rotate the MCP key
curl --request POST \
--url https://aquila.attaxr.com/api/mcp-key/rotate \
--cookie better-auth.session_token=const options = {method: 'POST', headers: {cookie: 'better-auth.session_token='}};
fetch('https://aquila.attaxr.com/api/mcp-key/rotate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/mcp-key/rotate"
headers = {"cookie": "better-auth.session_token="}
response = requests.post(url, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
apiKeyCookieapiKeyHeaderbearerAuth
Browser session cookie set by Better Auth sign-in.
Response
The new plaintext key.

