Answers.Body: <p>I have documented a working example at <a href="https://civicrm.stackexchange.com/questions/37926/what-is-the-correct-rest-url-in-drupal-8-or-9">What is the correct REST URL in Drupal 8 (or 9)?</a>. It needs however some magic with HTML headers, I wonder if that's an option with CallHub.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-17T06:20:06.630Z
Answers.LastActivityDate: 2021-08-17T06:20:06.630Z
Answers.UserDisplayName: Kainuk - CiviCooP
Answers.Body: <p>It is currently not working but there is some work being done on it here: <a href="https://github.com/civicrm/civicrm-core/pull/19727" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/19727</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-07-17T19:18:09.237Z
Answers.LastActivityDate: 2021-07-17T19:18:09.237Z
Answers.UserDisplayName: Demerit
Body: <p>Is anyone using the REST API with Drupal?  Nothing I have tried from the docs seems to work.</p>
  <p>I am trying to connect with CallHub and they require the REST endpoint.</p>
  <p>Thanks.</p>
  
Tags: <rest>
Title: Drupal 9/CiviCRM REST api issue
ThreadText: # Drupal 9/CiviCRM REST api issue
  
  (Asked by: username_0 on 2021-07-17)
  
  Is anyone using the REST API with Drupal? Nothing I have tried from the docs seems to work.
  
  I am trying to connect with CallHub and they require the REST endpoint.
  
  Thanks.
  
  **Tags:** rest
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2021-08-17. Score: 1
  
  I have documented a working example at [What is the correct REST URL in Drupal 8 (or 9)?](https://civicrm.stackexchange.com/questions/37926/what-is-the-correct-rest-url-in-drupal-8-or-9). It needs however some magic with HTML headers, I wonder if that's an option with CallHub.
  
  
  ---
  
  ### Answer by username_2 on 2021-07-17. Score: 0
  
  It is currently not working but there is some work being done on it here: <https://github.com/civicrm/civicrm-core/pull/19727>
  
  
  ---
  
  