Create web-link
curl --request POST \
--url https://api.wellapp.ai/v1/web-links \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "web_link",
"attributes": {
"platform": "linkedin",
"url": "https://linkedin.com/in/ada"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace_tenant"
}
]
}
}
}
'import requests
url = "https://api.wellapp.ai/v1/web-links"
payload = {
"type": "web_link",
"attributes": {
"platform": "linkedin",
"url": "https://linkedin.com/in/ada"
},
"relationships": {
"persons": { "data": [
{
"type": "people",
"id": "people1"
}
] },
"companies": { "data": [
{
"type": "company",
"id": "company_tenant"
}
] },
"workspaces": { "data": [
{
"type": "workspace",
"id": "workspace_tenant"
}
] }
}
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'web_link',
attributes: {platform: 'linkedin', url: 'https://linkedin.com/in/ada'},
relationships: {
persons: {data: [{type: 'people', id: 'people1'}]},
companies: {data: [{type: 'company', id: 'company_tenant'}]},
workspaces: {data: [{type: 'workspace', id: 'workspace_tenant'}]}
}
})
};
fetch('https://api.wellapp.ai/v1/web-links', 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.wellapp.ai/v1/web-links",
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([
'type' => 'web_link',
'attributes' => [
'platform' => 'linkedin',
'url' => 'https://linkedin.com/in/ada'
],
'relationships' => [
'persons' => [
'data' => [
[
'type' => 'people',
'id' => 'people1'
]
]
],
'companies' => [
'data' => [
[
'type' => 'company',
'id' => 'company_tenant'
]
]
],
'workspaces' => [
'data' => [
[
'type' => 'workspace',
'id' => 'workspace_tenant'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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.wellapp.ai/v1/web-links"
payload := strings.NewReader("{\n \"type\": \"web_link\",\n \"attributes\": {\n \"platform\": \"linkedin\",\n \"url\": \"https://linkedin.com/in/ada\"\n },\n \"relationships\": {\n \"persons\": {\n \"data\": [\n {\n \"type\": \"people\",\n \"id\": \"people1\"\n }\n ]\n },\n \"companies\": {\n \"data\": [\n {\n \"type\": \"company\",\n \"id\": \"company_tenant\"\n }\n ]\n },\n \"workspaces\": {\n \"data\": [\n {\n \"type\": \"workspace\",\n \"id\": \"workspace_tenant\"\n }\n ]\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.wellapp.ai/v1/web-links")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"web_link\",\n \"attributes\": {\n \"platform\": \"linkedin\",\n \"url\": \"https://linkedin.com/in/ada\"\n },\n \"relationships\": {\n \"persons\": {\n \"data\": [\n {\n \"type\": \"people\",\n \"id\": \"people1\"\n }\n ]\n },\n \"companies\": {\n \"data\": [\n {\n \"type\": \"company\",\n \"id\": \"company_tenant\"\n }\n ]\n },\n \"workspaces\": {\n \"data\": [\n {\n \"type\": \"workspace\",\n \"id\": \"workspace_tenant\"\n }\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wellapp.ai/v1/web-links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"web_link\",\n \"attributes\": {\n \"platform\": \"linkedin\",\n \"url\": \"https://linkedin.com/in/ada\"\n },\n \"relationships\": {\n \"persons\": {\n \"data\": [\n {\n \"type\": \"people\",\n \"id\": \"people1\"\n }\n ]\n },\n \"companies\": {\n \"data\": [\n {\n \"type\": \"company\",\n \"id\": \"company_tenant\"\n }\n ]\n },\n \"workspaces\": {\n \"data\": [\n {\n \"type\": \"workspace\",\n \"id\": \"workspace_tenant\"\n }\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"type": "social_link",
"id": "sl1",
"attributes": {
"platform": "linkedin",
"url": "https://linkedin.com/in/ada",
"created_at": "2025-06-01T10:00:00Z",
"updated_at": "2025-06-01T10:00:00Z"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace_tenant"
}
]
}
}
}{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "You are not authorized to access this resource",
"meta": {
"log_id": "65c669d4-679c-4a8b-b8c0-fbe37699bb5b"
}
}{
"code": "COMPANY_NOT_FOUND",
"status": 404,
"title": "Company Not Found",
"message": "The requested company could not be found",
"meta": {
"log_id": "65c669d4-679c-4a8b-b8c0-fbe37699bb5b"
}
}Web Links
Create web link
Create a web or social media link and associate it with people, companies, or workspaces.
POST
/
v1
/
web-links
Create web-link
curl --request POST \
--url https://api.wellapp.ai/v1/web-links \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "web_link",
"attributes": {
"platform": "linkedin",
"url": "https://linkedin.com/in/ada"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace_tenant"
}
]
}
}
}
'import requests
url = "https://api.wellapp.ai/v1/web-links"
payload = {
"type": "web_link",
"attributes": {
"platform": "linkedin",
"url": "https://linkedin.com/in/ada"
},
"relationships": {
"persons": { "data": [
{
"type": "people",
"id": "people1"
}
] },
"companies": { "data": [
{
"type": "company",
"id": "company_tenant"
}
] },
"workspaces": { "data": [
{
"type": "workspace",
"id": "workspace_tenant"
}
] }
}
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'web_link',
attributes: {platform: 'linkedin', url: 'https://linkedin.com/in/ada'},
relationships: {
persons: {data: [{type: 'people', id: 'people1'}]},
companies: {data: [{type: 'company', id: 'company_tenant'}]},
workspaces: {data: [{type: 'workspace', id: 'workspace_tenant'}]}
}
})
};
fetch('https://api.wellapp.ai/v1/web-links', 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.wellapp.ai/v1/web-links",
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([
'type' => 'web_link',
'attributes' => [
'platform' => 'linkedin',
'url' => 'https://linkedin.com/in/ada'
],
'relationships' => [
'persons' => [
'data' => [
[
'type' => 'people',
'id' => 'people1'
]
]
],
'companies' => [
'data' => [
[
'type' => 'company',
'id' => 'company_tenant'
]
]
],
'workspaces' => [
'data' => [
[
'type' => 'workspace',
'id' => 'workspace_tenant'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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.wellapp.ai/v1/web-links"
payload := strings.NewReader("{\n \"type\": \"web_link\",\n \"attributes\": {\n \"platform\": \"linkedin\",\n \"url\": \"https://linkedin.com/in/ada\"\n },\n \"relationships\": {\n \"persons\": {\n \"data\": [\n {\n \"type\": \"people\",\n \"id\": \"people1\"\n }\n ]\n },\n \"companies\": {\n \"data\": [\n {\n \"type\": \"company\",\n \"id\": \"company_tenant\"\n }\n ]\n },\n \"workspaces\": {\n \"data\": [\n {\n \"type\": \"workspace\",\n \"id\": \"workspace_tenant\"\n }\n ]\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.wellapp.ai/v1/web-links")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"web_link\",\n \"attributes\": {\n \"platform\": \"linkedin\",\n \"url\": \"https://linkedin.com/in/ada\"\n },\n \"relationships\": {\n \"persons\": {\n \"data\": [\n {\n \"type\": \"people\",\n \"id\": \"people1\"\n }\n ]\n },\n \"companies\": {\n \"data\": [\n {\n \"type\": \"company\",\n \"id\": \"company_tenant\"\n }\n ]\n },\n \"workspaces\": {\n \"data\": [\n {\n \"type\": \"workspace\",\n \"id\": \"workspace_tenant\"\n }\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wellapp.ai/v1/web-links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"web_link\",\n \"attributes\": {\n \"platform\": \"linkedin\",\n \"url\": \"https://linkedin.com/in/ada\"\n },\n \"relationships\": {\n \"persons\": {\n \"data\": [\n {\n \"type\": \"people\",\n \"id\": \"people1\"\n }\n ]\n },\n \"companies\": {\n \"data\": [\n {\n \"type\": \"company\",\n \"id\": \"company_tenant\"\n }\n ]\n },\n \"workspaces\": {\n \"data\": [\n {\n \"type\": \"workspace\",\n \"id\": \"workspace_tenant\"\n }\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"type": "social_link",
"id": "sl1",
"attributes": {
"platform": "linkedin",
"url": "https://linkedin.com/in/ada",
"created_at": "2025-06-01T10:00:00Z",
"updated_at": "2025-06-01T10:00:00Z"
},
"relationships": {
"persons": {
"data": [
{
"type": "people",
"id": "people1"
}
]
},
"companies": {
"data": [
{
"type": "company",
"id": "company_tenant"
}
]
},
"workspaces": {
"data": [
{
"type": "workspace",
"id": "workspace_tenant"
}
]
}
}
}{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "You are not authorized to access this resource",
"meta": {
"log_id": "65c669d4-679c-4a8b-b8c0-fbe37699bb5b"
}
}{
"code": "COMPANY_NOT_FOUND",
"status": 404,
"title": "Company Not Found",
"message": "The requested company could not be found",
"meta": {
"log_id": "65c669d4-679c-4a8b-b8c0-fbe37699bb5b"
}
}⌘I