diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx index ceda2db2300..e4255e80022 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/Endpoints.jsx @@ -471,7 +471,7 @@ function Endpoints(props) { } } } else if (production.type === 'apikey') { - if (production.apiKeyValue === null) { + if (production.apiKeyValue === null && endpointConfig.production_endpoints) { return { isValid: false, message: intl.formatMessage({ @@ -525,7 +525,7 @@ function Endpoints(props) { } } } else if (sandbox.type === 'apikey') { - if (sandbox.apiKeyValue === null) { + if (sandbox.apiKeyValue === null && endpointConfig.sandbox_endpoints) { return { isValid: false, message: intl.formatMessage({