Comprehensive guide to syncing Identities and Integrations with the Captain Data API v4.
The first step in using the Captain Data API (v4) to manage identities is to synchronize your SaaS users as identities with your Captain Data workspace.
Here’s a quick recap of the ways Captain Data can adapt to your needs:
When integrating your SaaS with Captain Data, it’s important to understand the distinction between Identities and Integrations.
To enable automation for an Identity, create the identity by sending a POST request to the Create an Identity endpoint:
A name that allows you to identify the Identity: it can be the full name of the Identity or an internal reference (or both!) at your convenience.
The Identity’s timezone.
The timezone
field provisions a proxy IP matching that timezone/country.
This needs to match the location where you log into your LinkedIn account to
avoid restrictions.
When using a VPN, either: 1. Log out of your VPN before accessing social media, or 2. Ensure the “timezone” you send matches the country of the VPN IP address.
uid
Once the request is successful, Captain Data will return an Identity’s uid
.
Save this as identity_uid
in your own user database - you’ll need it for:
identity_ids
field💡 When launching an action, always pass the Identity’s uid
via the
identity_ids
field. You do not need to pass the Integration’s UID.
To run most automations, your identities must be linked to the platform(s) they’ll act on, like LinkedIn. This section walks you through creating an identity and connecting the necessary integrations using Captain Data’s API.
Once you have created an identity, the next step is to attach an integration. This integration enables the identity to automate specific platforms, like LinkedIn, through Captain Data.
To create or update an integration, use the POST method for the Connect an Identity’s Integration endpoint. Here’s an example for a COOKIES integration type (like LinkedIn):
Name of the LinkedIn account, e.g. “LinkedIn Account #1”. It’s generally the
User’s full_name
or email
.
For COOKIES integration types, provide authentication cookies here.
Important note: If you’re connecting an account for LinkedIn Sales
Navigator, you need to send both cookies. If you don’t include the li_a
token, the connection may not work properly with LinkedIn Sales Navigator.
Including the li_a
token will also speed up account synchronization.
Captain Data supports the following integration types:
Each type may require a slightly different request body. The example provided is for a COOKIES integration.
uid
Once the request is successful, Captain Data will return an Integration’s uid
.
Save this uid
in your own database model if you need to update or remove it later, for example.
You can also authenticate LinkedIn accounts using email and password credentials. This method uses Captain Data’s native LinkedIn authentication system.
Here’s an example request using the Connect a LinkedIn Account (Username/Password) endpoint:
To make integration setup seamless for your users, we handle all the authentication complexity for you. Instead of building your own login forms and credential handling, we provide unique, time-limited URLs (valid for 48 hours) that let your users connect their accounts securely.
These links work with supported integrations like LinkedIn - all without needing a browser extension or custom form handling.
When you create an Identity through our Identity creation endpoint, you’ll receive these login links in the response:
You can share the login URL (https://app.captaindata.com/identities/linkedin/login?token=XXXXXX) via email or embed it directly in your product interface as a button or link. When clicked, it will take users to our secure, white-labeled authentication page where they can complete the LinkedIn connection process.
This feature eliminates the need for browser extensions or custom login forms. Users can securely connect their LinkedIn accounts by simply visiting the provided login link, which works across all browsers and supports any security method (including SMS, authenticator apps, and in-app confirmations).
Comprehensive guide to syncing Identities and Integrations with the Captain Data API v4.
The first step in using the Captain Data API (v4) to manage identities is to synchronize your SaaS users as identities with your Captain Data workspace.
Here’s a quick recap of the ways Captain Data can adapt to your needs:
When integrating your SaaS with Captain Data, it’s important to understand the distinction between Identities and Integrations.
To enable automation for an Identity, create the identity by sending a POST request to the Create an Identity endpoint:
A name that allows you to identify the Identity: it can be the full name of the Identity or an internal reference (or both!) at your convenience.
The Identity’s timezone.
The timezone
field provisions a proxy IP matching that timezone/country.
This needs to match the location where you log into your LinkedIn account to
avoid restrictions.
When using a VPN, either: 1. Log out of your VPN before accessing social media, or 2. Ensure the “timezone” you send matches the country of the VPN IP address.
uid
Once the request is successful, Captain Data will return an Identity’s uid
.
Save this as identity_uid
in your own user database - you’ll need it for:
identity_ids
field💡 When launching an action, always pass the Identity’s uid
via the
identity_ids
field. You do not need to pass the Integration’s UID.
To run most automations, your identities must be linked to the platform(s) they’ll act on, like LinkedIn. This section walks you through creating an identity and connecting the necessary integrations using Captain Data’s API.
Once you have created an identity, the next step is to attach an integration. This integration enables the identity to automate specific platforms, like LinkedIn, through Captain Data.
To create or update an integration, use the POST method for the Connect an Identity’s Integration endpoint. Here’s an example for a COOKIES integration type (like LinkedIn):
Name of the LinkedIn account, e.g. “LinkedIn Account #1”. It’s generally the
User’s full_name
or email
.
For COOKIES integration types, provide authentication cookies here.
Important note: If you’re connecting an account for LinkedIn Sales
Navigator, you need to send both cookies. If you don’t include the li_a
token, the connection may not work properly with LinkedIn Sales Navigator.
Including the li_a
token will also speed up account synchronization.
Captain Data supports the following integration types:
Each type may require a slightly different request body. The example provided is for a COOKIES integration.
uid
Once the request is successful, Captain Data will return an Integration’s uid
.
Save this uid
in your own database model if you need to update or remove it later, for example.
You can also authenticate LinkedIn accounts using email and password credentials. This method uses Captain Data’s native LinkedIn authentication system.
Here’s an example request using the Connect a LinkedIn Account (Username/Password) endpoint:
To make integration setup seamless for your users, we handle all the authentication complexity for you. Instead of building your own login forms and credential handling, we provide unique, time-limited URLs (valid for 48 hours) that let your users connect their accounts securely.
These links work with supported integrations like LinkedIn - all without needing a browser extension or custom form handling.
When you create an Identity through our Identity creation endpoint, you’ll receive these login links in the response:
You can share the login URL (https://app.captaindata.com/identities/linkedin/login?token=XXXXXX) via email or embed it directly in your product interface as a button or link. When clicked, it will take users to our secure, white-labeled authentication page where they can complete the LinkedIn connection process.
This feature eliminates the need for browser extensions or custom login forms. Users can securely connect their LinkedIn accounts by simply visiting the provided login link, which works across all browsers and supports any security method (including SMS, authenticator apps, and in-app confirmations).