Base URL
https://api.sbl.so
/auth/tokenAuthenticates a user with email/password and returns a bearer token valid for 30 days. If a 401 Unauthorized is returned on any other endpoint, regenerate the token and retry.
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | Your account email address | |
| password | string | Yes | Your account password |
Request Body Example
{
"email": "user@example.com",
"password": "your_password"
}Response (200 OK)
{
"token": "eyJhbGciOiJIUzI1NiIsInR5..."
}Error Responses
| Status | Description |
|---|---|
| 400 | Missing or invalid parameters |
| 401 | Invalid email or password |
| 429 | Too many requests — check Retry-After header and retry |
/campaignsReturns a list of campaigns for a company. status: 9 created, 3 scheduled, 7 running, 8 ended.
Authentication
Authorization: Bearer <token>
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| statuses | string | string[] | No | Filter by status number(s); repeat the parameter for several, e.g. statuses=7&statuses=8 |
| types | string | string[] | No | Filter by type number(s); repeat the parameter for several |
| isArchived | boolean | No | Filter archived campaigns (default: false) |
| searchQuery | string | No | Search campaigns by name |
| lastCampaignId | string | No | Pagination cursor — ID of the last campaign from previous page |
Response (200 OK)
[
{
"id": "123",
"name": "My Campaign",
"status": 7,
"type": 1,
"communicationChannelToUse": 1,
"statistics": {},
"createdAt": "2024-01-01T00:00:00.000Z"
}
]Error Responses
| Status | Description |
|---|---|
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 429 | Too many requests — check Retry-After header and retry |
/campaigns/:campaignIdReturns a single campaign's settings and statistics. status: 9 created, 3 scheduled, 7 running, 8 ended.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| campaignId | string | Yes | The ID of the campaign |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
Response (200 OK)
{
"id": "123",
"name": "My Campaign",
"status": 7,
"type": 1,
"objective": "...",
"initialMessage": "Hello!",
"communicationChannelToUse": 1,
"followupMessages": [],
"pausedItem": null,
"isArchived": false,
"moreLeadsAdded": false,
"statistics": {},
"leadListsData": [
{
"leadListId": "321",
"leadListSetIds": [
"654",
"655"
],
"leadListSourceType": 1
}
],
"workingHours": null,
"createdAt": "2024-01-01T00:00:00.000Z"
}Error Responses
| Status | Description |
|---|---|
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 429 | Too many requests — check Retry-After header and retry |
/campaigns/:campaignIdUpdates a campaign. Send only the fields you want to change — everything else is left untouched. Unknown fields are rejected. Concurrency is handled for you: the API reads the campaign's current revision before applying the update.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| campaignId | string | Yes | The ID of the campaign |
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| name | string | No | Campaign name |
| objective | string | No | Campaign objective |
| targetUsers | object | No | { title, description } — the ICP |
| communicationChannelToUse | number | No | Required when updating initialMessage or followupMessages |
| initialMessage | string | No | First-touch message, validated per channel |
| initialMessageDelayInMs | number | No | Delay before the first message (max 90 days) |
| followupMessages | array | No | [{ id, message, followupAfterInMs, asVoiceNote? }] |
| smartFollowupsConfig | object | No | { delayInMs[], followupMessageReasoning[] } — equal lengths, min 5 minutes each |
| nonConnectedLeadsMessage | string | No | Message for leads who are not connections yet |
| sendInviteWithoutMessage | boolean | No | Send LinkedIn invites without a note |
| productLinks | array | No | [{ link, description }] |
| icpFilter | object | No | { criteria, requirements, networkDistances }. criteria and networkDistances are each optional but at least one is required; requirements is required with criteria. networkDistances: FIRST_DEGREE | SECOND_DEGREE | THIRD_DEGREE | OUT_OF_NETWORK |
| userTagsToRunOn | array | No | Tag IDs to target |
| leadListSetsToRunOn | array | No | Lead list set IDs to target, each once. Replaces the current list, so send the ids to keep plus the new ones (leadListsData[].leadListSetIds in Get Campaign). On a running campaign, call Rerun Campaign for New Leads afterwards to reach the new sets' leads. |
| campaignsToRunOn | array | No | Retargeting source campaigns |
| commentToDM | array | No | [{ postUrl, trigger }] — LinkedIn post URLs, must be unique |
| likeToDM | array | No | [{ postUrl }] — LinkedIn post URLs, must be unique |
| pausedItem | number | No | Pause a specific part of the campaign |
| isArchived | boolean | No | Archive or unarchive the campaign |
| webhooksEnabled | boolean | No | Toggle webhooks for this campaign |
| workingHours | object | null | No | LinkedIn campaigns only: the campaign's own sending window, used instead of each LinkedIn account's schedule for this campaign's sends (account daily limits still apply). { timezone, schedule, repliesFollowWorkingHours? } — same shape as the account schedule without the limits. null returns to the account schedule. On non-LinkedIn campaigns it is saved as null. |
| customAnalyticsFields | array | No | [{ name, description }] — unique, JSON-key-safe names |
Request Body Example
{
"companyId": "456",
"name": "Q3 Founders Outreach",
"objective": "Book demos with seed-stage founders",
"communicationChannelToUse": 1,
"initialMessage": "Hi {{name}}, saw you're building in devtools..."
}Response (200 OK)
{
"updated": true,
"status": 200,
"payload": {}
}Error Responses
| Status | Description |
|---|---|
| 400 | Invalid or unknown fields in the body |
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 404 | Campaign not found |
| 409 | Campaign changed while the update was being applied |
| 429 | Too many requests — check Retry-After header and retry |
/campaigns/:campaignId/usersReturns a paginated list of users in a campaign.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| campaignId | string | Yes | The ID of the campaign |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| userChatStatus | number | No | Filter by user chat status |
| searchQuery | string | No | Search users by name |
| lastUserId | string | No | Pagination cursor — ID of the last user from previous page |
Response (200 OK)
[
{
"id": "456",
"name": "John Doe",
"phoneNumber": "+1234567890",
"email": null,
"linkedinChannelDetails": null,
"tags": [],
"aiChatOff": false,
"status": 1,
"lastMessageCreatedAt": "2024-01-01T00:00:00.000Z",
"createdAt": "2024-01-01T00:00:00.000Z"
}
]Error Responses
| Status | Description |
|---|---|
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 429 | Too many requests — check Retry-After header and retry |
/campaigns/:campaignId/users/:userId/messagesReturns messages in a user's conversation within a campaign, ordered oldest first.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| campaignId | string | Yes | The ID of the campaign |
| userId | string | Yes | The ID of the company user |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| lastMessageId | string | No | Pagination cursor — ID of the last message from previous page |
Response (200 OK)
[
{
"id": "789",
"senderType": "bot",
"content": "Hello, welcome!",
"type": "text",
"status": 2,
"communicationChannelUsed": 1,
"trigger": "initial",
"scheduledFor": null,
"createdAt": "2024-01-01T00:00:00.000Z"
}
]Error Responses
| Status | Description |
|---|---|
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 429 | Too many requests — check Retry-After header and retry |
/campaigns/:campaignId/human-interventionReturns users in the campaign that require human intervention.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| campaignId | string | Yes | The ID of the campaign |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| lastUserId | string | No | Pagination cursor — ID of the last user from previous page |
Response (200 OK)
[
{
"id": "456",
"name": "John Doe",
"phoneNumber": "+1234567890",
"email": null,
"linkedinChannelDetails": null,
"tags": [],
"aiChatOff": false,
"status": 1,
"lastMessageCreatedAt": "2024-01-01T00:00:00.000Z",
"createdAt": "2024-01-01T00:00:00.000Z"
}
]Error Responses
| Status | Description |
|---|---|
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 429 | Too many requests — check Retry-After header and retry |
/campaigns/generateAI-generates a new campaign based on a natural language description.
Authentication
Authorization: Bearer <token>
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| description | string | Yes | Natural language description of the campaign goal |
| communicationChannel | number | Yes | 1 = WhatsApp, 3 = LinkedIn, 5 = Email |
Request Body Example
{
"companyId": "123",
"description": "Reach out to CTOs at fintech companies about our new product",
"communicationChannel": 1
}Response (200 OK)
{
"id": "456",
"pendingCommentToDM": false,
"pendingMetaAdId": false,
"pendingProductLinks": []
}Error Responses
| Status | Description |
|---|---|
| 400 | Missing or invalid parameters |
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 429 | Too many requests — check Retry-After header and retry |
/campaigns/:campaignId/send-messageSends a message to a specific user in a campaign. On an email campaign the message is sent as a reply in the lead's email thread, so at least one email must already have been sent to that lead.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| campaignId | string | Yes | The ID of the campaign |
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| userId | string | Yes | The ID of the company user |
| message | string | Yes | The message text to send |
Request Body Example
{
"userId": "789",
"message": "Hello, following up on our conversation!"
}Response (200 OK)
{
"messageId": "xxxx"
}Error Responses
| Status | Description |
|---|---|
| 400 | User not in campaign, campaign not running, channel not connected, user in invalid chat state, or (email) no email sent to the lead yet or the lead has unsubscribed |
| 401 | Token expired or invalid — regenerate using /auth/token |
| 403 | Campaign does not belong to the logged-in user |
| 404 | Campaign not found |
| 409 | Lead is archived — unarchive it first |
| 429 | Too many requests — check Retry-After header and retry |
/campaigns/:campaignId/add-userAdds a new user to a campaign. WhatsApp campaigns require phoneNumber; LinkedIn campaigns require linkedinProfileUrl; email campaigns require email. A user added to a running email campaign is queued within a few minutes and emailed within the campaign's sending hours and daily limit. LinkedIn campaigns can also include customMessage for templates that use [custom message].
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| campaignId | string | Yes | The ID of the campaign |
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Full name of the user |
| phoneNumber | string | No | Required for WhatsApp campaigns |
| linkedinProfileUrl | string | No | Required for LinkedIn campaigns |
| string | No | Required for email campaigns | |
| customVariables | object | No | Key-value pairs of custom data to attach to the user. Keys and values must be non-empty strings. |
| customMessage | string | No | LinkedIn-only custom text used to replace [custom message] in campaign messages. |
Request Body Example
{
"name": "John Doe",
"linkedinProfileUrl": "https://www.linkedin.com/in/johndoe",
"customVariables": {
"company": "Acme Inc",
"role": "CTO"
},
"customMessage": "I noticed Acme recently expanded its engineering team."
}Response (200 OK)
This endpoint returns an empty response body (HTTP 200).
Error Responses
| Status | Description |
|---|---|
| 400 | Campaign not in a valid state, contact field does not match campaign channel, or customMessage is used outside a LinkedIn campaign |
| 401 | Token expired or invalid — regenerate using /auth/token |
| 403 | Campaign does not belong to the logged-in user |
| 404 | Campaign not found |
| 409 | User is already part of this campaign |
| 429 | Too many requests — check Retry-After header and retry |
/campaigns/:campaignId/rerunStarts the sequence for leads added to a running campaign since it was launched or last rerun, for example after a daily import. This is the dashboard's Run for New Leads button, with the same rules: the campaign must be running (status 7; any kind of pause is fine) and no scheduled batch may be waiting. If reachouts are paused, the new leads wait until reachouts are resumed and the response includes a note.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| campaignId | string | Yes | The ID of the campaign |
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
Request Body Example
{
"companyId": "123"
}Response (200 OK)
{
"accepted": true,
"jobId": "run-campaign-456"
}Error Responses
| Status | Description |
|---|---|
| 400 | Invalid or unknown fields in the body |
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 404 | Campaign not found |
| 409 | Campaign is not running, a scheduled batch has not run, or a run is already queued or in progress |
| 429 | Too many requests — check Retry-After header and retry |
/leads/:leadIdReturns a lead's name, status and LinkedIn profile: headline, location, summary and roles. linkedinProfileDetails is null when none is stored.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| leadId | string | Yes | The ID of the lead |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
Response (200 OK)
{
"id": "789",
"name": "John Doe",
"status": "unarchived",
"linkedinProfileDetails": {
"headline": "Founder at Acme",
"location": "Austin, Texas, United States",
"summary": "...",
"work_experience": [
{
"position": "Founder",
"company": "Acme",
"location": null,
"current": true,
"start": "1/2022",
"end": null
}
]
}
}Error Responses
| Status | Description |
|---|---|
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 404 | Lead not found in this company |
| 429 | Too many requests — check Retry-After header and retry |
/leads/:leadId/messages/:messageId/approvalActs on an AI draft waiting for approval (message status 6). edit needs content.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| leadId | string | Yes | The ID of the lead |
| messageId | string | Yes | The ID of the draft message |
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| action | string | Yes | approve, edit or delete |
| content | string | No | New text, required for edit |
Request Body Example
{
"companyId": "123",
"action": "approve"
}Response (200 OK)
{
"messageId": "456",
"status": 4
}Error Responses
| Status | Description |
|---|---|
| 400 | Invalid fields, or content missing for edit |
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 404 | Lead or message not found |
| 429 | Too many requests — check Retry-After header and retry |
| 409 | The message is no longer waiting for approval, or (approve) the lead is archived |
/leads/:leadIdArchives (archived: true) or unarchives (archived: false) a lead. leadId is the id returned by List Campaign Users. An archived lead gets no further invites, messages or follow-ups and is hidden in the inbox; when the sender next reaches it, it is removed from every campaign it is in, together with its messages in those campaigns. Unarchiving brings the lead back but does not put it back into those campaigns — add it again with Add User to Campaign. Repeating either action succeeds.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| leadId | string | Yes | The ID of the lead |
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| archived | boolean | Yes | true to archive, false to unarchive |
Request Body Example
{
"companyId": "123",
"archived": true
}Response (200 OK)
{
"leadId": "789",
"archived": true
}Error Responses
| Status | Description |
|---|---|
| 400 | Invalid, missing or unknown fields in the body |
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user, or you do not have permission to update leads |
| 404 | Lead not found in this company |
| 429 | Too many requests — check Retry-After header and retry |
/lead-lists/:leadListId/setsLists a lead list's imports, newest first, 20 per page. state is queued, running, succeeded or failed; terminal is true once it will not change again. Pass nextCursor as lastLeadListSetId for the next page; it is null on the last page.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| leadListId | string | Yes | The ID of the lead list |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| lastLeadListSetId | string | No | nextCursor from the previous page |
Response (200 OK)
{
"leadListSets": [
{
"id": "321",
"name": "Sales Navigator import",
"state": "succeeded",
"terminal": true,
"from": 1,
"to": 250,
"leadsExtracted": 250,
"createdAt": "2026-11-06T08:00:00.000Z"
}
],
"nextCursor": null
}Error Responses
| Status | Description |
|---|---|
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 403 | You do not have permission to view lead lists |
| 404 | Lead list not found in this company |
| 429 | Too many requests — check Retry-After header and retry |
/lead-lists/:leadListId/sets/:leadListSetId/usersLists the leads extracted by one import, 20 per page, in id order. id is the lead id used by Archive or Unarchive a Lead. Pass nextCursor as lastUserId for the next page; it is null on the last page.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| leadListId | string | Yes | The ID of the lead list |
| leadListSetId | string | Yes | The ID of the import (from List Lead-List Imports) |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| lastUserId | string | No | nextCursor from the previous page |
Response (200 OK)
{
"users": [
{
"id": "789",
"name": "John Doe",
"linkedinUrl": "https://linkedin.com/in/johndoe",
"headline": "Founder at Acme",
"isArchived": false
}
],
"nextCursor": null
}Error Responses
| Status | Description |
|---|---|
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 403 | You do not have permission to view lead lists |
| 404 | Lead list not found in this company, or the import is not in this lead list |
| 429 | Too many requests — check Retry-After header and retry |
/lead-lists/:leadListId/setsQueues the next batch of leads from the lead list's search, continuing where the last import stopped. For Sales Navigator and LinkedIn searches numberOfUsers must be 100–1000, and LinkedIn caps a search at 2,500 leads (1,000 for a classic LinkedIn search). Only one unfinished import is allowed per lead list: wait until the latest one has succeeded. Track progress with List Lead-List Imports. A new import is not part of any campaign: to send to its leads, add its id to the campaign's leadListSetsToRunOn with Update Campaign, then call Rerun Campaign for New Leads. If this call fails with a 500, check List Lead-List Imports before calling it again.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| leadListId | string | Yes | The ID of the lead list |
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| name | string | Yes | Name of the import |
| numberOfUsers | number | Yes | How many leads to import in this batch |
| updateOnConflict | boolean | No | Update leads that already exist in the company (default: true) |
Request Body Example
{
"companyId": "123",
"name": "Founders batch 2",
"numberOfUsers": 1000
}Response (200 OK)
{
"leadListSetId": "322",
"state": "queued"
}Error Responses
| Status | Description |
|---|---|
| 400 | Invalid or unknown fields, numberOfUsers out of range, or an import is still unfinished (the message says which) |
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user, all leads have already been extracted, or the LinkedIn cap is reached |
| 404 | Lead list not found in this company |
| 429 | Too many requests — check Retry-After header and retry |
/lead-lists/:leadListId/sets/:leadListSetId/retryQueues a failed import to run again. Only imports in the failed state can be retried.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| leadListId | string | Yes | The ID of the lead list |
| leadListSetId | string | Yes | The ID of the failed import |
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
Request Body Example
{
"companyId": "123"
}Response (200 OK)
{
"leadListSetId": "321",
"state": "queued"
}Error Responses
| Status | Description |
|---|---|
| 400 | Invalid or unknown fields |
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 404 | Lead list or import not found, or the import is not in the failed state |
| 429 | Too many requests — check Retry-After header and retry |
/communication-channels/linkedinReturns the company's connected LinkedIn accounts, oldest first. Use id as channelId in the schedule endpoints. Disconnected accounts are not listed.
Authentication
Authorization: Bearer <token>
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
Response (200 OK)
[
{
"id": "654",
"name": "Ada Lovelace"
},
{
"id": "655",
"name": "Alan Turing"
}
]Error Responses
| Status | Description |
|---|---|
| 400 | Missing or invalid companyId |
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
/communication-channels/linkedin/:channelId/schedule-settingsReturns a LinkedIn account's sending window. channelId is the id from List LinkedIn Accounts (GET /communication-channels/linkedin). scheduleSettings is null when no schedule has been set.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| channelId | string | Yes | The ID of the LinkedIn account |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
Response (200 OK)
{
"channelId": "654",
"name": "Ada Lovelace",
"scheduleSettings": {
"timezone": "America/New_York",
"schedule": {
"0": {
"enabled": false,
"startHour": 9,
"endHour": 17
},
"1": {
"enabled": true,
"startHour": 9,
"endHour": 17
},
"2": {
"enabled": true,
"startHour": 9,
"endHour": 17
},
"3": {
"enabled": true,
"startHour": 9,
"endHour": 17
},
"4": {
"enabled": true,
"startHour": 9,
"endHour": 17
},
"5": {
"enabled": true,
"startHour": 9,
"endHour": 17
},
"6": {
"enabled": false,
"startHour": 9,
"endHour": 17
}
},
"dailyInviteLimit": 30,
"repliesFollowWorkingHours": false
}
}Error Responses
| Status | Description |
|---|---|
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 404 | LinkedIn account not found in this company |
| 429 | Too many requests — check Retry-After header and retry |
/communication-channels/linkedin/:channelId/schedule-settingsSets a LinkedIn account's sending window and returns it as stored. The whole schedule is replaced, so send every field you want to keep. timezone is an IANA name such as America/New_York; schedule has keys 0 (Sunday) to 6 (Saturday), each null or { enabled, startHour 0–23, endHour 1–24 }. dailyInviteLimit is 1–50, capped at 25 for SDR accounts. Send scheduleSettings: null to remove the schedule, or applyToAll: true to apply it to every LinkedIn account in the company.
Authentication
Authorization: Bearer <token>
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| channelId | string | Yes | The ID of the LinkedIn account |
Request Body Fields
| Name | Type | Required | Description |
|---|---|---|---|
| companyId | string | Yes | The ID of the company |
| scheduleSettings | object | null | Yes | timezone, schedule, dailyInviteLimit, and optionally dailyInitialMessageLimit (1–200) and repliesFollowWorkingHours |
| applyToAll | boolean | No | Apply to every LinkedIn account in the company |
Request Body Example
{
"companyId": "123",
"scheduleSettings": {
"timezone": "America/New_York",
"schedule": {
"0": {
"enabled": false,
"startHour": 9,
"endHour": 17
},
"1": {
"enabled": true,
"startHour": 9,
"endHour": 17
},
"2": {
"enabled": true,
"startHour": 9,
"endHour": 17
},
"3": {
"enabled": true,
"startHour": 9,
"endHour": 17
},
"4": {
"enabled": true,
"startHour": 9,
"endHour": 17
},
"5": {
"enabled": true,
"startHour": 9,
"endHour": 17
},
"6": {
"enabled": false,
"startHour": 9,
"endHour": 17
}
},
"dailyInviteLimit": 30
},
"applyToAll": false
}Response (200 OK)
{
"channelId": "654",
"name": "Ada Lovelace",
"scheduleSettings": {
"timezone": "America/New_York",
"dailyInviteLimit": 30
}
}Error Responses
| Status | Description |
|---|---|
| 400 | Invalid schedule (the message names the field) or unknown fields |
| 401 | Token expired or invalid |
| 403 | Company does not belong to the logged-in user |
| 404 | LinkedIn account not found in this company |
| 429 | Too many requests — check Retry-After header and retry |