Unable to import via API link

Hi,

We have a collection that is shared via API link. It’s been working as expected for quite some time now, but recently, whenever someone tries to import the collection with the API link, it fails with the error “Error while fetching data from link”

Using Postman version v11.57.1.

Hi @spaceflight-physici2. Welcome to the Postman Community :postman:.

If you send a GET request to this link or paste in a browser, do you get the collection back in JSON?

Thanks. :slight_smile:

If I send a GET request / paste into my browser, it returns “forbiddenError” , “You are not permitted to perform the action.”

@spaceflight-physici2 This could mean that the API key is no longer valid or has been revoked.

Can you try to generate a new API key and use that?

Thanks, that’s worked. :slight_smile:

I noticed that for Postman API keys, you can change the length of time before they expire, or even set them to never expire; are you also able to do this for collection keys, or are they always set to expire after sixty days of inactivity?