Aurinko
Aurinko websiteAurinko blogAPI ReferenceContact Support
Aurinko API
Aurinko API
  • Getting started
    • What is Unified Mailbox API?
    • Getting started with Aurinko
    • Get your developer API keys
    • Adding Aurinko to Google Workspace allowlist
    • Bubble.io plugin
    • Team members and roles in applications
  • Unified APIs
    • Email API
    • Calendar API
    • Contacts API
    • Tasks API
    • Webhooks API
      • Configuring Pub/Sub for Gmail API Webhooks
    • Direct API
  • Authentication
    • OAuth Flow
      • Account OAuth Flow
      • User ОАuth Flow
      • Service Account OAuth Flow
    • Authentication scopes
    • Authorized return URLs
    • Google OAuth setup
    • Office 365 OAuth setup
    • ZOHO OAuth setup
    • Service accounts
      • Setting up G Suite service account
      • Setting up Office 365 daemon app registration
  • Scheduling
    • Create your first appointment booking page
    • Calendar Booking Page
    • Booking API
    • Group Booking API
  • Workspace Addons
    • Outlook addins
      • Create your first Outlook addin
      • Office 365: Installing Outlook addin
    • Microsoft Teams apps
      • Microsoft Teams bot setup
      • Create your first MS Teams app
      • Installing MS Teams app
    • Chrome Extensions with Google authentication
    • Google Workspace Add-Ons
  • Dynamic API
    • What is Dynamic (Virtual) API?
    • Getting Started with Dynamic API
Powered by GitBook
On this page
  1. Dynamic API

Getting Started with Dynamic API

PreviousWhat is Dynamic (Virtual) API?

Last updated 29 days ago

Aurinko account setup


First, create your account in the , then follow the guide to . When presented with the New Application dialog choose the CRM feature.

Next, navigate to Settings and specify your app's OAuth details (clientId+secret) for your Salesforce and Hubspot integrations.

Now, navigate to Accounts to test creating Salesforce and/or Hubspot accounts.

Once a new account is added you can find its Aurinko access token on the Account page. You will need this token to make API calls later.

Upon adding a CRM account, its metadata is automatically loaded into the system. You will be able to examine the provider metadata under Virtial API / Provider Models

The Virtual APIs tab displays your virtual data models. If you have not created any models yet, start by clicking 'New virtual model'.

Our AurinkoCRM template will clone a model with three objects: Company, Contact, Deal

Choose one of them to see how your virtual model is mapped to a provider model, like Hubspot:

Click any object to see its field mappings:

Note the 'Configuration Id', you need to reference this id when using the Dynamic API.

Here is the same Contact object mapped to the Salesforce Contact object (configuration id: 403):

You can have as many mapping configurations as you need. Many Salesforce and Hubspot instances have their own customizations so you may need a CRM configuration per customer. Create them in Aurinko once needed and remember their ids. You will be able to reference a specific configuration when calling the /dynamic API. Understanding Dynamic API Endpoints

Aurinko Dynamic API offers a unified API experience, but with the key advantage of being virtualized. This means the API endpoints are dynamically generated based on your configuration. Here's an overview of the endpoint structure:

  • Metadata Endpoints:

    • /dynamic/{configId}/metadata/{objName}: Retrieves metadata for a specific CRM object (e.g., contacts).

    • /dynamic/{configId}/metadata/{objName}/{fieldName}: Retrieves metadata for a particular field within a CRM object.

  • Object Endpoints:

    • /dynamic/{configId}/objects/{objName}: Retrieves a list of objects of a specific type (e.g., all contacts).

    • /dynamic/{configId}/objects/{objName}/{id}: Retrieves a single CRM object by its ID.

    • /dynamic/{configId}/objects/{objName}/{id}/{childRelationship}: Retrieves data related to a child relationship of a specific CRM object.

You can quickly create a new model from an existing template with a number of CRM provider mappings, i.e. Hubspot, Salesforce, MS Dynamics:

and the following mappings/configurations will be pre-populated:

Aurinko portal
get your developer API keys