TALK TO THE EXPERTS FOR A PERSONALISED DEMO NOW! Request a Demo
  • Aritic Solution Partner Program
  • HELP
    • Docs
    • Integration
  • SUPPORT
    • Live Chat
    • Give A Call
    • Create Ticket
  • CONTACT US
  • LOGIN
Aritic
  • Software
    • Aritic PinPoint Unified Marketing Automation Platform
    • Aritic Sales Smart CRM System for Sales Team
    • Aritic Desk All-in-one Ticketing System
    • Aritic Mail Transactional Email Delivery API for Applications & Enterprises
    • See all Pricing
  • Features
    • Aritic PinPoint
      • Landing Pages
      • Forms
      • Contact Segmentation
      • Automation
      • Email Campaigns
      • Lead Scoring
      • Account Based Marketing
      • Social Media Marketing
      • Mobile Marketing
      • Video Marketing
      • Marketing Analytics
      • FAQs
      • Aritic Marketing Intelligence
      • SMS Text Automation
      • Push Notification
      • Multi-Channel
      • Aritic PinPoint as LeadSquared Alternative
    • Aritic Sales
      • Appointment Scheduling
      • Sales Deals Tracking
      • Sales Process Pipeline
      • Sales Funnel Automation
      • Sales Team Collaboration
      • Sales Workflow Automation
      • Mobile Sales CRM
      • Sales Reporting
      • Apps Integration
    • Aritic Desk
      • Agent Portal Translations
      • Social channel Integrations
      • Knowledge Base
      • Real-time Chat Supports
      • Time Accounting
      • Automation and Trigger
      • Service Level Agreements
      • Automation with Macros
      • Report Profile Analysis
    • Aritic Mail
      • Transactional Email Delivery
      • API Integration
      • Email Delivery Insight
      • Reporting
      • Inbound Email Processing
      • AI Based Email Delivery
      • Security
      • Aritic Mail as Amazon SES Alternative
      • Aritic Mail as Mailgun Alternative
      • Aritic Mail vs Amazon SES
      • Aritic Mail vs Mandrill
      • Aritic Mail vs Sendgrid
      • Aritic Mail vs Sparkpost
      • Aritic Mail as Postmark Alternative
      • Aritic Mail vs Mailgun
    • Aritic Swarm
      • Encrypted Messaging
      • Messaging and Group Chat
      • Team Collaboration
      • Secure File Sharing
      • Audio & Video Conferencing
      • Screen Sharing
      • Multiple Device Sync
      • Timed Messages
    • Integrations
    • Add-on
      • Email Delivery Tools
      • Chatbot Conversations
      • Poll and Survey
      • Event Management
  • Solutions
    • Success Stories
      • SPS Corp
      • Lapp Group
      • Dentaprime
      • Global Outreach
      • Pet’s delight
      • Business Buyer
      • Salienceneuro
    • For Marketing
      • Marketing Automation
      • Lead Qualification
      • Inbound Marketing
      • B2B Marketing
      • Mobile Marketing
      • Lead Management
      • Customer Base Marketing
      • Sales Enablement
      • EDM Marketing
      • Pipeline Marketing
      • Lead Generation
      • Sales Force Automation
      • Aritic PinPoint as a WebEngage Alternative
      • Aritic PinPoint as a Mautic Alternative
      • Event
    • For Industry
      • Real Estate
      • Healthcare
      • Manufacturing
      • Fintech
      • Higher Education
      • Ecommerce
      • Banking
      • Marketing Agency
      • Technology
      • Financial Services
      • Online Digital Business
      • Entertainment
      • Insurtech
      • Non Profits
      • Marketing Automation For Hospitality
      • EdTech
    • For Sales
      • Small Businesses CRM
      • Real Estate CRM
      • Sales CRM
      • SAAS CRM
    • Service
      • Onboarding
      • Technical Services
      • Onsite Training
    • Partners
      • Agency Partners Program
      • Affiliate Partners Program
      • Solution Partner Program
  • Pricing
    • Aritic PinPoint
    • Aritic Sales
    • Aritic Desk
    • Aritic Mail
  • Resources
    • Aritic Awards Program
    • Aritic Live Webinars
    • Integrations
    • Knowledge Base
      • Aritic PinPoint Docs
      • Aritic Sales Docs
      • Aritic Desk Docs
      • Aritic Mail Docs
    • Blog & Resource
      • Aritic PinPoint Blog
      • Aritic Mail Blog
      • All Resources
      • Infographics
      • Marketing Automation RFP Template for Enterprise
      • Editorial Calendar Templates
      • Lead Generation Workbook
      • Top tips to Twitter Marketing – Aritic PinPoint
      • Account-Based Marketing Strategy for small and mid business
      • Marketing Library
      • High Performance Marketing Automation Plan
      • Marketing Automation Checklist
      • Inbound Marketing Services for Growing Business
      • Sales Enablement Template
      • Multi-Channel Marketing Workbook
    • Automation Workflows
    • Feedback
Schedule Demo

API Documentation

Are you a Developer? Read our API Doc

The Marketing API must be enabled in Aritic PinPoint.

Within Aritic PinPoint, go to the Configuration page (located in the Settings menu) and under API Settings enable Aritic PinPoint’s marketing API. You can also choose which OAuth protocol to use here.

After saving the configuration, go to the API Credentials page (located in the Settings menu) and create a new client. Enter the callback/redirect URI that the request will be sent from. Click Apply then copy the Client ID and Client Secret to the application that will be using the API.

Requirements for Aritic PinPoint Marketing API

  • PHP 5.3.7 or newer
  • cURL support

Obtaining an access token

The first step is to obtain authorization. Aritic PinPoint supports OAuth 1.0a and OAuth 2 however it is up to the administrator to decide which is enabled. Thus it is best to have a configuration option within your project for the administrator to choose what method should be used by your code.

<p><?php</p>
<p>// Bootup the Composer autoloader<br />
include __DIR__ . '/vendor/autoload.php';</p>
<p>$publicKey = '';<br />
$secretKey = '';<br />
$callback = '';</p>
<p>// ApiAuth::initiate will accept an array of OAuth settings<br />
$settings = array(<br />
'baseUrl' => '', // Base URL of the Aritic instance<br />
'version' => 'OAuth2' // Version of the OAuth can be OAuth2 or OAuth1a. OAuth2 is the default value.<br />
'clientKey' => '', // Client/Consumer key from Aritic<br />
'clientSecret' => '', // Client/Consumer secret key from Aritic<br />
'callback' => '' // Redirect URI/Callback URI for this script<br />
);</p>
<p>/*<br />
// If you already have the access token, et al, pass them in as well to prevent the need for reauthorization<br />
$settings['accessToken'] = $accessToken;<br />
$settings['accessTokenSecret'] = $accessTokenSecret; //for OAuth1.0a<br />
$settings['accessTokenExpires'] = $accessTokenExpires; //UNIX timestamp<br />
$settings['refreshToken'] = $refreshToken;<br />
*/</p>
<p>// Initiate the auth object<br />
$auth = ApiAuth::initiate($settings);</p>
<p>// Initiate process for obtaining an access token; this will redirect the user to the $authorizationUrl and/or<br />
// set the access_tokens when the user is redirected back after granting authorization</p>
<p>// If the access token is expired, and a refresh token is set above, then a new access token will be requested</p>
<p>if ($auth->validateAccessToken()) {</p>
<p>// Obtain the access token returned; call accessTokenUpdated() to catch if the token was updated via a<br />
// refresh token</p>
<p>// $accessTokenData will have the following keys:<br />
// For OAuth1.0a: access_token, access_token_secret, expires<br />
// For OAuth2: access_token, expires, token_type, refresh_token</p>
<p>if ($auth->accessTokenUpdated()) {<br />
$accessTokenData = $auth->getAccessTokenData();</p>
<p>//store access token data however you want<br />
}<br />
}</p>
<p>

Marketing API Requests

Now that you have an access token and the auth object, you can make API requests. The API is broken down into contexts. Note that currently only the Lead context allows creating, editing and deleting items. The others are read only

Get a context object

<p><?php</p>
<p>// Create an api context by passing in the desired context (Leads, Forms, Pages, etc), the $auth object from above<br />
// and the base URL to the Aritic server (i.e. http://my-aritic-server.com/api/)</p>
<p>$leadApi = AriticApi::getContext("leads", $auth, $apiUrl);</p>
<p>

Supported contexts are currently:

  • Assets – read only
  • Campaigns – read only
  • Forms – read only
  • Leads – read and write
  • Pages – read only
  • Points – read only
  • PointTriggers – read only

Creating an item

Currently, only Leads support this

<p><?php</p>
<p>$fields = $leadApi->getFieldList();</p>
<p>$data = array();</p>
<p>foreach ($fields as $f) {<br />
$data[$f['alias']] = $_POST[$f['alias']];<br />
}</p>
<p>// Set the IP address the lead originated from if it is different than that of the server making the request<br />
$data['ipAddress'] = $ipAddress;</p>
<p>// Create the lead<br />
$lead = $leadApi->create($data);</p>
<p>

Editing an item

Currently, only Leads support this

<p><?php</p>
<p>$updatedData = array(<br />
'firstname' => 'Updated Name'<br />
);</p>
<p>$result = $leadApi->edit($leadId, $updatedData);</p>
<p>// If you want to create a new lead in the case that $leadId no longer exists<br />
// $result will be populated with the new lead item<br />
$result = $leadApi->edit($leadId, $updatedData, true);</p>
<p>

Error handling

<p><?php</p>
<p>// $result returned by an API call should be checked for errors<br />
$result = $leadApi->delete($leadId);</p>
<p>if (isset($result['error'])) {<br />
echo $result['error']['code'] . ": " . $result['error']['message'];<br />
} else {<br />
// do whatever with the info<br />
}</p>
<p>

Deleting an item

Currently, only Leads support this

<p><?php</p>
<p>$result = $leadApi->delete($leadId);</p>
<p>

Contact

  • support@aritic.com
  • +1-725-999-2056‬
  • Dataaegis Inc.,
  • 340 S Lemon Ave # 9009, Walnut, CA-91789, United States.

Company

  • About Aritic
  • Contact Aritic
  • Aritic Trust and Security
  • Aritic System Status
  • Aritic User Community
  • Leadership Team

Software

  • Aritic PinPoint
  • Aritic Sales
  • Aritic Desk
  • Aritic Mail
  • Aritic Swarm
  • Easysendy

Resources

  • Automation Workflow
  • Help Documents
  • Feedback
  • Aritic Roadmap
  • Aritic Migration
  • Partner Program

Alternatives

  • Hubspot Alternative
  • Marketo Alternative
  • Pardot Alternative
  • ActiveCampaign Alternative
  • Ontraport Alternative
  • Constant Contact Alternative
  • GetResponse Alternative
  • ConvertKit Alternative
  • SharpSpring Alternative

Privacy and Copyright | All Legal Pages

©2015-2025 Aritic | Dataaegis Software Pvt. LTD.