The Panora API uses API keys to authenticate requests. You can view and manage your API keys in the Panora Dashboard.

Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

Use your API key by setting it in the initial configuration of Panora. The Node.js library will then automatically send this key in each request.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

You also have to catch a connection token which contains metadata about the end-user.

In this example, we will create a contact in a CRM. Visit other sections of the documentation to find category-specific examples.
import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: "MY_API_KEY" });

const input = {
    first_name: 'tom',
    last_name: 'jedusor',
    email_addresses: [
      {
        'email_address': 'tom@jedusor.com',
        'email_address_type': 'PERSONAL'
      }
    ],
    phone_numbers: [
      {
        'phone_number': '+33650438278',
        'phone_type': 'MOBILE'
      }
    ],
};

const result = await sdk.crmContact.addContact(input, 'MY_USER_CONNECTION_TOKEN', {
  remoteData: true,
});

console.log(result);