Atlas https://cloud.mongodb.com/api/atlas/v1.0/groups

Hi,

I created an API key for my organization and added it to my project. When I try to get the atlas searches for a specific collection I get Unauthorized

https://cloud.mongodb.com/api/atlas/v1.0/groups//clusters//fts/indexes/>/businesspartner?apikey=

What did i forget?

Thanks

Hi @Ad_Kerremans1 - Welcome to the community.

I created an API key for my organization and added it to my project. When I try to get the atlas searches for a specific collection I get Unauthorized

Did you create an Atlas Administration API or an Atlas Data API? You’ll need to create an Atlas Data API to perform the $search query for your request.

Please see an example of a $search query performed using the Data API here.

Note: If the “search” you mentioned is just general queries, the Data API key would still be required :slight_smile:

Regards,
Jason

Hi @Jason_Tran ,

I already found the solution. The authorization was not correct.
Regards
Ad

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.