Довідники
Те, на що посилаються записи: власні поля організації, теги, співробітники та команди.
Власні поля
GET /custom-fields
Поля організації з варіантами вибору — для контактів, компаній, угод або команд (entity): активні, архівні або всі. requiredStageIds — етапи, на які людина в Alta не переведе угоду без цього поля (запит через API це не зупиняє); requiredAtPayment — людина в Alta не запише оплату угоди без нього (з methodIds — лише оплату цими способами); оплату через API це не зупиняє.
Параметри запиту
entitystringЗначення:
contactcompanydealteampaymentproductstatusstringтипово
activeЗначення:
activearchivedall
Приклад запиту
curl 'https://your-company.altahub.ai/api/v1/custom-fields' \
-H 'Authorization: Bearer alta_…'const response = await fetch('https://your-company.altahub.ai/api/v1/custom-fields', {
method: 'GET',
headers: {
Authorization: 'Bearer alta_…',
},
});
const data = await response.json();import requests
response = requests.get(
"https://your-company.altahub.ai/api/v1/custom-fields",
headers={"Authorization": "Bearer alta_…"},
)
data = response.json()<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-company.altahub.ai/api/v1/custom-fields', [
'headers' => ['Authorization' => 'Bearer alta_…'],
]);
$data = json_decode((string) $response->getBody(), true);Відповідь 200
Успішна відповідь.
{
"items": [
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000032",
"name": "Місто доставки",
"entity": "deal",
"type": "text",
"description": null,
"options": [],
"decimals": null,
"groupId": null,
"position": 1,
"pipelineIds": [],
"requiredStageIds": [],
"requiredAtPayment": null,
"requirements": [],
"showOnCard": true,
"showInDeal": false,
"apiOnly": false,
"uniqueValues": false,
"uniqueCheck": null,
"multipleValues": false,
"archived": false,
"externalId": null,
"externalSource": null,
"updatedAt": "2026-10-20T08:15:00Z",
"version": 1
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000033",
"name": "Джерело запиту",
"entity": "deal",
"type": "choice",
"description": null,
"options": [
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000034",
"label": "Сайт",
"color": "blue",
"archived": false,
"externalId": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000035",
"label": "Instagram",
"color": "purple",
"archived": false,
"externalId": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000036",
"label": "Рекомендація",
"color": "green",
"archived": false,
"externalId": null
}
],
"decimals": null,
"groupId": null,
"position": 2,
"pipelineIds": [],
"requiredStageIds": [
"0192f3a1-7c2e-7b4d-9a61-000000000021"
],
"requiredAtPayment": null,
"requirements": [
{
"moment": "deal.stage_enter",
"scopeIds": [
"0192f3a1-7c2e-7b4d-9a61-000000000021"
]
}
],
"showOnCard": true,
"showInDeal": false,
"apiOnly": false,
"uniqueValues": false,
"uniqueCheck": null,
"multipleValues": false,
"archived": false,
"externalId": null,
"externalSource": null,
"updatedAt": "2026-10-20T08:15:00Z",
"version": 1
}
]
}Поля відповіді
itemsobject[]Вкладені поля: 24
apiOnlybooleanarchivedbooleandecimalsinteger | nulldescriptionstring | nullentitystringЗначення:
contactcompanydealteampaymentproductexternalIdstring | nullexternalSourcestring | nullgroupIdstring · uuid | nullidstring · uuidmultipleValuesbooleannamestringoptionsobject[]Вкладені поля: 5
archivedbooleancolorstringЗначення:
graybluetealgreenyelloworangeredpurpleexternalIdstring | nullidstring · uuidlabelstring
pipelineIdsstring[] · uuidpositioninteger | null≥ 1
requiredAtPaymentobject | nullВкладені поля: 1
methodIdsstring[] · uuidкількість ≤ 200
requiredStageIdsstring[] · uuidrequirementsobject[]Вкладені поля: 2
momentstringscopeIdsstring[] · uuid
showInDealbooleanshowOnCardbooleantypestringЗначення:
textlong_textnumberdatedatetimebooleanchoicemulti_choiceurlmoneybirthdayaddressuniqueCheckobject | nullВкладені поля: 5
doublesinteger≥ 0
finishedAtstring · date-time | nullmoreDoublesbooleanstartedAtstring · date-timestatestringЗначення:
checkingdoubles
uniqueValuesbooleanupdatedAtstring · date-timeversioninteger≥ 1
Отримати поле
GET /custom-fields/{fieldId}
Одне власне поле за id.
Параметри шляху
fieldIdstring · uuid обов’язково
Приклад запиту
curl 'https://your-company.altahub.ai/api/v1/custom-fields/{fieldId}' \
-H 'Authorization: Bearer alta_…'const response = await fetch('https://your-company.altahub.ai/api/v1/custom-fields/{fieldId}', {
method: 'GET',
headers: {
Authorization: 'Bearer alta_…',
},
});
const data = await response.json();import requests
response = requests.get(
"https://your-company.altahub.ai/api/v1/custom-fields/{fieldId}",
headers={"Authorization": "Bearer alta_…"},
)
data = response.json()<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-company.altahub.ai/api/v1/custom-fields/{fieldId}', [
'headers' => ['Authorization' => 'Bearer alta_…'],
]);
$data = json_decode((string) $response->getBody(), true);Відповідь 200
Успішна відповідь.
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000033",
"name": "Джерело запиту",
"entity": "deal",
"type": "choice",
"description": null,
"options": [
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000034",
"label": "Сайт",
"color": "blue",
"archived": false,
"externalId": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000035",
"label": "Instagram",
"color": "purple",
"archived": false,
"externalId": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000036",
"label": "Рекомендація",
"color": "green",
"archived": false,
"externalId": null
}
],
"decimals": null,
"groupId": null,
"position": 2,
"pipelineIds": [],
"requiredStageIds": [
"0192f3a1-7c2e-7b4d-9a61-000000000021"
],
"requiredAtPayment": null,
"requirements": [
{
"moment": "deal.stage_enter",
"scopeIds": [
"0192f3a1-7c2e-7b4d-9a61-000000000021"
]
}
],
"showOnCard": true,
"showInDeal": false,
"apiOnly": false,
"uniqueValues": false,
"uniqueCheck": null,
"multipleValues": false,
"archived": false,
"externalId": null,
"externalSource": null,
"updatedAt": "2026-10-20T08:15:00Z",
"version": 1
}Поля відповіді
apiOnlybooleanarchivedbooleandecimalsinteger | nulldescriptionstring | nullentitystringЗначення:
contactcompanydealteampaymentproductexternalIdstring | nullexternalSourcestring | nullgroupIdstring · uuid | nullidstring · uuidmultipleValuesbooleannamestringoptionsobject[]Вкладені поля: 5
archivedbooleancolorstringЗначення:
graybluetealgreenyelloworangeredpurpleexternalIdstring | nullidstring · uuidlabelstring
pipelineIdsstring[] · uuidpositioninteger | null≥ 1
requiredAtPaymentobject | nullВкладені поля: 1
methodIdsstring[] · uuidкількість ≤ 200
requiredStageIdsstring[] · uuidrequirementsobject[]Вкладені поля: 2
momentstringscopeIdsstring[] · uuid
showInDealbooleanshowOnCardbooleantypestringЗначення:
textlong_textnumberdatedatetimebooleanchoicemulti_choiceurlmoneybirthdayaddressuniqueCheckobject | nullВкладені поля: 5
doublesinteger≥ 0
finishedAtstring · date-time | nullmoreDoublesbooleanstartedAtstring · date-timestatestringЗначення:
checkingdoubles
uniqueValuesbooleanupdatedAtstring · date-timeversioninteger≥ 1
Співробітники
GET /members
Співробітники організації — відповідальні та виконавці записів: спершу ті, що працюють, звільнені в кінці (dismissedAt).
Приклад запиту
curl 'https://your-company.altahub.ai/api/v1/members' \
-H 'Authorization: Bearer alta_…'const response = await fetch('https://your-company.altahub.ai/api/v1/members', {
method: 'GET',
headers: {
Authorization: 'Bearer alta_…',
},
});
const data = await response.json();import requests
response = requests.get(
"https://your-company.altahub.ai/api/v1/members",
headers={"Authorization": "Bearer alta_…"},
)
data = response.json()<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-company.altahub.ai/api/v1/members', [
'headers' => ['Authorization' => 'Bearer alta_…'],
]);
$data = json_decode((string) $response->getBody(), true);Відповідь 200
Успішна відповідь.
{
"items": [
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000001",
"name": "Андрій Шевченко",
"email": "andrii@kavova.ua",
"role": "owner",
"roleId": "0192f3a1-7c2e-7b4d-9a61-00000000005a",
"roleName": null,
"roleSystemKey": "owner",
"active": true,
"teamId": null,
"standIn": false,
"dismissedAt": null,
"dismissedById": null,
"handOverToId": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ірина Мельник",
"email": "iryna@kavova.ua",
"role": "manager",
"roleId": "0192f3a1-7c2e-7b4d-9a61-00000000005b",
"roleName": null,
"roleSystemKey": "manager",
"active": true,
"teamId": "0192f3a1-7c2e-7b4d-9a61-00000000005c",
"standIn": false,
"dismissedAt": null,
"dismissedById": null,
"handOverToId": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000003",
"name": "Олег Бондар",
"email": "oleh@kavova.ua",
"role": "manager",
"roleId": "0192f3a1-7c2e-7b4d-9a61-00000000005b",
"roleName": null,
"roleSystemKey": "manager",
"active": false,
"teamId": null,
"standIn": false,
"dismissedAt": "2026-10-21T12:40:00Z",
"dismissedById": "0192f3a1-7c2e-7b4d-9a61-000000000001",
"handOverToId": "0192f3a1-7c2e-7b4d-9a61-000000000002"
}
]
}Поля відповіді
itemsobject[]Вкладені поля: 13
activebooleandismissedAtstring · date-time | nulldismissedByIdstring · uuid | nullemailstringhandOverToIdstring · uuid | nullidstring · uuidnamestringrolestringЗначення:
owneradminmanagerroleIdstring · uuidroleNamestring | nullroleSystemKeystring | nullЗначення:
owneradminmanagerstandInbooleanteamIdstring · uuid | null
Теги
GET /tags
Теги організації за назвою: активні або архівні; usage=true додає, у скількох записів стоїть кожен.
Параметри запиту
statusstringтипово
activeЗначення:
activearchivedusagebooleanтипово
false
Приклад запиту
curl 'https://your-company.altahub.ai/api/v1/tags' \
-H 'Authorization: Bearer alta_…'const response = await fetch('https://your-company.altahub.ai/api/v1/tags', {
method: 'GET',
headers: {
Authorization: 'Bearer alta_…',
},
});
const data = await response.json();import requests
response = requests.get(
"https://your-company.altahub.ai/api/v1/tags",
headers={"Authorization": "Bearer alta_…"},
)
data = response.json()<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-company.altahub.ai/api/v1/tags', [
'headers' => ['Authorization' => 'Bearer alta_…'],
]);
$data = json_decode((string) $response->getBody(), true);Відповідь 200
Успішна відповідь.
{
"items": [
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000029",
"name": "Опт",
"color": "teal",
"archived": false,
"externalId": null,
"externalSource": null,
"usage": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000028",
"name": "VIP",
"color": "purple",
"archived": false,
"externalId": null,
"externalSource": null,
"usage": null
}
]
}Поля відповіді
itemsobject[]Вкладені поля: 7
archivedbooleancolorstringЗначення:
graybluetealgreenyelloworangeredpurpleexternalIdstring | nullexternalSourcestring | nullidstring · uuidnamestringusageobject | nullВкладені поля: 3
companiesinteger≥ 0
contactsinteger≥ 0
dealsinteger≥ 0
Групи співробітників
GET /teams
Групи співробітників організації за назвою, не більше 100. Група співробітника — його teamId у «Співробітниках», а її назва — тут: так звіт називає групу кожного співробітника. color — колір групи в Alta (null — без кольору), customFields — значення власних полів груп («Власні поля» з entity=team), telegramChatId — внутрішній id Telegram-чату групи в Alta (null — не вибрано); самі чати через API не читаються. Групи налаштовують в Alta, через API їх лише читають.
Приклад запиту
curl 'https://your-company.altahub.ai/api/v1/teams' \
-H 'Authorization: Bearer alta_…'const response = await fetch('https://your-company.altahub.ai/api/v1/teams', {
method: 'GET',
headers: {
Authorization: 'Bearer alta_…',
},
});
const data = await response.json();import requests
response = requests.get(
"https://your-company.altahub.ai/api/v1/teams",
headers={"Authorization": "Bearer alta_…"},
)
data = response.json()<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-company.altahub.ai/api/v1/teams', [
'headers' => ['Authorization' => 'Bearer alta_…'],
]);
$data = json_decode((string) $response->getBody(), true);Відповідь 200
Успішна відповідь.
{
"items": [
{
"id": "0192f3a1-7c2e-7b4d-9a61-00000000005c",
"name": "Київ",
"version": 2,
"color": "blue",
"customFields": [],
"telegramChatId": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-00000000005d",
"name": "Львів",
"version": 1,
"color": "teal",
"customFields": [],
"telegramChatId": null
}
]
}Поля відповіді
itemsobject[]Вкладені поля: 6
colorstring | nullЗначення:
graybluetealgreenyelloworangeredpurplecustomFieldsobject[]Вкладені поля: 2
fieldIdstring · uuidvaluestring | boolean | string[] · uuid | objectВаріант 1 · string
string
Варіант 2 · boolean
boolean
Варіант 3 · string[] · uuid
string[] · uuid
Варіант 4 · object
amountstringcurrencystring
Варіант 5 · object
citystringcountrystringlinestringpostcodestring
idstring · uuidnamestringtelegramChatIdstring · uuid | nullversioninteger≥ 1