Real Bots

API Endpoints

This page documents the Salesforce Bot Integration API. Endpoints are configured per deployment, so the values below use placeholders — substitute the values provided for your org.

Authentication

Every request requires two things:

  • The org query parameter — your Salesforce Org ID.
  • An X-API-Key header carrying the API key issued for your deployment.

Keys are issued per org and must be kept secret and sent over HTTPS. A request with a missing or incorrect key returns:

{ "code": 401, "status": "Unauthorized" }

Conventions

  • Base URL: https://realintelligence.com/customers/api/
  • Confirm (read) calls are GET requests to api.php.
  • Create (write) calls are POST requests to api_create.php.
  • Every call includes org=YOUR_ORG_ID and the X-API-Key header.

Placeholders used below:

PlaceholderReplace with
YOUR_ORG_IDYour Salesforce Org ID
YOUR_API_KEYThe API key issued for your deployment
{email}A contact email address
{phone}A contact phone number
{contact_id}, {account_id}, {event_id}Salesforce record IDs
{account_name}, {subject}, {issue}, {first_name}, {last_name}Free-text values

Confirm (lookup) endpoints

GET to api.php. Verify that a record exists before continuing a conversation.

ActionParametersLooks up
Confirm_ContactemailA contact by email
Confirm_Contact_PhonephoneA contact by phone
Confirm_CaseemailCases for a contact email
Confirm_RegistrationemailEvent registrations for an email
Confirm_SpeakercontactID, eventID (optional)A speaker, optionally scoped to an event
Confirm_ExhibitorcontactIDAn exhibitor by contact
Confirm_AccountaccountNameAn account by name

Example:

GET https://realintelligence.com/customers/api/api.php?action=Confirm_Contact&email={email}&org=YOUR_ORG_ID
X-API-Key: YOUR_API_KEY

A successful confirm returns:

{ "code": 200, "status": "Success", "msg": [ ... ] }

Create endpoints

POST to api_create.php. Send the parameters as POST fields and the key as a header.

ActionRequiredOptional
Create_AccountaccountName
Create_ContactlastNamefirstName, email, AccountID
Create_CaseSubjectIssue, ContactID, AccountID

Example:

POST https://realintelligence.com/customers/api/api_create.php
X-API-Key: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded

action=Create_Contact&lastName={last_name}&firstName={first_name}&email={email}&org=YOUR_ORG_ID

A successful create returns the new record ID:

{ "code": 200, "status": "Contact Created Successfully", "id": "{contact_id}" }

Notes

  • These operations map to the capabilities on Supported Functions.
  • Endpoint hostnames and field mappings can vary per deployment; use the values provided for your org.

Was this helpful?

Last updated 1 month ago