# GET /api/v2/actions/actions returns 500 Internal Server Error — broken Action Module FK references after deploy-cli import

**URL:** <https://community.auth0.com/t/get-api-v2-actions-actions-returns-500-internal-server-error-broken-action-module-fk-references-after-deploy-cli-import/200647>\
**Category:** Get Help\
**Tags:** actions-management-api, support-center\
**Created:** [June 8, 2026, 3:33pm UTC](https://community.auth0.com/t/get-api-v2-actions-actions-returns-500-internal-server-error-broken-action-module-fk-references-after-deploy-cli-import/200647 "2026-06-08T15:33:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![h-furukawa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/h-furukawa/32/60600_2.png) [@h-furukawa](https://community.auth0.com/u/h-furukawa)\
**Post date:** [June 8, 2026, 3:33pm UTC](https://community.auth0.com/t/get-api-v2-actions-actions-returns-500-internal-server-error-broken-action-module-fk-references-after-deploy-cli-import/200647/1 "2026-06-08T15:33:09Z")

</div>

Hi,

After running auth0-deploy-cli import, the GET /api/v2/actions/actions  
endpoint consistently returns 500 Internal Server Error.

(I will share tenant details and specific resource names/IDs via DM.)

**Root cause (investigated):**  
Several actions have stale references to an Action Module that was  
deleted during the import process. The deleted module’s FK reference  
remains in the actions’ database records, causing a JOIN failure on  
the list endpoint.

**Evidence:**

- GET /api/v2/actions/actions → 500
- GET /api/v2/actions/actions?deployed=true → 200 (works for deployed actions only)
- GET /api/v2/actions/actions?deployed=false → 500
- POST /api/v2/actions/actions with an existing action name → 409 Conflict  
(actions still exist in DB but cannot be retrieved or updated via API)
- GET /api/v2/actions/modules → 200, empty list (module was deleted)

**What I need:**  
Please clear the `modules` field for the affected actions so the  
GET /api/v2/actions/actions endpoint recovers.  
Or alternatively, provide the action IDs so I can PATCH them myself  
via the Management API.

Thank you.

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [June 8, 2026, 5:20pm UTC](https://community.auth0.com/t/get-api-v2-actions-actions-returns-500-internal-server-error-broken-action-module-fk-references-after-deploy-cli-import/200647/3 "2026-06-08T17:20:17Z")

</div>

Hi @h-furukawa

Welcome to the Auth0 Community!

I understand that you are receiving 500 errors when calling the GET /api/v2/actions/actions endpoint after importing Actions using auth0-deploy-cli.

### Official Recommendation

Please send a DM ( Direct Message ) to [@support](https://community.auth0.com/groups/support) forwarding all the information provided and confirming the **email address** of your Auth0 account and the **name of the tenant** where you are encountering this issue. The DM creates a private conversation where more sensitive details can safely be shared with us for troubleshooting. We will be able to submit a Support case on your behalf to further look into the root cause of this issue.

Looking forward to your DM!

Best regards,  
Gerald

---

<div class="post-metadata">

**Author:** ![h-furukawa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/h-furukawa/32/60600_2.png) [@h-furukawa](https://community.auth0.com/u/h-furukawa)\
**Post date:** [June 9, 2026, 2:47am UTC](https://community.auth0.com/t/get-api-v2-actions-actions-returns-500-internal-server-error-broken-action-module-fk-references-after-deploy-cli-import/200647/4 "2026-06-09T02:47:23Z")

</div>

Hi @gerald.czifra ,

This morning, I received an email listing the Actions that were causing the issue.

I applied the necessary fixes and was able to successfully retrieve the list of Actions from both the Management API and the Dashboard.

Thank you for your support.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 29, 2026, 8:34pm UTC](https://community.auth0.com/t/get-api-v2-actions-actions-returns-500-internal-server-error-broken-action-module-fk-references-after-deploy-cli-import/200647/5 "2026-06-29T20:34:45Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
