If the Developer Portal expires, the API Key you use to authenticate any requests you're carrying out on your Portal will be invalid.
Instead, we recommend using Developer Portals to test out functionality and build out processes before changing the authentication to work with a live portal. Either this, or you can develop an App via your Developer Portal that will allow you to install this as an integration that will provide you with the means of authenticating via OAuth instead of using a HAPIKey. Here's some resources that may help:
local.ERROR: Client error: `POST https://api.hubapi.com/oauth/v1/token` resulted in a `400 Bad Request` response: {"status":"MISMATCH_CLIENT_ID_AUTH_CODE","message":"auth code not issued to this client","correlationId":"0253668b-34be- (truncated...)
{ "status": "MISMATCH_CLIENT_ID_AUTH_CODE", "message": "auth code not issued to this client", "correlationId": "e5ed219c-7231-428d-a0c0-7be8609b8818", "requestId": "e74b906db3d913b07d6320aa99415246" }
Is there any way to test api for the particular sub-account on the developer account?
Now we need to set up a new account to check if api is working correctly and there is only 90 days free. We need a permanent access to the developer account in the case of any issues arising. Any advise please?
I can confirm that you are able to test these sub-accounts or rather Test Portals out when integrating Apps from your Developer Portal.
It appears as though this may have been encountered as you attempted to use the incorrect details for the portal you were testing.
Would you be able to re-attempt the integration process again for your Test Portal ensuring the Client ID and Secret you're using for your integration match the correct App you're attempting to integrate.