Overview
The Add Connector endpoint allows you to programmatically add one or more connector accounts to your team in a single request by providing a list of LinkedIn profile URLs. This enables automated team management and efficient bulk connector operations.Endpoint Configuration
- URL: https://bee.theswarm.com/team/add-connector
- HTTP Method: POST
- Content Type: application/json
- Authentication: API key (How to get an API key?)
Additional Header for Partner Accounts
If you are a partner managing multiple teams, include the target team ID:With team header: Connectors added to specified child teamWithout team header: Connectors added to parent team associated with API key
Request Format
Request Body Structure
Parameter Details
linkedin_usernames
An array of LinkedIn usernames:
group (Optional)
Categorizes the added connectors within your team. All connectors in a single request receive the same group assignment.
If omitted, connectors are added without a group assignment.
Response Codes and Behavior
HTTP 202 Accepted (Success)
At least one username was found and the add-connectors job was queued. Mapping is asynchronous and typically completes within seconds, though it may take up to a few minutes for profiles with large networks. The response listsusers_added (new connectors being added), users_exist (already connectors in the team, skipped without creating duplicates) and usernames_not_found. If every username already exists, the response is still 202, with an empty users_added.
Example 202 response
HTTP 200 OK
None of the provided usernames were found. No connectors were queued, and the usernames are listed inusernames_not_found. In this case users_added and users_exist come back as null, not empty arrays.
HTTP 409 Conflict
Adding these connectors would exceed the team’s connector limit. No connectors were added.HTTP 400 Bad Request
Invalid request format or missing required parameters.Code Examples
Add Multiple Connectors
Add Connectors with a Group
Add a Single Connector
Partner Request (Child Team)
Partner Team Management
Partners can use this endpoint to manage connectors across multiple child teams. For detailed information on team creation and management, see Team Management documentation. Team Targeting Logic:- Include
x-authenticate-teamheader: Connectors added to specified child team - Omit
x-authenticate-teamheader: Connectors added to parent team
Processing Details
Asynchronous Operation
The connector mapping happens in the background after a successful 202 response. Processing typically completes within seconds but may take up to a few minutes for profiles with extensive connection networks.Idempotent Behavior
Duplicate requests for existing connectors return 202 without creating duplicates. Existing connectors are reported inusers_exist. This makes the endpoint safe for retry scenarios and batch operations.
Troubleshooting Guide
Slow Processing
Cause: Profiles have extensive connection networksSolution: This is normal behavior; wait for processing to complete

