# PKI API Endpoint Change - Compatibility Issue wi...
# infisical-help
t
# PKI API Endpoint Change - Compatibility Issue with CA ID vs CA Name Hi team, We're experiencing a compatibility issue with the Infisical PKI API that's impacting our current implementation. ## Current Situation: We've been using the following endpoint to fetch CA information:
Copy code
GET https://eu.infisical.com/api/v1/pki/ca/{caId}
## Issue: This endpoint has been deprecated and replaced with:
Copy code
GET https://eu.infisical.com/api/v1/pki/ca/internal/{caName}?projectId={projectId}
The problem is that our entire system is built around
caId
as the primary identifier, but the new endpoint requires
caName
instead. This creates a compatibility issue. ## Current Workarounds (both suboptimal): 1. List all CAs and iterate through them to find the matching
caId
2. Store both
caName
and
caId
for each CA in our system ## Request: Could you please advise on: - Whether there's a better solution we're missing? - If there are plans to maintain
caId
compatibility in the new endpoint? - What the recommended migration path is for systems currently using
caId
? This change is blocking our current workflow, so any guidance would be greatly appreciated. Thanks! Thomas
s
Hey @Thomas N.! These ID based endpoints will remain to be a part of the platform. We will not be removing them, rather we have marked them as deprecated so that future use-cases will be through the new caName-based endpoints instead. Are you encountering issues with using the old ID-based endpoints?
We do plan to roll out a search endpoint for the internal CA resource so that you can fetch CAs that match your desired filters which would include caId. Will this help?
t
Hi Sheen, no there are no problems with the ID "deprecated" endpoints - just the feeling that the might be removed sooner or later. A search endpoint, or an optional query param on listCa endpoint would work too. I just want to make sure not using an endpoint that will be sooner or later removed - so I'm fine with your answer. thank you!