For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inBook a demo
  • Getting started
    • Introduction
    • Obtaining API keys
    • Quickstart
    • Native clients
    • Concepts
    • Embedding authentication
    • Versioning
    • Idempotent requests
    • Events
  • Configuring your connections
    • CDC streaming from databases
  • Code examples
    • Bulk sync (ELT) from HubSpot to PostgreSQL
    • Bulk sync (ELT) from Salesforce to S3
    • Bulk sync (ELT) from Salesforce to Snowflake
    • Model sync (Reverse ETL) from MongoDB to Salesforce
  • API Reference
Logo
Log inBook a demo
On this page
  • Example
  • Partner keys
Getting started

Obtaining API keys

Was this page helpful?
Previous

Quickstart

Next

In order to make requests against the API, you’ll need an API key which you can generate in your Polytomic settings panel. The API key should be passed as an Authorization header.

Example

With an API key of 8e5dcfdd-d23d-4e6f-a136-119e1254847b, the header would look like:

Authorization: Bearer 8e5dcfdd-d23d-4e6f-a136-119e1254847b

To validate the token, you can make a request to the identity endpoint. For example:

$curl --request GET \
> --url https://app.polytomic.com/api/me \
> --header 'accept: application/json' \
> --header 'X-Polytomic-Version: 2022-12-12'\
> --header 'Authorization: Bearer 8e5dcfdd-d23d-4e6f-a136-119e1254847b'
API keys are organization-specific

Partner keys

Partner keys are unique tokens that allow you to manage your customers’ organizations.

These keys operate the same way API keys work. However, they are limited to the Organization and User endpoints. A typical workflow looks like this:

  1. Create a customer organization.
  2. Create a root user in that organization.
  3. Use the “Create API key” endpoint to mint an API key for the newly created user.
  4. Use that API key to create organization-level resources (e.g. connections, models, syncs).

To obtain a partner key, contact the Polytomic team at support@polytomic.com.