Gravatar for jasonabuck@gmail.com

Question by Jason Buck, Jan 21, 2016 12:25 PM

How to expose my cloud.coveo.com sources without the user having to login

Is there an example of how to expose my cloud.coveo.com sources without the user having to login. I want to embed search in my website, but can only do it if the user logs into Coveo Cloud.

1 Reply
Gravatar for mlaporte@coveo.com

Answer by Martin Laporte, Jan 22, 2016 9:39 AM

What you're looking for is an API key. For some reason this feature is disabled by default for Cloud orgs, but you can have it enabled by requesting it to support. Once this is done, in the Cloud Admin you'll have an additional panel where you'll be able to create API keys that are allowed to query the content. You can then hard code this key in your search page (be very very careful to only grant the right to execute queries to the token though, since it'll essentially become public).

Ask a question