Reset Terminal API Key
Resets the payments API key for an existing terminal and returns the updated terminal record with the new terminal API key.
Use this endpoint when you need to rotate a terminal credential, replace a suspected exposed key, or issue a fresh key for backend payment requests.
Endpoint
POST https://api.test.devs.beadpay.io/Terminals/{id}/api-keys
Authentication
Use your admin API key in the request header for terminal management operations.
Request headers
X-Api-Key
{adminApiKey}
Accept
application/json
Path parameter
id
string
Terminal identifier returned by Create Terminal, List Terminals, or Get Terminal.
Request body
This endpoint does not require a request body.
Example request
Example response
What to do after reset
After resetting the key:
Store the new
apiKey.secretsecurely.Update any backend service, secret manager, or environment configuration that uses the prior terminal payments API key.
Use the new terminal payments API key in the
X-Api-Keyheader for future Payments API requests.Do not use
apiKey.maskedSecretfor authentication.
Payments authentication is header-based and uses the full terminal API key. The masked value is display-only.
Field notes
id
Terminal identifier.
apiKey.secret
New terminal payments API key. Store securely and use for Payments API calls.
apiKey.maskedSecret
Masked display value only. Not valid for authentication.
updated
UTC ISO-8601 timestamp reflecting the terminal update after key rotation.
Notes
Use your admin API key for this terminal-management operation.
Use the returned terminal payments API key for payment activity performed by that terminal.
Treat
apiKey.secretlike a password and avoid logging or exposing it in client-side code.This endpoint is intended for credential rotation and operational maintenance.
Response codes
200
Terminal API key reset successfully.
201
Terminal API key reset successfully and returned as a created response.
202
Reset accepted for processing.
400
The request was invalid.
401
The admin API key is missing or invalid.
403
The caller is authenticated but not permitted to reset the terminal API key.
409
A conflicting terminal state prevented key reset.
Related operations
Last updated