---
title: "How to Connect Quepid to Elastic Cloud"
url: "https://quepid-docs.dev.o19s.com/2/quepid/49/how-to-connect-quepid-to-elastic-cloud"
---

## Prerequisites
1. You have an active Elastic Cloud account
2. You have a deployment with a searchable index

This how to describes the three necessary processes to connect Quepid to your Elastic Cloud deployments:

1. Configure Elastic Cloud deployment to accept browser requests from Quepid
2. Create an API Key in Elastic Cloud
3. Connect Quepid to Elastic Cloud with the appropriate settings
## Configure your Elastic Cloud deployment to accept browser requests from Quepid

1. Log into your Elastic Cloud account at https://cloud.elastic.co/home.
2. Select **Manage** next to the Deployment you want to connect Quepid to.
  ![select_EC_deployment.png](https://quepid-docs.dev.o19s.com/u/select_ec_deployment-8rfbC4.png) 
3. Under your deployment name select **Edit**.
    ![edit_EC_deployment.png](https://quepid-docs.dev.o19s.com/u/edit_ec_deployment-Tho8VC.png) 
4. Select **Manage user settings and extensions**.
    ![manage_EC_deployment_settings.png](https://quepid-docs.dev.o19s.com/u/manage_ec_deployment_settings-0FCehV.png) 
5. Enable and configure CORS with the following settings when connecting to the public Quepid service running at https://app.quepid.com. Change `allow-origin` accordingly when running Quepid on `localhost` or any other host.
  ```
http.cors:
  enabled: true
  allow-origin: /https?:\/\/go\.quepidapp\.com/
  allow-credentials: true
  allow-headers: "X-Requested-With, Content-Type, Content-Length, if-modified-since, Authorization" 
  ```
   6. Select **Back** and scroll down to the bottom of the page to confirm and save the changes by selecting **Save**.
   7. This triggers a restart of your deployment. Wait until the restart finishes.
## Create an API Key in Elastic Cloud
To authenticate requests to the Elastic Cloud deployment follow these steps:
1. If not logged in, log into your Elastic Cloud account at https://cloud.elastic.co/home.
2. Select **Open** next to the Deployment you want to connect Quepid to.
    ![open_EC_deployment.png](https://quepid-docs.dev.o19s.com/u/open_ec_deployment-SVrRIp.png) 
3. Select the **+ New** button.
    ![create_EC_deployment_API_key.png](https://quepid-docs.dev.o19s.com/u/create_ec_deployment_api_key-9plJV1.png) 
4. Choose a descriptive name (for example **Quepid**) and choose the settings appropriate to your desired security guidelines or requirements.
5. Create the API Key by selecting **Create API Key**.
6. Your created API should look similar to the following JSON snippet:
  ```
  { 
	"id": "zbeFaZQBMjrfbP-YfIZh",
    "name": "Quepid",
    "expiration": 1737023543405,
    "api_key": "4dMPumSqTdiTzREUXYQDTA",
    "encoded": "emJlRmFaUUJNanJmYlAtWWZJWmg6NGRNUHVtU3FUZGlUelJFVVhZUURUQQ==",
    "beats_logstash_format": "zbeFaZQBMjrfbP-YfIZh:4dMPumSqTdiTzREUXYQDTA"
  }
  ```
7. Store your API key in a safe place, for example your company password safe with appropriate access settings.
## Connect Quepid to Elastic Cloud with the appropriate settings
We now create a new case and connect it to the deployment with the created API Key.
1. Log into Quepid.
2. Create by selecting **Relevancy Cases** and **+ Create a case**.
3. Name your case, for example *TMBD on Elastic Cloud*.
4. Select **Create a new Search Endpoint** with the following settings:
	1. Choose Elasticsearch and enter your Elasticsearch endpoint including the index name and `_search`. (Note: You find your Elasticsearch endpoint when logging into your Elastic Cloud and selecting **Open** for the deployment you want to connect to.)
	2. Select **Advanced** and choose **API Key** in the dropdown for **Custom Headers**.
	3. Substitute *XXX* in the generated JSON for the custom header by the API Key you generated. You find the API Key under `encoded`.
	    ![search_endpoint_configuration.png](https://quepid-docs.dev.o19s.com/u/search_endpoint_configuration-OGSuFu.png) 
5. Click **ping it** below the endpoint input field.
6. A successful configuration is confirmed with the output *Quepid can search this! Hit 'Continue' to keep working through setup.*
   Revisit the configuration to make sure you have all settings correct if you don't receive the success message.
7. Continue with the case setup and set the display fields and add the queries you want to have in your case.
8. Done!
