cURL
curl --request POST \ --url https://getmipay.com/api/v1/action/check-api-key \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "public_apikey": "sc_1234567890abcdef" } '
{ "success": true, "data": { "api_key": { "id": 1, "key": "pk_1234567890abcdef", "status": "active", "is_active": true, "activated_at": "2023-11-07T05:31:56Z", "last_used_at": "2023-11-07T05:31:56Z", "has_been_rotated": false, "rotation_count": 0 }, "merchant": { "id": 1, "business_name": "My Business", "kyc_status": "approved", "kyc_status_label": "Approved", "status": "active", "is_active": true, "can_transact": true } } }
Check the status and validity of an API key without full authentication.
API key to check
The SECRET API key to check
"sc_1234567890abcdef"
API key status retrieved successfully
true
Show child attributes