LogoLogo
WebsiteDocumentationChangelogStatusTerms
  • Getting Started
    • Overview
    • FAQs
    • Reference
      • Identifier Types
      • Identifier Profiles
      • Identity Clusters
      • Identity Resolution
      • Regular Expressions
      • Tabular Data Schema
      • Advanced Query Interface
      • IP Allowlisting
    • Global Data Regulations
  • Data
    • Sources
      • Amazon S3
      • API Source
      • Azure Blob Storage
      • BigQuery
      • Databricks
      • File Upload
      • Google Cloud Storage
      • Mailchimp
      • SDK Sources
        • Android SDK
        • iOS SDK
        • JavaScript SDK
      • SendGrid
      • Shopify
      • Snowflake
    • Data Configuration
      • Custom Identifiers
      • Traits
      • Events
      • Labels
  • Identity
    • EIDs Switchboard
  • Audiences
    • Audiences
      • Audience Builder
      • Insights
      • Activation
        • Real-Time Targeting
        • Google Ad Manager
        • Permutive
      • Exports
        • Metadata file
    • Destinations
      • Amazon DSP
      • Amazon S3
      • Azure Blob Storage
      • Campaign Manager 360
      • Display & Video 360
      • Google Ads
      • Google Cloud Storage (GCS)
      • Meta Ads
      • The Trade Desk
      • TikTok
      • Yahoo! Japan Ads
  • collaborate
    • Clean Rooms
      • Insights Clean Rooms
      • Activation Clean Rooms
      • Augmentation Clean Rooms
      • Prospecting Clean Rooms
    • Partnerships
      • Flash Partners
        • Optable Flash Node
        • AWS Connector
        • Snowflake Connector
      • Enterprise Partners
      • Flash Partner Settings
  • Differential Privacy
  • Admin
    • General
    • Accounts
      • Managing User Accounts
      • Roles
        • Permissions
      • Authentication
    • Real-Time API
    • Data Subject Requests
  • Profile Settings
    • Notifications
  • Guides
    • AWS Connector: Guides
      • Enterprise DCN
      • AWS Connector
    • Snowflake Connector: Guide
    • Optable CLI
    • Data Warehouse Exports
      • Google BigQuery
      • Snowflake
  • Announcements
    • Deprecation Notices
      • Q1 2025: Deprecation of Exports & Introduction of Syncs
      • Feb 21st, 2024: Removal of regex_allowed_http_origins
      • Dec 8th, 2022: Exports to Export Configurations
      • Deprecated uses in the CLI
Powered by GitBook
On this page
  • Creating an API Source
  • Listing API Sources
  • Loading ID Profiles

Was this helpful?

  1. Data
  2. Sources

API Source

Loading data from any system

Last updated 1 year ago

Was this helpful?

API sources are used to represent various systems contributing data to your DCN. Examples of systems from which you may be sourcing data into an API source include DMPs, CDPs, CRMs, and private databases.

Creating an API Source

You can create a new API source from your DCN UI or using the by running optable-cli source create api <name>, for example:

$ optable-cli source create api my-example-source
{
  "id":  5,
  "name":  "my-example-source",
  "kind": "SOURCE_KIND_API",
  "created_at": "2021-05-17T16:53:39.985326671Z",
  "updated_at": "2021-05-17T16:53:39.985326671Z",
  "expiry": "0s",
  "insights_history": {}
}

On success, the CLI displays a description of the newly created API source in JSON. You can then push data into the source referring to its displayed id as described below.

Specifying Data Expiry

You can specify a time when creating the API source with the --expiry option. The default is that loaded data should never expire. Otherwise the option accepts a positive integer suffixed with either s, m, or h to indicate the amount of time elapsed since the last record update (in seconds, minutes, or hours, respectively) until loaded data is automatically purged.

You can also update the --expiry value by updating your API source with the optable-cli source update api command.

Listing API Sources

$ optable-cli source list | jq 'select(.kind == "SOURCE_KIND_API") | .name'
"api-source-example"
"demo-source"
"crm-source"

Loading ID Profiles

You can list all API sources with the by running the optable-cli source list command. The command returns a list of sources encoded in JSON. You can use the excellent to parse and manipulate JSON from the command line. For example, to list just the names of all API sources:

You can push ID profile data into an existing API source using the by running optable-cli source push <id> --format=<format> where <format> can be id, jsonl or csv.

Examples of how you can structure and load ID profile data through the CLI command can be found in the .

CLI
jq utility
CLI
CLI
Identifier Profiles reference page here
data expiry