API permission error

Till 15 March 2023, My API was working to create contacts, But now its giving error

This hapikey (xyz) does not have proper permissions! (requires all of [contacts-read])

Hey, @chandan988. Without seeing the scopes and other additional info, it’s likely the community cannot offer a guess to root causes. Can you add any additional context to your post?

Best,

Jaycee

From which section we can give scoper permission in Hubspot for API to read & write

In-App permission is already given, but API is still giving error

Hi @chandan988 , The hapikey was sunsetted by HubSpot and is no longer a supported authentication method: Upcoming: API Key Sunset

You will need to switch to using OAuth and a Private App instead.

Hope that helps.