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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Hosted Auth Link (temp verification)

> Create a hosted authorization link for connecting a LinkedIn account.

Returns a HostedAuthUrl that you send the end user to. They complete the LinkedIn sign-in on Unipile's hosted page, so no credentials ever touch your system. **Managed mode (recommended): omit `notify_url`** and AISA handles everything — poll `GET /apis/v1/unipile/me/accounts` until the account appears (usually within seconds of the user finishing the wizard); no webhook infrastructure needed on your side. **Self-hosted mode: pass your own `notify_url`** and Unipile POSTs `{"status":"CREATION_SUCCESS","account_id":"…","name":"…"}` to it when the flow completes — store that account\_id, it is the identifier every other endpoint requires, and with your own webhook there is no listing endpoint to re-discover it (managed-mode users read `me/accounts` instead). The `name` you set here is echoed back in self-hosted mode, so use it to map the account to your own user. Reply 200 within 30 seconds or the event is retried five times; consider verifying a shared-secret header on your endpoint. Links expire on Unipile's daily restart regardless of `expiresOn`, so generate a fresh link each time a user wants to connect. Note: re-authorizing the same LinkedIn account creates a new account\_id; earlier bindings remain listed until disconnected.

See Pricing for current prices. Where supported, get a quote for your request.

## Example

```bash REST theme={null}
curl -X POST "https://api.aisa.one/apis/v1/unipile/hosted/link" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type": "create", "providers": ["LINKEDIN"], "api_url": "https://api68.unipile.com:19823", "expiresOn": "2026-12-31T23:59:59.999Z", "name": "your-internal-user-id", "notify_url": "https://example.com/hooks/unipile", "success_redirect_url": "https://example.com/connected", "failure_redirect_url": "https://example.com/failed"}'
```

Path parameters and required query parameters are documented in the operation reference.

## Request contract

* **Method and path:** POST /apis/v1/unipile/hosted/link
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/unipile/hosted/link`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/unipile.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "post_unipile_apis_v1_unipile_hosted_link",
  "method": "POST",
  "path": "/apis/v1/unipile/hosted/link",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "anyOf": [
            {
              "properties": {
                "api_url": {
                  "description": "The url of your Unipile server  : https://{subdomain}.unipile.com:{port}"
                },
                "bypass_success_screen": {
                  "description": "Whether to bypass the hosted auth success screen before accessing the success_redirect_url.",
                  "type": "boolean"
                },
                "disabled_features": {
                  "description": "An array of features that should be disabled in this account. Accepted values : linkedin_recruiter | linkedin_sales_navigator | linkedin_organizations_mailboxes.",
                  "items": {
                    "enum": [
                      "linkedin_recruiter",
                      "linkedin_sales_navigator",
                      "linkedin_organizations_mailboxes"
                    ],
                    "type": "string"
                  },
                  "type": "array"
                },
                "disabled_options": {
                  "description": "An array of options that should be disabled in hosted auth interface. Accepted values : proxy | autoproxy | cookie_auth | credentials_auth | qrcode_auth | pairing_code_auth | sync_limit | language. `qrcode_auth` and `pairing_code_auth` are currently supported for WhatsApp only.",
                  "items": {
                    "enum": [
                      "proxy",
                      "autoproxy",
                      "cookie_auth",
                      "credentials_auth",
                      "qrcode_auth",
                      "pairing_code_auth",
                      "sync_limit",
                      "language"
                    ],
                    "type": "string"
                  },
                  "type": "array"
                },
                "expiresOn": {
                  "description": "An ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️ All links expire upon daily restart, regardless of their stated expiration date. A new link must be generated each time a user clicks on your app to connect.",
                  "example": "2025-12-31T23:59:59.999Z",
                  "pattern": "^[1-2]\\d{3}-[0-1]\\d-[0-3]\\dT\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$"
                },
                "failure_redirect_url": {
                  "description": "A url where you might want to redirect the user in case of a failed authentication."
                },
                "google_scopes": {
                  "description": "Optional comma-separated list of scopes to use for GOOGLE_OAUTH accounts",
                  "format": "googleScopes",
                  "type": "string"
                },
                "microsoft_scopes": {
                  "description": "Optional comma-separated list of scopes to use for OUTLOOK accounts.\n\nTo enable delegated mailbox authentication, Include Mail.ReadWrite.Shared, Mail.Send.Shared, Contacts.Read.Shared, and User.ReadBasic.All.",
                  "format": "microsoftScopes",
                  "type": "string"
                },
                "name": {
                  "description": "This field will be sent back to you in the notify_url to help match the added account with your user.",
                  "minLength": 1,
                  "type": "string"
                },
                "notify_url": {
                  "description": "A url where you can be notified about events related to the authentication process."
                },
                "providers": {
                  "anyOf": [
                    {
                      "description": "Data type: string",
                      "enum": [
                        "*"
                      ],
                      "title": "Any provider",
                      "type": "string"
                    },
                    {
                      "description": "Data type: string",
                      "enum": [
                        "*:MAILING"
                      ],
                      "title": "Any mailing provider",
                      "type": "string"
                    },
                    {
                      "description": "Data type: string",
                      "enum": [
                        "*:MESSAGING"
                      ],
                      "title": "Any messaging provider",
                      "type": "string"
                    },
                    {
                      "description": "Data type: string",
                      "enum": [
                        "*:CALENDAR"
                      ],
                      "title": "Any calendar provider",
                      "type": "string"
                    },
                    {
                      "description": "Data type: Array of strings. Accepted values: LINKEDIN | WHATSAPP | INSTAGRAM | MESSENGER | TELEGRAM | GOOGLE | OUTLOOK | MAIL | TWITTER",
                      "items": {
                        "enum": [
                          "LINKEDIN",
                          "WHATSAPP",
                          "INSTAGRAM",
                          "MESSENGER",
                          "TELEGRAM",
                          "GOOGLE",
                          "OUTLOOK",
                          "TWITTER",
                          "MAIL"
                        ],
                        "type": "string"
                      },
                      "title": "One or more providers",
                      "type": "array"
                    }
                  ],
                  "description": "The providers for whom you want to propose to connect an account."
                },
                "proxy": {
                  "properties": {
                    "host": {
                      "type": "string"
                    },
                    "password": {
                      "description": "Optional password for proxy’s authentication.",
                      "type": "string"
                    },
                    "port": {
                      "type": "number"
                    },
                    "protocol": {
                      "enum": [
                        "https",
                        "http",
                        "socks5"
                      ],
                      "type": "string"
                    },
                    "username": {
                      "description": "Optional username for proxy’s authentication.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "port",
                    "host"
                  ],
                  "type": "object"
                },
                "single_use": {
                  "description": "Whether the hosted authentication link can be used to connect only one account. Defaults to false.",
                  "type": "boolean"
                },
                "success_redirect_url": {
                  "description": "A url where you might want to redirect the user in case of a successful authentication."
                },
                "sync_limit": {
                  "properties": {
                    "MAILING": {
                      "enum": [
                        "NO_HISTORY_SYNC"
                      ],
                      "type": "string"
                    },
                    "MESSAGING": {
                      "description": "Set a sync limit either for chats, messages or both. Chats limit will apply to each inbox, whereas messages limit will apply to each chat. No value will not apply any limit (default behaviour). Providers partial support.",
                      "properties": {
                        "chats": {
                          "anyOf": [
                            {
                              "description": "An ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️ All links expire upon daily restart, regardless of their stated expiration date. A new link must be generated each time a user clicks on your app to connect.",
                              "example": "2025-12-31T23:59:59.999Z",
                              "pattern": "^[1-2]\\d{3}-[0-1]\\d-[0-3]\\dT\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$"
                            },
                            {
                              "description": "The quantity of data that should be synced from data history. 0 will not sync history.",
                              "minimum": 0,
                              "type": "number"
                            }
                          ],
                          "description": "Either a UTC Datetime to start sync from, or a quantity of data."
                        },
                        "messages": {
                          "anyOf": [
                            {
                              "description": "An ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️ All links expire upon daily restart, regardless of their stated expiration date. A new link must be generated each time a user clicks on your app to connect.",
                              "example": "2025-12-31T23:59:59.999Z",
                              "pattern": "^[1-2]\\d{3}-[0-1]\\d-[0-3]\\dT\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$"
                            },
                            {
                              "description": "The quantity of data that should be synced from data history. 0 will not sync history.",
                              "minimum": 0,
                              "type": "number"
                            }
                          ],
                          "description": "Either a UTC Datetime to start sync from, or a quantity of data."
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "description": "A litteral value to choose between a connection or a reconnection.",
                  "enum": [
                    "create"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "expiresOn",
                "api_url",
                "type",
                "providers"
              ],
              "title": "Connection link",
              "type": "object"
            },
            {
              "properties": {
                "api_url": {
                  "description": "The url of your Unipile server  : https://{subdomain}.unipile.com:{port}"
                },
                "bypass_success_screen": {
                  "description": "Whether to bypass the hosted auth success screen before accessing the success_redirect_url.",
                  "type": "boolean"
                },
                "disabled_features": {
                  "description": "An array of features that should be disabled in this account. Accepted values : linkedin_recruiter | linkedin_sales_navigator | linkedin_organizations_mailboxes.",
                  "items": {
                    "enum": [
                      "linkedin_recruiter",
                      "linkedin_sales_navigator",
                      "linkedin_organizations_mailboxes"
                    ],
                    "type": "string"
                  },
                  "type": "array"
                },
                "disabled_options": {
                  "description": "An array of options that should be disabled in hosted auth interface. Accepted values : proxy | autoproxy | cookie_auth | credentials_auth | qrcode_auth | pairing_code_auth | sync_limit | language. `qrcode_auth` and `pairing_code_auth` are currently supported for WhatsApp only.",
                  "items": {
                    "enum": [
                      "proxy",
                      "autoproxy",
                      "cookie_auth",
                      "credentials_auth",
                      "qrcode_auth",
                      "pairing_code_auth",
                      "sync_limit",
                      "language"
                    ],
                    "type": "string"
                  },
                  "type": "array"
                },
                "expiresOn": {
                  "description": "An ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️ All links expire upon daily restart, regardless of their stated expiration date. A new link must be generated each time a user clicks on your app to connect.",
                  "example": "2025-12-31T23:59:59.999Z",
                  "pattern": "^[1-2]\\d{3}-[0-1]\\d-[0-3]\\dT\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$"
                },
                "failure_redirect_url": {
                  "description": "A url where you might want to redirect the user in case of a failed authentication."
                },
                "google_scopes": {
                  "description": "Optional comma-separated list of scopes to use for GOOGLE_OAUTH accounts",
                  "format": "googleScopes",
                  "type": "string"
                },
                "microsoft_scopes": {
                  "description": "Optional comma-separated list of scopes to use for OUTLOOK accounts.\n\nTo enable delegated mailbox authentication, Include Mail.ReadWrite.Shared, Mail.Send.Shared, Contacts.Read.Shared, and User.ReadBasic.All.",
                  "format": "microsoftScopes",
                  "type": "string"
                },
                "name": {
                  "description": "This field will be sent back to you in the notify_url to help match the added account with your user.",
                  "minLength": 1,
                  "type": "string"
                },
                "notify_url": {
                  "description": "A url where you can be notified about events related to the authentication process."
                },
                "proxy": {
                  "properties": {
                    "host": {
                      "type": "string"
                    },
                    "password": {
                      "description": "Optional password for proxy’s authentication.",
                      "type": "string"
                    },
                    "port": {
                      "type": "number"
                    },
                    "protocol": {
                      "enum": [
                        "https",
                        "http",
                        "socks5"
                      ],
                      "type": "string"
                    },
                    "username": {
                      "description": "Optional username for proxy’s authentication.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "port",
                    "host"
                  ],
                  "type": "object"
                },
                "reconnect_account": {
                  "description": "The id of the account to reconnect.",
                  "minLength": 1,
                  "type": "string"
                },
                "success_redirect_url": {
                  "description": "A url where you might want to redirect the user in case of a successful authentication."
                },
                "sync_limit": {
                  "properties": {
                    "MAILING": {
                      "enum": [
                        "NO_HISTORY_SYNC"
                      ],
                      "type": "string"
                    },
                    "MESSAGING": {
                      "description": "Set a sync limit either for chats, messages or both. Chats limit will apply to each inbox, whereas messages limit will apply to each chat. No value will not apply any limit (default behaviour). Providers partial support.",
                      "properties": {
                        "chats": {
                          "anyOf": [
                            {
                              "description": "An ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️ All links expire upon daily restart, regardless of their stated expiration date. A new link must be generated each time a user clicks on your app to connect.",
                              "example": "2025-12-31T23:59:59.999Z",
                              "pattern": "^[1-2]\\d{3}-[0-1]\\d-[0-3]\\dT\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$"
                            },
                            {
                              "description": "The quantity of data that should be synced from data history. 0 will not sync history.",
                              "minimum": 0,
                              "type": "number"
                            }
                          ],
                          "description": "Either a UTC Datetime to start sync from, or a quantity of data."
                        },
                        "messages": {
                          "anyOf": [
                            {
                              "description": "An ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️ All links expire upon daily restart, regardless of their stated expiration date. A new link must be generated each time a user clicks on your app to connect.",
                              "example": "2025-12-31T23:59:59.999Z",
                              "pattern": "^[1-2]\\d{3}-[0-1]\\d-[0-3]\\dT\\d{2}:\\d{2}:\\d{2}.\\d{3}Z$"
                            },
                            {
                              "description": "The quantity of data that should be synced from data history. 0 will not sync history.",
                              "minimum": 0,
                              "type": "number"
                            }
                          ],
                          "description": "Either a UTC Datetime to start sync from, or a quantity of data."
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "description": "A litteral value to choose between a connection or a reconnection.",
                  "enum": [
                    "reconnect"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "expiresOn",
                "api_url",
                "type",
                "reconnect_account"
              ],
              "title": "Reconnection link",
              "type": "object"
            }
          ]
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Published reference price: \$0.000001 USD per successful request. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/unipile.json POST /apis/v1/unipile/hosted/link
openapi: 3.1.0
info:
  description: ''
  title: Unipile (LinkedIn)
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    unipile:
      description: ''
      title: Unipile (LinkedIn)
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 00b882f06149b4c72a4dc077c20cc1c4d86d5a8da50fcc725538d6debed194ac
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/unipile/accounts
    - /apis/v1/unipile/hosted/link
    - /apis/v1/unipile/linkedin/chats
    - /apis/v1/unipile/linkedin/chats/send
    - /apis/v1/unipile/linkedin/chats/{chat_id}/messages
    - /apis/v1/unipile/linkedin/chats/{chat_id}/messages/send
    - /apis/v1/unipile/linkedin/company/{identifier}
    - /apis/v1/unipile/linkedin/connection-requests/send
    - /apis/v1/unipile/linkedin/invitations/received
    - /apis/v1/unipile/linkedin/invitations/sent
    - /apis/v1/unipile/linkedin/invitations/sent/{invitation_id}
    - /apis/v1/unipile/linkedin/me
    - >-
      /apis/v1/unipile/linkedin/messages/{message_id}/attachments/{attachment_id}
    - /apis/v1/unipile/linkedin/messages/{message_id}/reaction
    - /apis/v1/unipile/linkedin/posts
    - /apis/v1/unipile/linkedin/posts/reaction/send
    - /apis/v1/unipile/linkedin/posts/{post_id}
    - /apis/v1/unipile/linkedin/posts/{post_id}/comments
    - /apis/v1/unipile/linkedin/posts/{post_id}/comments/send
    - /apis/v1/unipile/linkedin/recruiter/job-slots-credits/{account_id}
    - /apis/v1/unipile/linkedin/relations
    - /apis/v1/unipile/linkedin/search
    - /apis/v1/unipile/linkedin/search/parameters
    - /apis/v1/unipile/linkedin/users/{identifier}
    - /apis/v1/unipile/linkedin/users/{user_id}/posts
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:767072c42d9ff02e79a61a06a858bae7b85c1868dd65963f411c7183d1137934
    facts_hash: 00b882f06149b4c72a4dc077c20cc1c4d86d5a8da50fcc725538d6debed194ac
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: unipile
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/unipile/hosted/link:
    post:
      tags:
        - linkedin-messaging
      summary: Hosted Auth Link (temp verification)
      description: >-
        Create a url which redirect to Unipile's hosted authentication to
        connect or reconnect an account.


        TEMP: hosted auth wizard link generation for authorization-flow
        verification. Delete after use.
      operationId: post_unipile_apis_v1_unipile_hosted_link
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - properties:
                    api_url:
                      description: >-
                        The url of your Unipile server  :
                        https://{subdomain}.unipile.com:{port}
                    bypass_success_screen:
                      description: >-
                        Whether to bypass the hosted auth success screen before
                        accessing the success_redirect_url.
                      type: boolean
                    disabled_features:
                      description: >-
                        An array of features that should be disabled in this
                        account. Accepted values : linkedin_recruiter |
                        linkedin_sales_navigator |
                        linkedin_organizations_mailboxes.
                      items:
                        enum:
                          - linkedin_recruiter
                          - linkedin_sales_navigator
                          - linkedin_organizations_mailboxes
                        type: string
                      type: array
                    disabled_options:
                      description: >-
                        An array of options that should be disabled in hosted
                        auth interface. Accepted values : proxy | autoproxy |
                        cookie_auth | credentials_auth | qrcode_auth |
                        pairing_code_auth | sync_limit | language. `qrcode_auth`
                        and `pairing_code_auth` are currently supported for
                        WhatsApp only.
                      items:
                        enum:
                          - proxy
                          - autoproxy
                          - cookie_auth
                          - credentials_auth
                          - qrcode_auth
                          - pairing_code_auth
                          - sync_limit
                          - language
                        type: string
                      type: array
                    expiresOn:
                      description: >-
                        An ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️
                        All links expire upon daily restart, regardless of their
                        stated expiration date. A new link must be generated
                        each time a user clicks on your app to connect.
                      example: '2025-12-31T23:59:59.999Z'
                      pattern: ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
                    failure_redirect_url:
                      description: >-
                        A url where you might want to redirect the user in case
                        of a failed authentication.
                    google_scopes:
                      description: >-
                        Optional comma-separated list of scopes to use for
                        GOOGLE_OAUTH accounts
                      format: googleScopes
                      type: string
                    microsoft_scopes:
                      description: >-
                        Optional comma-separated list of scopes to use for
                        OUTLOOK accounts.


                        To enable delegated mailbox authentication, Include
                        Mail.ReadWrite.Shared, Mail.Send.Shared,
                        Contacts.Read.Shared, and User.ReadBasic.All.
                      format: microsoftScopes
                      type: string
                    name:
                      description: >-
                        This field will be sent back to you in the notify_url to
                        help match the added account with your user.
                      minLength: 1
                      type: string
                    notify_url:
                      description: >-
                        A url where you can be notified about events related to
                        the authentication process.
                    providers:
                      anyOf:
                        - description: 'Data type: string'
                          enum:
                            - '*'
                          title: Any provider
                          type: string
                        - description: 'Data type: string'
                          enum:
                            - '*:MAILING'
                          title: Any mailing provider
                          type: string
                        - description: 'Data type: string'
                          enum:
                            - '*:MESSAGING'
                          title: Any messaging provider
                          type: string
                        - description: 'Data type: string'
                          enum:
                            - '*:CALENDAR'
                          title: Any calendar provider
                          type: string
                        - description: >-
                            Data type: Array of strings. Accepted values:
                            LINKEDIN | WHATSAPP | INSTAGRAM | MESSENGER |
                            TELEGRAM | GOOGLE | OUTLOOK | MAIL | TWITTER
                          items:
                            enum:
                              - LINKEDIN
                              - WHATSAPP
                              - INSTAGRAM
                              - MESSENGER
                              - TELEGRAM
                              - GOOGLE
                              - OUTLOOK
                              - TWITTER
                              - MAIL
                            type: string
                          title: One or more providers
                          type: array
                      description: >-
                        The providers for whom you want to propose to connect an
                        account.
                    proxy:
                      properties:
                        host:
                          type: string
                        password:
                          description: Optional password for proxy’s authentication.
                          type: string
                        port:
                          type: number
                        protocol:
                          enum:
                            - https
                            - http
                            - socks5
                          type: string
                        username:
                          description: Optional username for proxy’s authentication.
                          type: string
                      required:
                        - port
                        - host
                      type: object
                    single_use:
                      description: >-
                        Whether the hosted authentication link can be used to
                        connect only one account. Defaults to false.
                      type: boolean
                    success_redirect_url:
                      description: >-
                        A url where you might want to redirect the user in case
                        of a successful authentication.
                    sync_limit:
                      properties:
                        MAILING:
                          enum:
                            - NO_HISTORY_SYNC
                          type: string
                        MESSAGING:
                          description: >-
                            Set a sync limit either for chats, messages or both.
                            Chats limit will apply to each inbox, whereas
                            messages limit will apply to each chat. No value
                            will not apply any limit (default behaviour).
                            Providers partial support.
                          properties:
                            chats:
                              anyOf:
                                - description: >-
                                    An ISO 8601 UTC datetime
                                    (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️ All links
                                    expire upon daily restart, regardless of
                                    their stated expiration date. A new link
                                    must be generated each time a user clicks on
                                    your app to connect.
                                  example: '2025-12-31T23:59:59.999Z'
                                  pattern: >-
                                    ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
                                - description: >-
                                    The quantity of data that should be synced
                                    from data history. 0 will not sync history.
                                  minimum: 0
                                  type: number
                              description: >-
                                Either a UTC Datetime to start sync from, or a
                                quantity of data.
                            messages:
                              anyOf:
                                - description: >-
                                    An ISO 8601 UTC datetime
                                    (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️ All links
                                    expire upon daily restart, regardless of
                                    their stated expiration date. A new link
                                    must be generated each time a user clicks on
                                    your app to connect.
                                  example: '2025-12-31T23:59:59.999Z'
                                  pattern: >-
                                    ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
                                - description: >-
                                    The quantity of data that should be synced
                                    from data history. 0 will not sync history.
                                  minimum: 0
                                  type: number
                              description: >-
                                Either a UTC Datetime to start sync from, or a
                                quantity of data.
                          type: object
                      type: object
                    type:
                      description: >-
                        A litteral value to choose between a connection or a
                        reconnection.
                      enum:
                        - create
                      type: string
                  required:
                    - expiresOn
                    - api_url
                    - type
                    - providers
                  title: Connection link
                  type: object
                - properties:
                    api_url:
                      description: >-
                        The url of your Unipile server  :
                        https://{subdomain}.unipile.com:{port}
                    bypass_success_screen:
                      description: >-
                        Whether to bypass the hosted auth success screen before
                        accessing the success_redirect_url.
                      type: boolean
                    disabled_features:
                      description: >-
                        An array of features that should be disabled in this
                        account. Accepted values : linkedin_recruiter |
                        linkedin_sales_navigator |
                        linkedin_organizations_mailboxes.
                      items:
                        enum:
                          - linkedin_recruiter
                          - linkedin_sales_navigator
                          - linkedin_organizations_mailboxes
                        type: string
                      type: array
                    disabled_options:
                      description: >-
                        An array of options that should be disabled in hosted
                        auth interface. Accepted values : proxy | autoproxy |
                        cookie_auth | credentials_auth | qrcode_auth |
                        pairing_code_auth | sync_limit | language. `qrcode_auth`
                        and `pairing_code_auth` are currently supported for
                        WhatsApp only.
                      items:
                        enum:
                          - proxy
                          - autoproxy
                          - cookie_auth
                          - credentials_auth
                          - qrcode_auth
                          - pairing_code_auth
                          - sync_limit
                          - language
                        type: string
                      type: array
                    expiresOn:
                      description: >-
                        An ISO 8601 UTC datetime (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️
                        All links expire upon daily restart, regardless of their
                        stated expiration date. A new link must be generated
                        each time a user clicks on your app to connect.
                      example: '2025-12-31T23:59:59.999Z'
                      pattern: ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
                    failure_redirect_url:
                      description: >-
                        A url where you might want to redirect the user in case
                        of a failed authentication.
                    google_scopes:
                      description: >-
                        Optional comma-separated list of scopes to use for
                        GOOGLE_OAUTH accounts
                      format: googleScopes
                      type: string
                    microsoft_scopes:
                      description: >-
                        Optional comma-separated list of scopes to use for
                        OUTLOOK accounts.


                        To enable delegated mailbox authentication, Include
                        Mail.ReadWrite.Shared, Mail.Send.Shared,
                        Contacts.Read.Shared, and User.ReadBasic.All.
                      format: microsoftScopes
                      type: string
                    name:
                      description: >-
                        This field will be sent back to you in the notify_url to
                        help match the added account with your user.
                      minLength: 1
                      type: string
                    notify_url:
                      description: >-
                        A url where you can be notified about events related to
                        the authentication process.
                    proxy:
                      properties:
                        host:
                          type: string
                        password:
                          description: Optional password for proxy’s authentication.
                          type: string
                        port:
                          type: number
                        protocol:
                          enum:
                            - https
                            - http
                            - socks5
                          type: string
                        username:
                          description: Optional username for proxy’s authentication.
                          type: string
                      required:
                        - port
                        - host
                      type: object
                    reconnect_account:
                      description: The id of the account to reconnect.
                      minLength: 1
                      type: string
                    success_redirect_url:
                      description: >-
                        A url where you might want to redirect the user in case
                        of a successful authentication.
                    sync_limit:
                      properties:
                        MAILING:
                          enum:
                            - NO_HISTORY_SYNC
                          type: string
                        MESSAGING:
                          description: >-
                            Set a sync limit either for chats, messages or both.
                            Chats limit will apply to each inbox, whereas
                            messages limit will apply to each chat. No value
                            will not apply any limit (default behaviour).
                            Providers partial support.
                          properties:
                            chats:
                              anyOf:
                                - description: >-
                                    An ISO 8601 UTC datetime
                                    (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️ All links
                                    expire upon daily restart, regardless of
                                    their stated expiration date. A new link
                                    must be generated each time a user clicks on
                                    your app to connect.
                                  example: '2025-12-31T23:59:59.999Z'
                                  pattern: >-
                                    ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
                                - description: >-
                                    The quantity of data that should be synced
                                    from data history. 0 will not sync history.
                                  minimum: 0
                                  type: number
                              description: >-
                                Either a UTC Datetime to start sync from, or a
                                quantity of data.
                            messages:
                              anyOf:
                                - description: >-
                                    An ISO 8601 UTC datetime
                                    (YYYY-MM-DDTHH:MM:SS.sssZ). ⚠️ All links
                                    expire upon daily restart, regardless of
                                    their stated expiration date. A new link
                                    must be generated each time a user clicks on
                                    your app to connect.
                                  example: '2025-12-31T23:59:59.999Z'
                                  pattern: >-
                                    ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
                                - description: >-
                                    The quantity of data that should be synced
                                    from data history. 0 will not sync history.
                                  minimum: 0
                                  type: number
                              description: >-
                                Either a UTC Datetime to start sync from, or a
                                quantity of data.
                          type: object
                      type: object
                    type:
                      description: >-
                        A litteral value to choose between a connection or a
                        reconnection.
                      enum:
                        - reconnect
                      type: string
                  required:
                    - expiresOn
                    - api_url
                    - type
                    - reconnect_account
                  title: Reconnection link
                  type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  object:
                    enum:
                      - HostedAuthUrl
                    type: string
                  url:
                    description: >-
                      A url redirecting to Unipile's hosted authentication for
                      account connection or reconnection.
                    type: string
                required:
                  - object
                  - url
                type: object
          description: OK. Request succeeded.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.