Best Practice: Always check code availability before attempting to create a link with a custom code. This prevents CODE_ALREADY_EXISTS errors during link creation.
Use this endpoint in your workflow:
Check if your desired code is available
If available, proceed with link creation
If not available, try a different code or let the system generate one automatically