Revoke APIKey
🧠 Overview
The revokeApiKey Mutation allows you to securely revoke your current API key and receive a new one. This is useful when you suspect your current key is compromised or want to rotate credentials periodically.
🔗 Endpoint
URL: https://argonpay.onrender.com/graphql
Method: POST
Content-Type: application/json
🧾 Mutation Structure
graphqlCopyEditmutation RevokeApiKey($apiKey: String!, $password: String!) {
revokeApiKey(apiKey: $apiKey, password: $password) {
code
message
newApiKey
}
}📥 Required Parameters
Name
Type
Description
apiKey
String
Your existing API key
password
String
Password used during key registration
✅ Response Format
🚫 Error Codes
Code
Description
200
Success: New API key generated
401
Unauthorized: Incorrect password
404
Invalid API key or key expired
500
Server error during revocation process
🧪 Code Examples
Python Example
JavaScript Example
Last updated