Hosted Auth Link (temp verification)
curl --request POST \
--url https://api.aisa.one/apis/v1/unipile/hosted/link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"api_url": "<unknown>",
"expiresOn": "2025-12-31T23:59:59.999Z",
"providers": "*",
"type": "create"
}
'import requests
url = "https://api.aisa.one/apis/v1/unipile/hosted/link"
payload = {
"api_url": "<unknown>",
"expiresOn": "2025-12-31T23:59:59.999Z",
"providers": "*",
"type": "create"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
api_url: '<unknown>',
expiresOn: '2025-12-31T23:59:59.999Z',
providers: '*',
type: 'create'
})
};
fetch('https://api.aisa.one/apis/v1/unipile/hosted/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/unipile/hosted/link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'api_url' => '<unknown>',
'expiresOn' => '2025-12-31T23:59:59.999Z',
'providers' => '*',
'type' => 'create'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/unipile/hosted/link"
payload := strings.NewReader("{\n \"api_url\": \"<unknown>\",\n \"expiresOn\": \"2025-12-31T23:59:59.999Z\",\n \"providers\": \"*\",\n \"type\": \"create\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/unipile/hosted/link")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"api_url\": \"<unknown>\",\n \"expiresOn\": \"2025-12-31T23:59:59.999Z\",\n \"providers\": \"*\",\n \"type\": \"create\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/hosted/link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"api_url\": \"<unknown>\",\n \"expiresOn\": \"2025-12-31T23:59:59.999Z\",\n \"providers\": \"*\",\n \"type\": \"create\"\n}"
response = http.request(request)
puts response.read_body{
"object": "HostedAuthUrl",
"url": "<string>"
}Accounts
Hosted Auth Link (temp verification)
Create a hosted authorization link for connecting a LinkedIn account.
POST
https://api.aisa.one
/
apis
/
v1
/
unipile
/
hosted
/
link
Hosted Auth Link (temp verification)
curl --request POST \
--url https://api.aisa.one/apis/v1/unipile/hosted/link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"api_url": "<unknown>",
"expiresOn": "2025-12-31T23:59:59.999Z",
"providers": "*",
"type": "create"
}
'import requests
url = "https://api.aisa.one/apis/v1/unipile/hosted/link"
payload = {
"api_url": "<unknown>",
"expiresOn": "2025-12-31T23:59:59.999Z",
"providers": "*",
"type": "create"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
api_url: '<unknown>',
expiresOn: '2025-12-31T23:59:59.999Z',
providers: '*',
type: 'create'
})
};
fetch('https://api.aisa.one/apis/v1/unipile/hosted/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/unipile/hosted/link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'api_url' => '<unknown>',
'expiresOn' => '2025-12-31T23:59:59.999Z',
'providers' => '*',
'type' => 'create'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/unipile/hosted/link"
payload := strings.NewReader("{\n \"api_url\": \"<unknown>\",\n \"expiresOn\": \"2025-12-31T23:59:59.999Z\",\n \"providers\": \"*\",\n \"type\": \"create\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/unipile/hosted/link")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"api_url\": \"<unknown>\",\n \"expiresOn\": \"2025-12-31T23:59:59.999Z\",\n \"providers\": \"*\",\n \"type\": \"create\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/hosted/link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"api_url\": \"<unknown>\",\n \"expiresOn\": \"2025-12-31T23:59:59.999Z\",\n \"providers\": \"*\",\n \"type\": \"create\"\n}"
response = http.request(request)
puts response.read_body{
"object": "HostedAuthUrl",
"url": "<string>"
}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
Path parameters and required query parameters are documented in the operation reference.
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
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"}'
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
{
"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.Authorizations
Body
application/json
- Connection link
- Reconnection link
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"
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