---
title: "Changes to Regenerate a device code"
method: POST
path: "/agents/{agentId}/device-codes"
---

# Changes to Regenerate a device code

`POST /agents/{agentId}/device-codes`

> Every recorded change to this operation, newest first.
> 117 revisions in range; 2 not diffed.

## Timeline

Changed in 15 of 117 revisions.

- **2026-11-03** `7ef4b76d04a3`: 1 warning
- **2026-10-28** `d996ddfb9d2b`: 5 info
- **2026-10-28** `5abf2bb56bcb`: 1 warning
- **2026-10-26** `f11f1e76bdd7`: 1 warning
- **2026-10-26** `0a6dad5815c7`: 1 warning
- **2026-10-24** `715332dcb111`: 1 warning
- **2026-10-20** `761d1d030cb5`: 2 warning
- **2026-10-18** `add40cac0f84`: 1 warning
- **2026-10-14** `6875d86545f1`: 1 info
- **2026-10-13** `ddcb4ec73fd0`: 1 warning
- **2026-10-09** `36ec020f29da`: 1 warning
- **2026-10-05** `6d67fe99049c`: 3 info
- **2026-10-05** `32bcbd4023e4`: 3 warning
- **2026-10-02** `dfe5a02f2fee`: 10 breaking, 61 warning, 7 info
- **2026-05-28** `d0bce562bffd`: 1 info

## Changes

- **2026-11-03** `7ef4b76d04a3`: 1 warning
  - added the new `BENEFICIARY_NOT_TRUSTED` enum value to the `code` response property for the response status `409`
- **2026-10-28** `d996ddfb9d2b`: 5 info
  - added the optional property `details/missingFields` to the response with the `400` status
  - added the optional property `details/permission` to the response with the `403` status
  - added the optional property `details/policyDenialReason` to the response with the `403` status
  - added the optional property `details/refusalReason` to the response with the `400` status
  - added the optional property `details/refusalReason` to the response with the `403` status
- **2026-10-28** `5abf2bb56bcb`: 1 warning
  - added the new `CORRIDOR_UNDER_MAINTENANCE` enum value to the `code` response property for the response status `403`
- **2026-10-26** `f11f1e76bdd7`: 1 warning
  - added the new `PURCHASE_CARD_LIMIT_REACHED` enum value to the `code` response property for the response status `409`
- **2026-10-26** `0a6dad5815c7`: 1 warning
  - added the new `INVOICE_ALREADY_USED` enum value to the `code` response property for the response status `409`
- **2026-10-24** `715332dcb111`: 1 warning
  - added the new `EXACT_AMOUNT_UNAVAILABLE` enum value to the `code` response property for the response status `400`
- **2026-10-20** `761d1d030cb5`: 2 warning
  - added the new `AGENT_CARD_EXISTS` enum value to the `code` response property for the response status `409`
  - added the new `CARDHOLDER_AGREEMENT_NOT_ACCEPTED` enum value to the `code` response property for the response status `400`
- **2026-10-18** `add40cac0f84`: 1 warning
  - added the new `DESTINATION_NOT_ALLOWED` enum value to the `code` response property for the response status `403`
- **2026-10-14** `6875d86545f1`: 1 info
  - added the non-success response with the status `403`
- **2026-10-13** `ddcb4ec73fd0`: 1 warning
  - added the new `ACCOUNTHOLDER_AGREEMENT_NOT_ACCEPTED` enum value to the `code` response property for the response status `400`
- **2026-10-09** `36ec020f29da`: 1 warning
  - added the new `PIN_CHANGE_REQUIRED` enum value to the `code` response property for the response status `409`
- **2026-10-05** `6d67fe99049c`: 3 info
  - removed the `INVALID_PAYREQ_RESPONSE` enum value from the `code` response property for the response status `400`
  - removed the `LOOKUP_REQUEST_FAILED` enum value from the `code` response property for the response status `400`
  - removed the `QUOTE_REQUEST_FAILED` enum value from the `code` response property for the response status `400`
- **2026-10-05** `32bcbd4023e4`: 3 warning
  - added the new `AUTH_CREDENTIAL_VERIFICATION_EXPIRED` enum value to the `code` response property for the response status `400`
  - added the new `AUTH_CREDENTIAL_VERIFICATION_REQUIRED` enum value to the `code` response property for the response status `400`
  - added the new `OPERATION_IN_PROGRESS` enum value to the `code` response property for the response status `409`
- **2026-10-02** `dfe5a02f2fee`: 10 breaking, 61 warning, 7 info
  - removed the required property `message` from the response with the `400` status
  - removed the required property `message` from the response with the `401` status
  - removed the required property `message` from the response with the `404` status
  - removed the required property `message` from the response with the `409` status
  - removed the required property `message` from the response with the `500` status
  - removed the required property `status` from the response with the `400` status
  - removed the required property `status` from the response with the `401` status
  - removed the required property `status` from the response with the `404` status
  - removed the required property `status` from the response with the `409` status
  - removed the required property `status` from the response with the `500` status
  - added the new `ACCOUNT_NOT_FOUND` enum value to the `code` response property for the response status `404`
  - added the new `AUTH_METHOD_NOT_FOUND` enum value to the `code` response property for the response status `404`
  - added the new `BANK_ACCOUNT_VALIDATION_PENDING` enum value to the `code` response property for the response status `409`
  - added the new `BENEFICIARY_TRUSTED` enum value to the `code` response property for the response status `409`
  - added the new `CARDHOLDER_KYC_NOT_APPROVED` enum value to the `code` response property for the response status `400`
  - added the new `CARD_ALREADY_CLOSED` enum value to the `code` response property for the response status `409`
  - added the new `CARD_LIMIT_REACHED` enum value to the `code` response property for the response status `409`
  - added the new `CARD_NOT_MUTABLE` enum value to the `code` response property for the response status `409`
  - added the new `CUSTOMER_NOT_FOUND` enum value to the `code` response property for the response status `404`
  - added the new `DOCUMENTS_REQUIRED` enum value to the `code` response property for the response status `400`
  - added the new `DOCUMENT_ALREADY_EXISTS` enum value to the `code` response property for the response status `409`
  - added the new `DOCUMENT_HOLDER_NOT_FOUND` enum value to the `code` response property for the response status `404`
  - added the new `DUPLICATE_EXTERNAL_ACCOUNT` enum value to the `code` response property for the response status `409`
  - added the new `DUPLICATE_PAY_REQUEST` enum value to the `code` response property for the response status `409`
  - added the new `END_USER_TERMS_VERSION_NOT_FOUND` enum value to the `code` response property for the response status `400`
  - added the new `EXTERNAL_ACCOUNT_VERIFICATION_REQUIRED` enum value to the `code` response property for the response status `400`
  - added the new `INSUFFICIENT_FUNDS` enum value to the `code` response property for the response status `400`
  - added the new `INVALID_STATE_TRANSITION` enum value to the `code` response property for the response status `409`
  - added the new `NOT_FOUND` enum value to the `code` response property for the response status `404`
  - added the new `NOT_YET_AVAILABLE` enum value to the `code` response property for the response status `409`
  - added the new `PASSKEY_ALREADY_ENROLLED` enum value to the `code` response property for the response status `409`
  - added the new `PAYMENT_DOCUMENT_ALREADY_USED` enum value to the `code` response property for the response status `409`
  - added the new `PAYMENT_DOCUMENT_NOT_FOUND` enum value to the `code` response property for the response status `404`
  - added the new `PAYMENT_URL_NOT_FOUND` enum value to the `code` response property for the response status `404`
  - added the new `PLATFORM_NOT_FOUND` enum value to the `code` response property for the response status `404`
  - added the new `QUOTE_EXPIRED` enum value to the `code` response property for the response status `400`
  - added the new `QUOTE_RATE_UNAVAILABLE` enum value to the `code` response property for the response status `400`
  - added the new `REQUEST_NOT_FOUND` enum value to the `code` response property for the response status `404`
  - added the new `SCA_SESSION_REQUIRED` enum value to the `code` response property for the response status `409`
  - added the new `SESSION_NOT_FOUND` enum value to the `code` response property for the response status `404`
  - …38 more
- **2026-05-28** `d0bce562bffd`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/lightsparkdev/apis/grid-api/docs/agents/:agentId/device-codes/post.md) - [API](https://skmtc.dev/lightsparkdev/apis/grid-api.md) - [Page](https://skmtc.dev/lightsparkdev/apis/grid-api/changes/agents/:agentId/device-codes/post)
