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
  • Aurinko /direct API
  • Examples
  1. Unified APIs

Direct API

A direct pass-through API for native communications with underlying provider APIs using Aurinko's unified OAuth flow.

PreviousConfiguring Pub/Sub for Gmail API WebhooksNextOAuth Flow

Last updated 4 months ago

Aurinko /direct API

The Aurinko /direct API endpoint enables applications to request native provider payloads directly, leveraging Aurinko's OAuth Flow and secure access token storage. It is a valuable alternative to data unification, offering flexibility and control for complex integrations while still benefiting from Aurinko's core security and authentication features.

The Aurinko /direct API offers significant advantages in specific scenarios:

  • Circumventing Data Unification: When data unification isn't necessary or feasible (due to complexity or specific integration requirements), the /direct API allows for direct interaction with the provider's native API. This provides the flexibility needed for intricate or unique integrations.

  • Debugging and Troubleshooting: The /direct API serves as an invaluable tool for debugging and troubleshooting. By directly interacting with the provider's API within the context of Aurinko's authentication framework, developers can isolate and pinpoint issues related to specific API calls or provider responses.

  • Leveraging Aurinko's Authentication: While bypassing data unification, the /direct API still leverages Aurinko's robust authentication and authorization mechanisms. This ensures secure and controlled access to provider APIs, maintaining a consistent security posture across all integrations.

Examples

Gmail API

Get a list of Gmail messages for a Gmail Aurinko account:

curl -X GET -H 'Authorization: Bearer <access token>' \
    -G https://api.aurinko.io/v1/direct/gmail/v1/users/me/messages

/gmail/v1/users/me/messages is the path of the .

Graph API

Geta list of Office 365 messages for an Office 365 Aurinko account:

curl -X GET -H 'Authorization: Bearer <access token>' \
    -G https://api.aurinko.io/v1/direct/me/messages

Get a description of a Salesforce Contact object for a Salesforce Aurinko account:

curl -X GET -H 'Authorization: Bearer <access token>' \
    -G https://api.aurinko.io/v1/direct/services/data/v51.0/sobjects/Contact/describe/

/me/messages is the path of the . Salesforce API

/sobjects/Contact/describe/ is the path of the .

Gmail API endpoint
Graph API endpoint
Salesforce API endpoint