Skip to main content

Questions tagged [rest]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

Rest API shows no results

This is the first time I have been trying to integrate with a CiviCRM instance. I have admin rights to the instance, however I am having issues getting the REST API to come back with any results. I am ...
Charles Todd's user avatar
0 votes
0 answers
72 views

System status page not working and other loading errors after upgrade

After upgrading to latest CiviCRM (5.66.0) on WordPress. We have been getting errors loading the system status page, and sometime getting the default "The is an issue with your Wordpress site&...
sweetwater_media_inc's user avatar
1 vote
1 answer
179 views

How to leverage Authentication Guard for APIv4 calls

I'm working on converting an app that was built against the REST APIv3 to use REST APIv4, and I've found the APIv4 documentation quite lacking. Through trial and error, I've determined that ...
Mmm's user avatar
  • 121
0 votes
1 answer
35 views

Odd REST API result

I am using civicrm on drupal 7. I have configured my Civi instance to accept external REST API calls with authentication. I want to get all the values from a set of custom fields associated with an ...
tanbog's user avatar
  • 317
2 votes
0 answers
198 views

API v4 REST on Wordpress not returning any data

Problem: I am attempting to use my CiviCRM instance's API v4 REST endpoint to get and post data. I eventually want to script tasks like importing new contacts and event registrations using Python, but ...
SunriseGV's user avatar
1 vote
1 answer
74 views

Make API queries - two methods failing

I'm trying to query my data for records with a given firstname/lastname pair (see Map firstname-lastname pairs to IDs for some previous context) using a couple different methods, and failing. API4 The ...
Ken Williams's user avatar
1 vote
2 answers
98 views

Drupal 9/CiviCRM REST api issue

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.
RJ Robinson's user avatar
0 votes
0 answers
67 views

Issue with WP Rest API

I've a CiviCRM 5.37 installed with a WP 5.72 in a Linux server. As a permalink WP setting I defined the "article name" syntax. Well, my problem is the follow: When I create a new mail and I ...
Civytech's user avatar
0 votes
3 answers
72 views

CiviMcRestFace installation problem

I've an issue with the plugin CiviMcRestFace. I can't install it in my WP site v. 5.7.2 running on Linux server with php 7.4.6 I download plugin from github (https://github.com/CiviMRF/civimcrestface-...
Civytech's user avatar
0 votes
1 answer
295 views

Has anyone got a recent example of a REST client under Drupal 9, possibly using AJAX?

I am trying to work out a way of presenting contact information from CiviCRM to another server, but am struggling to work out how one would code it. Has anyone got an example of something that works ...
Stephen Palmstrom's user avatar
1 vote
1 answer
175 views

Using the LIKE operator with a wildcard using API v3's REST interface

I am trying to do a simple GET request using a LIKE operator with a wildcard. It's easy to set up the explorer and works as expected. I'm using a demo civi environment using the example data included ...
DaveBagler's user avatar
0 votes
2 answers
106 views

Register new account via REST application

I'm trying to register a new user account to my CiviCRM site and also to create a contact in the CiviCRM system for him. I want to do that via the REST API call application that I'm writing in python. ...
Amit Levizky's user avatar
0 votes
1 answer
71 views

Export CSV of an smart group's contacts via REST API?

How can I make a REST API call to Civi that creates a CSV file with all the Contacts details (name, email, telephone...) from an specified Smart Group? Thanks.
Rucc's user avatar
  • 13
1 vote
0 answers
18 views

Rest API for Reserve and Interview Respondents

Is there a way to Reserve and Interview Respondents using the Rest API? Couldn't find a way to do it using the 'Survey' Entity.
Gufran Pathan's user avatar
1 vote
1 answer
28 views

Getting Groups Associated with Campaigns using REST API

CiviCampaign allows you to 'include group(s)' as a part of a Campaign. Is there a way to 'get' which groups have been associated for a given campaign ID using the REST API? The GET API for Campaign ...
Gufran Pathan's user avatar
4 votes
2 answers
559 views

What is the correct REST URL in Drupal 8 (or 9)?

I know there's been a lot of work to deprecate the extern endpoints in CiviCRM, and the extern endpoints don't work in Drupal 8 without a lot of finagling. The documentation isn't updated to reflect ...
Jon G - Megaphone Tech's user avatar
1 vote
1 answer
168 views

CiviMobileAPI / CiviCRM WP REST API error, and possibly related: WordPress - Site Health reporting REST API errors

Issue started when getting an error when trying to authenticate with CiviMobile - via phone. I msged the CiviMobile folk and they replied, copying me with this note: When we use any CIviCRM API (For ...
Clark Hodge's user avatar
2 votes
1 answer
101 views

APIv3 Rest URL ... Could not load the settings file

I have a test instance started a day ago of CiviCRM running on Amazon EC2 using the bitnami version (https://bitnami.com/stack/civicrm/cloud) which uses Drupal 7.72 and runs CiviCRM 5.27.4 I added an ...
alistair-james's user avatar
1 vote
2 answers
1k views

SpamAssassin marking mailings as compromised WordPress site

A few of my constituents have told me that my emails are going to their Spam folder in Gmail. I did some digging with mail-tester.com and found that SpamAssassin is dinging my mailings -1.629 points ...
Brendan Spaar's user avatar
1 vote
1 answer
113 views

Only in WORDPRESS: REST.php ---> Unable to decode supplied JSON

This is my first post for CiviCRM. Hi to all. I have seen others post related and nowadays the problem remain. Different from this post: REST API: Unable to decode supplied JSON - with wordpress ...
Roberto Tagliento's user avatar
2 votes
3 answers
143 views

REST API, iATS: How do I create a membership through the API without using CiviCRM's forms?

I'm building a software system that uses CiviCRM as a membership database and a billing engine for recurring dues. Our members do not have direct access to CiviCRM or the server on which it runs, and ...
Stephen Van Dahm's user avatar
1 vote
1 answer
612 views

REST API call & endpoint

Our organisation has an ios/android app and would like to receive donation thru the app. Developer requires details of REST webserver endpoint of our civicrm to receive & post contact/contribution ...
Tapash's user avatar
  • 3,004
1 vote
1 answer
75 views

CiviCRM 5.12.0 - Case API returning an Analyzer object containing XML and JSON. Only want JSON

I had a working script set up to create cases in CiviCRM using REST.https://domain.com/administrator/components/com_civicrm/civicrm/extern/rest.php?entity=Case&action=create&json=1&version=...
Jern's user avatar
  • 1,302
2 votes
2 answers
91 views

POST format for a chained create

when I try to chain commands in the content body of a POST, the contact is created fine, but the chained address is not created. I am not OK with passing sensitive donor information as parameters in ...
Mike Stairs's user avatar
2 votes
2 answers
391 views

Is there a problem with the REST interface on CiviCRM API?

I have the CiviCRM API REST interface working fine for retrieving Case information for individual cases. But I'd like to use the options features options.limit and options.offset so I can retrieve ...
Jern's user avatar
  • 1,302
1 vote
0 answers
75 views

Chaining Participants creation using REST API

I'm trying to create an event and chain the participants creation using the REST API from python. My attempt goes like this: import requests params = { "key": "key", "api_key": "apikey", "json": ...
JME's user avatar
  • 11
0 votes
1 answer
42 views

Api doesn't update record vu creates new

I have a civicrm-application that gets updates trough an external rest-api call. But there's something odd happening. Request: ``` api_key=76d9f1d3h4c87c2465a8a305b6fe&key=...
lies Lamoen's user avatar
2 votes
2 answers
115 views

Python Civicrm API Keeps Giving 404 Error

I'm trying to use the Python Civicrm API located here: https://github.com/tallus/python-civicrm . I can connect to the site just fine, but anytime I try to query any of the content I get a 404 Error ...
Programming_Noob's user avatar
0 votes
1 answer
142 views

Subscribe to mailing list through the API

I am trying to subscribe a user to a mailing list through the REST API. I understand that I need to create a Contact first, then subscribe it to a given mailing list. While I can create the contact, I ...
zlat's user avatar
  • 3
1 vote
1 answer
265 views

"API permission check failed" for admin user

(I'm using version 4.7 based on Wordpress) When making a REST api call to retrieve a ContributionPage instance, the response tells me that I "require administer CiviCRM". However, the API key is ...
mnieber's user avatar
  • 217
4 votes
1 answer
148 views

REST API 'between' parameters

I'm trying to make an external REST API call to rest.php. I was getting "Unable to decode supplied JSON", but then I figured out I could take the values I was stuffing into json (from the API ...
Troy's user avatar
  • 241
1 vote
1 answer
894 views

Rest api's Give a 302 found and redirects to Login Page

http://crmqa.org/sites/crmqa.org/modules/civicrm/extern/rest.php?json=1&entity=pax&action=fetchAddressDetails&api_key=apikeyofcontact&key=sitekey When I call this through ajax and ...
Vinay Jadhav's user avatar
3 votes
3 answers
1k views

How to connect to REST API from remote host?

I'm trying to connect to the rest api from a remote server, and the only response I ever get back is: var jsondata = {"currencySymbol":"$","is_error":true}; I'm able to make api calls from the site'...
Troy's user avatar
  • 241
0 votes
2 answers
626 views

CiviCRM REST API Call

I'm new to CiviCRM and REST API Calls. I'm attempting to create a new contact using POST via Postman. I'm submitting the following: http://www.mysite.com/wp-content/plugins/civicrm/civicrm/extern/...
SteadH's user avatar
  • 103
3 votes
1 answer
169 views

Trying REST but get PHP Fatal error: Class 'JObject' not found in

I need make a query on civicrm project in joomla from REST. However, when I try: http://localhost/joomla/administrator/components/com_civicrm/civicrm/extern/rest.php?entity=Contact&action=get&...
rodrigo koblitz's user avatar
0 votes
2 answers
80 views

Help needed in setting up rest api in CIVI CRM

I tried below steps but I am getting an error in calling rest API via the browser. I checked which user is an administrator and added api key via phpmyadmin interface. Get the site key from CiviCRM ...
Mohit Thareja's user avatar
1 vote
1 answer
170 views

REST API - json and chaining issues

I am having two issues w/ the REST api via curl. 1) API is ignoring json attribute. If I do not urlencode, I get a "Unable to decode supplied JSON" return msg. When I do encode, as shown below, I ...
user1637010's user avatar
1 vote
2 answers
178 views

Sparkpost Cividesk integration - processing of bounces

I have installed the Cividesk Sparkpost extension and am able to send mass mailings with CiviMail via my Sparkpost account (REST API). However, CiviCRM apparently doesn't process bounces. Would I ...
TonV's user avatar
  • 105
2 votes
1 answer
432 views

AJAX API permissions

We are using REST urls to pull data direct from Civi reports into Excel for analysis purposes. Within Civi the users are restricted via granular ACLs to specific groups of contacts. WP role ...
Catherine's user avatar
  • 644
1 vote
1 answer
163 views

Bulk Update Participant Status via REST API

I am trying to find a way to bulk update participants' status via the REST api. I could only think of using the API chaining method. I tried to do a for loop to update individually but I got random ...
Jeff Salleh's user avatar
1 vote
1 answer
240 views

API - Create a contact from an external site

I have the need to create/update a contact from an external site. If I understand correctly, the only way to do this is to use Rest API. In my test I had no problem to read the database, but when ...
marcello's user avatar
  • 387
1 vote
1 answer
47 views

Suspected external REST API not updating Drupal entities

We're trying to push a Civi contact's data into an LDAP data store using the Civi Drupal entity module and the Drupal ldap module. That part works fine. If a user updates their contact card using a ...
DMCoding's user avatar
  • 361
3 votes
2 answers
205 views

CiviCRM REST API query doesn't return all fields of a 'Report'

I have been trying to retrieve reports based on default report templates through REST API calls. But the fields returned for each report instance is not same as what it is supposed to according to a ...
Mouna A's user avatar
  • 31
1 vote
1 answer
189 views

Get the "Smart" group of a user id via REST

We've created so called 'smart' groups in civicrm, and we need to know if a certrain user belongs to this group. I can get the groups of a user with the following code: http://url.com/sites/all/...
Chris's user avatar
  • 11
7 votes
3 answers
4k views

How do I set up an API key for a user?

The current documentation for creating an API key for user is on the wiki at https://wiki.civicrm.org/confluence/display/CRMDOC/REST+interface#RESTinterface-CreatingAPIkeysforusers. Unfortunately ...
Joe Murray's user avatar
  • 6,741
5 votes
2 answers
1k views

Get CSV via REST?

Is there a way to get CSV-formatted output via a REST call? We have a 3rd-party app that can import data periodically from a URL pointing to a CSV file, so the aim is to provide it with a Civi URL (...
Aidan's user avatar
  • 13.5k
1 vote
0 answers
69 views

Looking for the best way to re-create the contribution page form using the REST API

I'm pretty new with CiviCRM but not with integrating API's in general. I'm looking to re-create a contribution form using only the REST API. Is this even possible? I had started looking around the ...
Initialcap's user avatar
1 vote
0 answers
118 views

REST API issue with chained call

Having a horrible time trying to get api.Contact.get into the URL. The api explorer always puts into a &json{} array. api.Contact.get is an empty array and that defeats most other ways of ...
Ecotypes's user avatar
  • 121
7 votes
3 answers
2k views

REST API: Unable to decode supplied JSON

REST API works, but I cannot pass json parameter to it, getting "Unable to decode supplied JSON". I am running CiviCRM 4.6.8 on Wordpress. I have properly identified SITE KEY and API KEY, and I can ...
movonw's user avatar
  • 311
2 votes
1 answer
314 views

Security of REST API keys

This OWASP document suggests that API keys for REST APIs should be passed as a POST parameter or a cookie. Not a GET parameter, because they can appear in the server logs. Elsewhere they suggest that ...
DaveFF's user avatar
  • 1,527