Skip to main content
POST
Hosted Auth Link (temp verification)
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

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 Effective request declaration (including authentication and referenced schemas):

Cost and request rules

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
api_url
any
required

The url of your Unipile server : https://{subdomain}.unipile.com:{port}

expiresOn
string
required

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.

Pattern: ^[1-2]\d{3}-[0-1]\d-[0-3]\dT\d{2}:\d{2}:\d{2}.\d{3}Z$
Example:

"2025-12-31T23:59:59.999Z"

providers
required

The providers for whom you want to propose to connect an account.

Available options:
*
type
enum<string>
required

A litteral value to choose between a connection or a reconnection.

Available options:
create
bypass_success_screen
boolean

Whether to bypass the hosted auth success screen before accessing the success_redirect_url.

disabled_features
enum<string>[]

An array of features that should be disabled in this account. Accepted values : linkedin_recruiter | linkedin_sales_navigator | linkedin_organizations_mailboxes.

Available options:
linkedin_recruiter,
linkedin_sales_navigator,
linkedin_organizations_mailboxes
disabled_options
enum<string>[]

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.

Available options:
proxy,
autoproxy,
cookie_auth,
credentials_auth,
qrcode_auth,
pairing_code_auth,
sync_limit,
language
failure_redirect_url
any

A url where you might want to redirect the user in case of a failed authentication.

google_scopes
string<googleScopes>

Optional comma-separated list of scopes to use for GOOGLE_OAUTH accounts

microsoft_scopes
string<microsoftScopes>

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.

name
string

This field will be sent back to you in the notify_url to help match the added account with your user.

Minimum string length: 1
notify_url
any

A url where you can be notified about events related to the authentication process.

proxy
object
single_use
boolean

Whether the hosted authentication link can be used to connect only one account. Defaults to false.

success_redirect_url
any

A url where you might want to redirect the user in case of a successful authentication.

sync_limit
object

Response

OK. Request succeeded.

object
enum<string>
required
Available options:
HostedAuthUrl
url
string
required

A url redirecting to Unipile's hosted authentication for account connection or reconnection.