For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Header
Value

X-Api-Key

{adminApiKey}

Accept

application/json

Path parameter

Name
Type
Description

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:

  1. Store the new apiKey.secret securely.

  2. Update any backend service, secret manager, or environment configuration that uses the prior terminal payments API key.

  3. Use the new terminal payments API key in the X-Api-Key header for future Payments API requests.

  4. Do not use apiKey.maskedSecret for authentication.

Payments authentication is header-based and uses the full terminal API key. The masked value is display-only.

Field notes

Field
Description

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.secret like a password and avoid logging or exposing it in client-side code.

  • This endpoint is intended for credential rotation and operational maintenance.

Response codes

Code
Meaning

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.

Last updated