> ## Documentation Index
> Fetch the complete documentation index at: https://bavlio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Disconnect a LinkedIn account

> Signs the account out at the LinkedIn connector, frees its seat on the plan and deletes its conversations outside campaigns from Bavlio. Its campaigns stay bound to it and pause until it is connected again; an account no campaign uses is removed. Returns the remaining accounts.

## OpenAPI

```json
{
  "openapi": "3.2.0",
  "info": {
    "title": "Bavlio API",
    "version": "1.0.0"
  },
  "paths": {
    "/linkedin/{id}": {
      "delete": {
        "tags": [
          "LinkedIn"
        ],
        "operationId": "linkedin.disconnectLinkedIn",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string",
              "description": "The LinkedIn account's id, from List LinkedIn accounts."
            },
            "required": true
          }
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "senders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The LinkedIn account's id; campaigns refer to it as sender_id."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "connected",
                              "checkpoint_required",
                              "disconnected"
                            ],
                            "description": "connected: signed in and able to send. checkpoint_required: LinkedIn waits for the sign-in to be confirmed. disconnected: signed out; connect it again with its id as sender_id to resume its campaigns."
                          },
                          "name": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The member's name on LinkedIn; null until a sign-in completes."
                          },
                          "kind": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "premium",
                                  "free"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Whether the LinkedIn account is premium or free; null until a sign-in completes."
                          },
                          "profile_url": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The member's LinkedIn profile URL; null when unknown."
                          },
                          "checkpoint_type": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "email",
                                  "sms",
                                  "authenticator_app",
                                  "app_approval",
                                  "code"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "How LinkedIn wants the sign-in confirmed while status is checkpoint_required: email, sms, authenticator_app or code (send that code), or app_approval (the member approves the sign-in in the LinkedIn app, then confirm without a code). Null otherwise."
                          },
                          "sent_to": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Where LinkedIn sent the code, as LinkedIn reports it; null when no code was sent."
                          },
                          "country": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "US",
                                  "CA",
                                  "MX",
                                  "CR",
                                  "BR",
                                  "AR",
                                  "CL",
                                  "CO",
                                  "FR",
                                  "UK",
                                  "DE",
                                  "NL",
                                  "ES",
                                  "IT",
                                  "PT",
                                  "BE",
                                  "CH",
                                  "AT",
                                  "IE",
                                  "SE",
                                  "DK",
                                  "FI",
                                  "LT",
                                  "LV",
                                  "EE",
                                  "PL",
                                  "CZ",
                                  "SK",
                                  "HU",
                                  "RO",
                                  "UA",
                                  "SI",
                                  "HR",
                                  "RS",
                                  "AL",
                                  "GR",
                                  "CY",
                                  "TR",
                                  "IL",
                                  "AE",
                                  "EG",
                                  "ZA",
                                  "IN",
                                  "PK",
                                  "BD",
                                  "JP",
                                  "SG",
                                  "MY",
                                  "ID",
                                  "TH",
                                  "PH",
                                  "AU"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "The country LinkedIn sees the account from, as an ISO 3166-1 alpha-2 code, with UK for the United Kingdom; null when unknown."
                          },
                          "connected_at": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "When the account was connected, ISO 8601; null while it is not connected."
                          },
                          "campaign_count": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "description": "How many campaigns, archived ones aside, send from this account.",
                            "allOf": [
                              {
                                "minimum": 0
                              }
                            ]
                          },
                          "held_back": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "limit": {
                                    "type": "string",
                                    "enum": [
                                      "linkedin_limited",
                                      "invite_limit",
                                      "repeated_refusals"
                                    ],
                                    "description": "Why: linkedin_limited (LinkedIn limited the account; nothing is sent from it), repeated_refusals (LinkedIn refused several actions in a row; nothing is sent from it) or invite_limit (LinkedIn's invitation limit was reached; no invitations go out)."
                                  },
                                  "until": {
                                    "type": "string",
                                    "description": "When the hold ends, ISO 8601."
                                  }
                                },
                                "required": [
                                  "limit",
                                  "until"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Why and until when Bavlio holds the account back after a LinkedIn limit; null when it doesn't."
                          },
                          "all_messages": {
                            "type": "boolean",
                            "description": "Whether the inbox also keeps the account's conversations outside campaigns."
                          },
                          "message_import": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "checked": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991,
                                    "description": "How many of the account's most recent conversations, up to 50, were checked so far.",
                                    "allOf": [
                                      {
                                        "minimum": 0
                                      }
                                    ]
                                  },
                                  "done": {
                                    "type": "boolean",
                                    "description": "True once the import finished; new messages keep arriving after that."
                                  }
                                },
                                "required": [
                                  "checked",
                                  "done"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Progress of bringing in the account's recent conversations; null while all_messages is off."
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "name",
                          "kind",
                          "profile_url",
                          "checkpoint_type",
                          "sent_to",
                          "country",
                          "connected_at",
                          "campaign_count",
                          "held_back",
                          "all_messages",
                          "message_import"
                        ],
                        "additionalProperties": false
                      },
                      "description": "The workspace's LinkedIn accounts."
                    }
                  },
                  "required": [
                    "senders"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "LinkedInLoginRejected | LinkedInCheckpointFailed | RequestInvalidBody",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/LinkedInLoginRejectedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInCheckpointFailedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/RequestInvalidBodyEncoded"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "AuthMissing | AuthInvalid",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/AuthMissingEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/AuthInvalidEncoded"
                    }
                  ]
                }
              }
            }
          },
          "402": {
            "description": "LinkedInSeatUnavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedInSeatUnavailableEncoded"
                }
              }
            }
          },
          "404": {
            "description": "WorkspaceNotFound | LinkedInNotPending | LinkedInSenderNotFound",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/WorkspaceNotFoundEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInNotPendingEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInSenderNotFoundEncoded"
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "LinkedInCheckpointExpired | LinkedInAlreadyConnected | LinkedInMemberMismatch | LinkedInMemberInUse | LinkedInAccountDisconnected | LinkedInCheckpointRequired | LinkedInActionRejected | LinkedInRefused | LinkedInCountryRefused",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/LinkedInCheckpointExpiredEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInAlreadyConnectedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInMemberMismatchEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInMemberInUseEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInAccountDisconnectedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInCheckpointRequiredEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInActionRejectedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInRefusedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInCountryRefusedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "LinkedInOutcomeUnknown | LinkedInFailed | BillingFailed",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/LinkedInOutcomeUnknownEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInFailedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/BillingFailedEncoded"
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "LinkedInRateLimited | LinkedInInviteLimitReached | LinkedInUnavailable | BillingUnavailable",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/LinkedInRateLimitedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInInviteLimitReachedEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/LinkedInUnavailableEncoded"
                    },
                    {
                      "$ref": "#/components/schemas/BillingUnavailableEncoded"
                    }
                  ]
                }
              }
            }
          }
        },
        "description": "Signs the account out at the LinkedIn connector, frees its seat on the plan and deletes its conversations outside campaigns from Bavlio. Its campaigns stay bound to it and pause until it is connected again; an account no campaign uses is removed. Returns the remaining accounts.",
        "summary": "Disconnect a LinkedIn account"
      }
    }
  },
  "components": {
    "schemas": {
      "AuthInvalidEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AuthInvalid"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              401
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "auth_invalid"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "Bearer credential rejected"
            ]
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "AuthMissingEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "AuthMissing"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              401
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "auth_missing"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "Bearer credential required"
            ]
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "BillingFailedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "BillingFailed"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              502
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "billing_failed"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "BillingUnavailableEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "BillingUnavailable"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              503
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "billing_unavailable"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "RequestInvalidBodyEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "RequestInvalidBody"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              400
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "invalid_body"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "WorkspaceNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "WorkspaceNotFound"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              404
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "workspace_not_found"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "No such workspace for this account: save a company profile or pick a workspace you belong to"
            ]
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInFailedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInFailed"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              502
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_failed"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInOutcomeUnknownEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInOutcomeUnknown"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              502
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_outcome_unknown"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInUnavailableEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInUnavailable"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              503
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_unavailable"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInInviteLimitReachedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInInviteLimitReached"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              503
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_invite_limit_reached"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInRateLimitedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInRateLimited"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              503
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_rate_limited"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInSeatUnavailableEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInSeatUnavailable"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              402
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_seat_unavailable"
            ]
          },
          "message": {
            "type": "string"
          },
          "granted": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message",
          "granted"
        ],
        "additionalProperties": false
      },
      "LinkedInCountryRefusedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInCountryRefused"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              409
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_country_refused"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "LinkedIn did not accept the account from that country, so nothing changed: disconnect it and sign in again choosing that country"
            ]
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInRefusedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInRefused"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              409
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_refused"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInActionRejectedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInActionRejected"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              409
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_action_rejected"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInCheckpointRequiredEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInCheckpointRequired"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              409
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_checkpoint_required"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInAccountDisconnectedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInAccountDisconnected"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              409
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_account_disconnected"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInMemberInUseEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInMemberInUse"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              409
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_member_in_use"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "This LinkedIn member is already connected as another sender"
            ]
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInMemberMismatchEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInMemberMismatch"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              409
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_member_mismatch"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "This sender is another LinkedIn member: sign in with that person's account, or add a new sender"
            ]
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInAlreadyConnectedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInAlreadyConnected"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              409
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_already_connected"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "This LinkedIn account is already connected: disconnect it first"
            ]
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInCheckpointExpiredEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInCheckpointExpired"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              409
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_checkpoint_expired"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "The LinkedIn sign-in expired: sign in again"
            ]
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInCheckpointFailedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInCheckpointFailed"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              400
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_checkpoint_failed"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInLoginRejectedEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInLoginRejected"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              400
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_login_rejected"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInSenderNotFoundEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInSenderNotFound"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              404
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_sender_not_found"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "No LinkedIn sender with this id belongs to the workspace"
            ]
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      },
      "LinkedInNotPendingEncoded": {
        "type": "object",
        "properties": {
          "_tag": {
            "type": "string",
            "enum": [
              "LinkedInNotPending"
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              404
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "linkedin_not_pending"
            ]
          },
          "message": {
            "type": "string",
            "enum": [
              "No LinkedIn sign-in is waiting to be confirmed: sign in first"
            ]
          }
        },
        "required": [
          "_tag",
          "statusCode",
          "code",
          "message"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "bearer": {
        "description": "Send `Authorization: Bearer <token>`. The token is an API key, which starts with `bav_` and comes from creating an API key or starting a registration, or the access token of a Bavlio sign-in.",
        "type": "http",
        "scheme": "Bearer"
      }
    }
  },
  "security": [],
  "tags": [
    {
      "name": "Registration",
      "description": "Open a Bavlio account without signing in. Starting a registration returns an API key for a new ephemeral account, which becomes permanent once its email address is verified."
    },
    {
      "name": "Authentication",
      "description": "Identify the calling account, finish a registration and manage the account's API keys."
    },
    {
      "name": "Account",
      "description": "The account behind your sign-in, and deleting it."
    },
    {
      "name": "Workspaces",
      "description": "A workspace holds the company profile, outreach schedule, team, campaigns and billing Bavlio works with. Calls that act in a workspace use the one whose id is in the bavlio-workspace header, or the account's default workspace when the header is absent."
    },
    {
      "name": "Teams",
      "description": "Manage who belongs to a workspace: its members, their roles and the invitations to join it. Each workspace's plan sets how many team seats it has."
    },
    {
      "name": "Campaigns",
      "description": "A campaign finds leads that match an ideal customer profile (ICP) and buying signals, and reaches out to them through its sequence of LinkedIn and email steps."
    },
    {
      "name": "Lead imports",
      "description": "Bring your own leads: preview a CSV, confirm which column holds what, then import it into a campaign, where the leads go through the same sequence as the ones Bavlio finds."
    },
    {
      "name": "Sequences",
      "description": "A campaign's sequence is the steps Bavlio runs for each lead: profile visits, likes, invites, LinkedIn messages, emails, waits and conditions. Every message and email waits in the review queue for approval before it is sent."
    },
    {
      "name": "Inbox",
      "description": "Conversations with the people your campaigns reached and, for accounts that opt in, your other LinkedIn and email conversations: read them, reply to them and follow changes live."
    },
    {
      "name": "Reviews",
      "description": "Messages and emails go to a lead only after someone approves them. The review queue holds the replies Bavlio drafted for people who answered and the messages and emails it drafted for campaign sequences."
    },
    {
      "name": "Billing",
      "description": "The plans on offer and the workspace's subscription and usage. Plan changes, cancellation and the billing portal need the workspace owner or an admin."
    },
    {
      "name": "LinkedIn",
      "description": "Connect the LinkedIn accounts your campaigns send from, confirm their sign-ins, choose the country LinkedIn sees them from, and disconnect them."
    },
    {
      "name": "Meetings",
      "description": "Meetings booked through the workspace's calendar tool (Google Calendar, Calendly or Cal.com), and the calendar connection that imports them."
    },
    {
      "name": "Email",
      "description": "Connect a Bavimail account, add sending domains and tracking domains, and create the inboxes campaigns send email from."
    }
  ],
  "servers": [
    {
      "url": "https://api.bavlio.com"
    }
  ]
}
```
