Create a contact in a crm using Panora

We assume for this tutorial that you have a valid Panora API Key, and a connection_token. Find help here.

1

You can find the Typescript SDK here

2

Setup your API Key in your code:

import { PanoraSDK } from '@panora/sdk-typescript';
const sdk = new PanoraSDK({ accessToken: "MY_API_KEY" });
3

Add a contact in your CRM:

In this example, we will create a contact in a CRM. Visit other sections of the documentation to find category-specific examples
curl --request POST \
--url https://api.panora.dev/crm/contacts \
--header 'Authorization: Bearer dfsdf' \
--header 'Content-Type: application/json' \
--header 'x-connection-token: <connection_token>' \
--data '{
"first_name": "Mark",
"last_name": "Zuckerbeg",
"email_addresses": [
    {
    "email_address": "mark@zuckerberg.com",
    "email_address_type": "personal",
    "owner_type": "contact"
    }
],
"phone_numbers": [
    {
    "phone_number": "+33694837462",
    "phone_type": "personal",
    "owner_type": "contact"
    }
],
"field_mappings": {}
}'