Hosted Auth Link
curl --request POST \
--url https://api.aisa.one/apis/v1/unipile/hosted/link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"providers": [
"<string>"
],
"api_url": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/unipile/hosted/link"
payload = {
"providers": ["<string>"],
"api_url": "<string>"
}
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({providers: ['<string>'], api_url: '<string>'})
};
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([
'providers' => [
'<string>'
],
'api_url' => '<string>'
]),
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 \"providers\": [\n \"<string>\"\n ],\n \"api_url\": \"<string>\"\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 \"providers\": [\n \"<string>\"\n ],\n \"api_url\": \"<string>\"\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 \"providers\": [\n \"<string>\"\n ],\n \"api_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"object": "HostedAuthUrl",
"url": "<string>"
}Accounts
Hosted Auth Link
Create a hosted authorization link for connecting a LinkedIn account.
POST
https://api.aisa.one
/
apis
/
v1
/
unipile
/
hosted
/
link
Hosted Auth Link
curl --request POST \
--url https://api.aisa.one/apis/v1/unipile/hosted/link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"providers": [
"<string>"
],
"api_url": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/unipile/hosted/link"
payload = {
"providers": ["<string>"],
"api_url": "<string>"
}
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({providers: ['<string>'], api_url: '<string>'})
};
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([
'providers' => [
'<string>'
],
'api_url' => '<string>'
]),
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 \"providers\": [\n \"<string>\"\n ],\n \"api_url\": \"<string>\"\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 \"providers\": [\n \"<string>\"\n ],\n \"api_url\": \"<string>\"\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 \"providers\": [\n \"<string>\"\n ],\n \"api_url\": \"<string>\"\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. When the flow finishes your
Path parameters and required query parameters are documented in the operation reference.
notify_url receives the new account_id, which is what every other endpoint needs. Generate a fresh link per attempt: links also expire on Unipile’s daily restart regardless of expiresOn.
Reference price: $0.000001 USD per successful request.
Example
curl "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://{subdomain}.unipile.com:{port}", "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"}'
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
create connects a new account, reconnect re-authenticates an existing one.
Available options:
create, reconnect Provider list, for example ["LINKEDIN"].
Your Unipile server URL, for example https://{subdomain}.unipile.com:{port}.
ISO 8601 UTC expiry, for example 2026-12-31T23:59:59.999Z.
Label echoed back in events so you can match the account to your own user.
Callback notified once the connection completes.
Browser redirect after a successful connection.
Browser redirect after a failed connection.
Account id to re-authenticate. Required when type is reconnect.