Answers.Body: <h2>Host URL</h2>
  
  <p>Depending on the <em>context</em> of your situation, this is <em>probably</em> referring to the domain name of the site where you use CiviCRM. So if you see <code>https://example.org/civicrm</code> when using CiviCRM, then the host URL is <code>example.org</code></p>
  
  <h2>Site key</h2>
  
  <p>This is one value, used globally for your CiviCRM installation and stored in the <code>civicrm.settings.php</code> file on your server. (The location of this file will differ depending on what CMS you use.)</p>
  
  <p>Within the file, you'll find a section like this:</p>
  
  <pre><code>if (!defined('CIVICRM_SITE_KEY')) {
    define( 'CIVICRM_SITE_KEY', 'J8UdnKcpN93x0mvv');
  }
  </code></pre>
  
  <p>So here, your site key would be <code>J8UdnKcpN93x0mvv</code>.</p>
  
  <h2>API key</h2>
  
  <p>API keys are unique to CiviCRM <em>contacts</em>. You'll need to <a href="https://docs.civicrm.org/dev/en/latest/api/interfaces/#keys" rel="noreferrer">create an API key for a contact</a> if you want to use the API through the REST interface.</p>
  
  <p>If you are setting up an external service to connect to your CiviCRM installation, it's probably worth <em>creating a new contact record</em> specifically for this service to interact with your site. Then you can grant specific permissions to this user just like you would do for a real person. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-25T23:34:49.697Z
Answers.LastActivityDate: 2017-09-25T23:34:49.697Z
Answers.UserDisplayName: Sean
Body: <p>I need to find the following details for my CiviCRM account: </p>
  
  <ul>
  <li>Host URL,  </li>
  <li>Site key and  </li>
  <li>API key. </li>
  </ul>
  
  <p>Where can I find them? </p>
  
  <p>Thanks so much,
  Silvia</p>
  
Tags: <api>
Title: I need to find the Host URL, Site key and API key
ThreadText: # I need to find the Host URL, Site key and API key
  
  (Asked by: username_0 on 2017-09-25)
  
  I need to find the following details for my CiviCRM account:
  
  * Host URL,
  * Site key and
  * API key.
  
  Where can I find them?
  
  Thanks so much,
  username_0
  
  **Tags:** api
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-09-25. Score: 7
  
  ## Host URL
  
  Depending on the *context* of your situation, this is *probably* referring to the domain name of the site where you use CiviCRM. So if you see `https://example.org/civicrm` when using CiviCRM, then the host URL is `example.org`
  
  ## Site key
  
  This is one value, used globally for your CiviCRM installation and stored in the `civicrm.settings.php` file on your server. (The location of this file will differ depending on what CMS you use.)
  
  Within the file, you'll find a section like this:
  
  ```
  if (!defined('CIVICRM_SITE_KEY')) {
    define( 'CIVICRM_SITE_KEY', 'J8UdnKcpN93x0mvv');
  }
  
  ```
  
  So here, your site key would be `J8UdnKcpN93x0mvv`.
  
  ## API key
  
  API keys are unique to CiviCRM *contacts*. You'll need to [create an API key for a contact](https://docs.civicrm.org/dev/en/latest/api/interfaces/#keys) if you want to use the API through the REST interface.
  
  If you are setting up an external service to connect to your CiviCRM installation, it's probably worth *creating a new contact record* specifically for this service to interact with your site. Then you can grant specific permissions to this user just like you would do for a real person.
  
  
  ---
  
  