История
Что и когда произошло с записью и кто это сделал: история сделки, история контакта и журнал событий всей организации. Изменения компаний и задач — в журнале.
Журнал событий
GET /activity-log
Все изменения в организации, новые сверху, страницами: сделки, контакты, компании и задачи, комментарии, настройки, команда, мотивация и выгрузки сделок — кто, когда, в какой записи и что изменил; импортированная история — с автором и временем из прежней системы. Фильтры: кто (actorIds, actorGroups), какие записи (kinds: deal, contact, company, task…), что произошло (actions), какое поле (field), период (from, to). История компаний и задач — здесь, с kinds=company или kinds=task.
Параметры запроса
actionsstring[]количество ≤ 8 · без повторов
Значения:
createdchangedstageassigneddeletedrestoredcompletedcommentactorGroupsstring[]количество ≤ 3 · без повторов
Значения:
importautomationsystemactorIdsstring[] · uuidколичество ≤ 50 · без повторов
cursorstringдлина 1–512
fieldstringшаблон
^(?:[A-Za-z]{1,40}|cf:[0-9a-fA-F-]{36})$fromstring · date-timekindsstring[]количество ≤ 7 · без повторов
Значения:
dealcontactcompanytasksettingsteamcompensationlimitinteger1–100 · по умолчанию
50tostring · date-time
Пример запроса
curl 'https://your-company.altahub.ai/api/v1/activity-log' \
-H 'Authorization: Bearer alta_…'const response = await fetch('https://your-company.altahub.ai/api/v1/activity-log', {
method: 'GET',
headers: {
Authorization: 'Bearer alta_…',
},
});
const data = await response.json();import requests
response = requests.get(
"https://your-company.altahub.ai/api/v1/activity-log",
headers={"Authorization": "Bearer alta_…"},
)
data = response.json()<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-company.altahub.ai/api/v1/activity-log', [
'headers' => ['Authorization' => 'Bearer alta_…'],
]);
$data = json_decode((string) $response->getBody(), true);Ответ 200
Успешный ответ.
{
"items": [
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000055",
"at": "2026-10-24T16:45:00Z",
"actor": {
"kind": "member",
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник",
"former": false
},
"importedFrom": null,
"record": {
"type": "task",
"id": "0192f3a1-7c2e-7b4d-9a61-00000000003c",
"title": "Перезвонить по счёту",
"state": "live"
},
"kind": "task",
"history": null,
"task": {
"id": "0192f3a1-7c2e-7b4d-9a61-00000000003c",
"title": "Перезвонить по счёту",
"kind": "call",
"type": null,
"event": "completed",
"attributes": [],
"outcome": "call",
"next": {
"id": "0192f3a1-7c2e-7b4d-9a61-00000000003d",
"title": "Отправить счёт",
"dueAt": "2026-10-29T09:00:00Z"
},
"reschedule": null
},
"comment": null,
"settings": null,
"team": null,
"compensation": null,
"export": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000056",
"at": "2026-10-22T09:05:00Z",
"actor": {
"kind": "member",
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник",
"former": false
},
"importedFrom": null,
"record": {
"type": "deal",
"id": "0192f3a1-7c2e-7b4d-9a61-000000000014",
"title": "Кофемашины для сети кофеен",
"state": "live"
},
"kind": "comment",
"history": null,
"task": null,
"comment": {
"preview": "Клиентка просит счёт до пятницы",
"deleted": false
},
"settings": null,
"team": null,
"compensation": null,
"export": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000052",
"at": "2026-10-21T12:40:00Z",
"actor": {
"kind": "member",
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник",
"former": false
},
"importedFrom": null,
"record": {
"type": "deal",
"id": "0192f3a1-7c2e-7b4d-9a61-000000000014",
"title": "Кофемашины для сети кофеен",
"state": "live"
},
"kind": "history",
"history": {
"event": "moved",
"via": "manual",
"stage": {
"from": {
"id": "0192f3a1-7c2e-7b4d-9a61-00000000001f",
"name": "Новый запрос"
},
"to": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000020",
"name": "Переговоры"
}
},
"status": null,
"owner": null,
"amount": null,
"fields": [],
"summary": null,
"attributes": []
},
"task": null,
"comment": null,
"settings": null,
"team": null,
"compensation": null,
"export": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000057",
"at": "2026-10-20T08:15:00Z",
"actor": {
"kind": "member",
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник",
"former": false
},
"importedFrom": null,
"record": {
"type": "contact",
"id": "0192f3a1-7c2e-7b4d-9a61-00000000000a",
"title": "Елена Коваль",
"state": "live"
},
"kind": "history",
"history": {
"event": "updated",
"via": "manual",
"stage": null,
"status": null,
"owner": null,
"amount": null,
"fields": [],
"summary": null,
"attributes": [
{
"key": "jobTitle",
"label": null,
"from": null,
"to": "Менеджер по закупкам",
"fieldType": null,
"decimals": null
}
]
},
"task": null,
"comment": null,
"settings": null,
"team": null,
"compensation": null,
"export": null
}
],
"nextCursor": null,
"searchedTo": null
}Поля ответа
itemsobject[]Вложенные поля: 13
actorobjectВложенные поля: 4
formerbooleanidstring · uuid | nullkindstringЗначения:
memberautomationimportsystemnamestring | null
atstring · date-timecommentobject | nullВложенные поля: 2
deletedbooleanpreviewstring | null
compensationobject | nullВложенные поля: 3
attributesobject[]Вложенные поля: 6
decimalsinteger | null0–4
fieldTypestring | nullЗначения:
textlong_textnumberdatedatetimebooleanchoicemulti_choiceurlmoneybirthdayaddressfromstring | nullkeystringlabelstring | nulltostring | null
eventstringЗначения:
plan_createdplan_changedplan_archivedplan_restoredassignment_setassignment_removedstart_date_setsettings_changedadjustment_addedadjustment_canceledpayout_recordedpayout_canceledperiod_closedrecalculatedrole_createdrole_changedrole_deletedmemberobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
exportobject | nullВложенные поля: 4
dealsinteger≥ 0
formatstringЗначения:
xlsxcsvpipelineobject | nullВложенные поля: 2
idstring · uuidnamestring
scopestringЗначения:
allfilter
historyobject | nullВложенные поля: 11
amountobject | nullВложенные поля: 2
fromobjectВложенные поля: 2
amountstringcurrencystring
toobjectВложенные поля: 2
amountstringcurrencystring
attributesobject[]Вложенные поля: 6
decimalsinteger | null0–4
fieldTypestring | nullЗначения:
textlong_textnumberdatedatetimebooleanchoicemulti_choiceurlmoneybirthdayaddressfromstring | nullkeystringlabelstring | nulltostring | null
eventstringЗначения:
createdupdatedmovedowner_changedcomment_editedcomment_deleteddeletedrestoredcomment_pinnedcomment_unpinnedpayment_recordedpayment_changedpayment_canceledpayment_refundedpayment_requestedpayment_request_paidpayment_request_expiredpayment_request_canceledpayment_request_failedpayment_consent_givenpayment_credit_changedarchivedfieldsstring[]Значения:
titledescriptioncontactIdcompanyIdexpectedCloseDateownerobject | nullВложенные поля: 2
fromobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
toobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
stageobject | nullВложенные поля: 2
fromobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
toobjectВложенные поля: 2
idstring · uuid | nullnamestring
statusobject | nullВложенные поля: 2
fromstringЗначения:
openwonlosttostringЗначения:
openwonlost
summarystring | nullviastring | nullЗначения:
manualimportformmergeobjectВложенные поля: 2
droppedobject[]количество ≤ 400
Вложенные поля: 4
keystringlabelstring | nullrecordstringvaluestring
recordsobject[]количество ≤ 4
Вложенные поля: 3
idstring · uuidnamestringnumberinteger≥ 1
paymentobjectВложенные поля: 3
paymentIdstring · uuid | nullpaymentRequestIdstring · uuid | nullrefundIdstring · uuid | null
idstring · uuidimportedFromstring | nullkindstringЗначения:
historytaskcommentsettingsteamcompensationexportrecordobjectВложенные поля: 4
idstring · uuid | nullstatestringЗначения:
livearchiveddeletedtitlestringtypestringЗначения:
dealcontactcompanytasksettingsteamcompensationexport
settingsobject | nullВложенные поля: 3
areastringЗначения:
organizationpipelinefieldcurrency_rateaccess_rolecurrency_rate_auto_fillmarketing_spendmigrationpayment_methodpayment_method_grouptagtask_typeproductproduct_categoryproduct_pricecoupontax_ratebilling_entityattributesobject[]Вложенные поля: 6
decimalsinteger | null0–4
fieldTypestring | nullЗначения:
textlong_textnumberdatedatetimebooleanchoicemulti_choiceurlmoneybirthdayaddressfromstring | nullkeystringlabelstring | nulltostring | null
eventstringЗначения:
createdupdateddeletedarchivedrestored
taskobject | nullВложенные поля: 9
attributesobject[]Вложенные поля: 6
decimalsinteger | null0–4
fieldTypestring | nullЗначения:
textlong_textnumberdatedatetimebooleanchoicemulti_choiceurlmoneybirthdayaddressfromstring | nullkeystringlabelstring | nulltostring | null
eventstringЗначения:
createdupdatedrescheduledreassignedcompletedreopenedcanceleddeletedrestoredidstring · uuidkindstringЗначения:
taskcallmeetingemailreminderchatnextobject | nullВложенные поля: 4
dueAtstring · date-time | nullidstring · uuidtitlestringallDayboolean
outcomestring | nullЗначения:
callmessagemeetingno_answerno_contactrescheduleobject | nullВложенные поля: 2
notestring | nullreasonstring | nullЗначения:
client_askedno_answerno_timeother
titlestringtypeobject | nullВложенные поля: 3
iconstringidstring · uuidnamestring
teamobject | nullВложенные поля: 6
emailstring | nulleventstringЗначения:
invitation_issuedinvitation_revokedinvitation_acceptedmembership_createdmembership_disabledmembership_enabledmembership_role_changedmembership_dismissedmembership_restoredmembership_renamedhandedOverToobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
memberobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
roleobject | nullВложенные поля: 2
fromstring | nulltostring
roleNameobject | nullВложенные поля: 4
fromstring | nullfromSystemKeystring | nullЗначения:
owneradminmanagertostring | nulltoSystemKeystring | nullЗначения:
owneradminmanager
nextCursorstring | nullsearchedTostring · date-time | null
История контакта
GET /contacts/{contactId}/activity
Всё, что произошло с контактом, новые сверху, страницами: создание и каждое изменение полей и тегов (что было и что стало), комментарии, что произошло с его задачами. only оставляет одно: notes, history или tasks. Чаты и звонки через API недоступны.
Параметры пути
contactIdstring · uuid обязательно
Параметры запроса
cursorstringдлина 1–512
limitinteger1–100 · по умолчанию
30onlystringЗначения:
noteshistorytasks
Пример запроса
curl 'https://your-company.altahub.ai/api/v1/contacts/{contactId}/activity' \
-H 'Authorization: Bearer alta_…'const response = await fetch('https://your-company.altahub.ai/api/v1/contacts/{contactId}/activity', {
method: 'GET',
headers: {
Authorization: 'Bearer alta_…',
},
});
const data = await response.json();import requests
response = requests.get(
"https://your-company.altahub.ai/api/v1/contacts/{contactId}/activity",
headers={"Authorization": "Bearer alta_…"},
)
data = response.json()<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-company.altahub.ai/api/v1/contacts/{contactId}/activity', [
'headers' => ['Authorization' => 'Bearer alta_…'],
]);
$data = json_decode((string) $response->getBody(), true);Ответ 200
Успешный ответ.
{
"items": [
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000058",
"type": "note",
"at": "2026-10-24T16:45:00Z",
"actor": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник"
},
"note": {
"body": "Удобнее писать в Telegram",
"editedAt": null,
"version": 1,
"mentions": [],
"pinned": null,
"attachments": []
},
"history": null,
"task": null,
"call": null,
"message": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-00000000003c",
"type": "task",
"at": "2026-10-21T12:40:00Z",
"actor": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник"
},
"note": null,
"history": null,
"task": {
"id": "0192f3a1-7c2e-7b4d-9a61-00000000003c",
"title": "Перезвонить по счёту",
"kind": "call",
"type": null,
"event": "created",
"attributes": [],
"outcome": null,
"next": null,
"reschedule": null
},
"call": null,
"message": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000054",
"type": "history",
"at": "2026-10-20T08:15:00Z",
"actor": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000001",
"name": "Андрей Шевченко"
},
"note": null,
"history": {
"event": "created",
"via": "manual",
"stage": null,
"status": null,
"owner": null,
"amount": null,
"fields": [],
"summary": null,
"attributes": [
{
"key": "phone",
"label": null,
"from": null,
"to": "+380501234567",
"fieldType": null,
"decimals": null
}
]
},
"task": null,
"call": null,
"message": null
}
],
"nextCursor": null,
"pinned": []
}Поля ответа
itemsobject[]Вложенные поля: 11
actorobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
atstring · date-timecallobject | nullВложенные поля: 8
clientNumberstring | nulldirectionstringЗначения:
incomingoutgoingdurationSecondsinteger | null≥ 0
idstring · uuidinProgressbooleanrecordingbooleanresultstring | nullЗначения:
answeredno_answerbusyunreachablefailedtalkSecondsinteger | null≥ 0
historyobject | nullВложенные поля: 11
amountobject | nullВложенные поля: 2
fromobjectВложенные поля: 2
amountstringcurrencystring
toobjectВложенные поля: 2
amountstringcurrencystring
attributesobject[]Вложенные поля: 6
decimalsinteger | null0–4
fieldTypestring | nullЗначения:
textlong_textnumberdatedatetimebooleanchoicemulti_choiceurlmoneybirthdayaddressfromstring | nullkeystringlabelstring | nulltostring | null
eventstringЗначения:
createdupdatedmovedowner_changedcomment_editedcomment_deleteddeletedrestoredcomment_pinnedcomment_unpinnedpayment_recordedpayment_changedpayment_canceledpayment_refundedpayment_requestedpayment_request_paidpayment_request_expiredpayment_request_canceledpayment_request_failedpayment_consent_givenpayment_credit_changedarchivedfieldsstring[]Значения:
titledescriptioncontactIdcompanyIdexpectedCloseDateownerobject | nullВложенные поля: 2
fromobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
toobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
stageobject | nullВложенные поля: 2
fromobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
toobjectВложенные поля: 2
idstring · uuid | nullnamestring
statusobject | nullВложенные поля: 2
fromstringЗначения:
openwonlosttostringЗначения:
openwonlost
summarystring | nullviastring | nullЗначения:
manualimportformmergeobjectВложенные поля: 2
droppedobject[]количество ≤ 400
Вложенные поля: 4
keystringlabelstring | nullrecordstringvaluestring
recordsobject[]количество ≤ 4
Вложенные поля: 3
idstring · uuidnamestringnumberinteger≥ 1
paymentobjectВложенные поля: 3
paymentIdstring · uuid | nullpaymentRequestIdstring · uuid | nullrefundIdstring · uuid | null
idstring · uuidmessageobject | nullВложенные поля: 2
chatobjectВложенные поля: 3
accountobjectВложенные поля: 4
displayNamestringidstring · uuidownerobjectВложенные поля: 2
idstring · uuidnamestring
usernamestring | null
idstring · uuidproviderstringЗначения:
telegram
entryobject | nullВложенные поля: 15
atstring · date-timeauthorobject | nullВложенные поля: 2
idstring · uuidnamestring
callobject | nullВложенные поля: 3
answeredboolean | nulldirectionstringЗначения:
inoutsecondsinteger | null≥ 0
dealIdstring · uuid | nulldeletedbooleandirectionstringЗначения:
inouteditedAtstring · date-time | nullfailurestring | nullfilesobject[]Вложенные поля: 11
contentTypestring | nulldurationSecondsinteger | null≥ 0
gonebooleanhasPreviewbooleanheightinteger | null≥ 1
idstring · uuidkindstringЗначения:
photovoiceaudiovideovideo_notedocumentstickernamestring | nullsizeBytesinteger | null≥ 0
waveforminteger[] | nullколичество ≤ 128 · 0–31
widthinteger | null≥ 1
idstring · uuidkindstringЗначения:
textmediacallotheroriginstringЗначения:
clientaltadevicehistoryotherKindstring | nullЗначения:
stickerlocationcontactpollgameunsupportedstatusstring | nullЗначения:
queuedsendingsentreadfailedcancelledtextstring | null
noteobject | nullВложенные поля: 6
attachmentsobject[]The comment's files in their order (empty without files): id, name, size in bytes, type, and an audio's or a video's length. A signed-in member opens one through GET /note-files/{id}; an API key sees them here but does not open them.
Вложенные поля: 5
contentTypestringdurationSecondsinteger | null0–86400
idstring · uuidnamestringдлина 1–255
sizeinteger≥ 1
bodystringeditedAtstring · date-time | nullmentionsobject[]Вложенные поля: 3
memberIdstring · uuid | nullnamestringtextstring
pinnedobject | nullВложенные поля: 2
atstring · date-timebyobjectВложенные поля: 2
idstring · uuid | nullnamestring
versioninteger≥ 1
taskobject | nullВложенные поля: 9
attributesobject[]Вложенные поля: 6
decimalsinteger | null0–4
fieldTypestring | nullЗначения:
textlong_textnumberdatedatetimebooleanchoicemulti_choiceurlmoneybirthdayaddressfromstring | nullkeystringlabelstring | nulltostring | null
eventstringЗначения:
createdupdatedrescheduledreassignedcompletedreopenedcanceleddeletedrestoredidstring · uuidkindstringЗначения:
taskcallmeetingemailreminderchatnextobject | nullВложенные поля: 4
dueAtstring · date-time | nullidstring · uuidtitlestringallDayboolean
outcomestring | nullЗначения:
callmessagemeetingno_answerno_contactrescheduleobject | nullВложенные поля: 2
notestring | nullreasonstring | nullЗначения:
client_askedno_answerno_timeother
titlestringtypeobject | nullВложенные поля: 3
iconstringidstring · uuidnamestring
typestringЗначения:
notehistorytaskcallmessagecallAnalysisobjectВложенные поля: 1
transcriptobjectВложенные поля: 1
statestringЗначения:
queuedtranscribinghelddonefailed
paymentReportobjectВложенные поля: 9
cardobject | nullВложенные поля: 3
brandstring | nullissuerstring | nullmaskedNumberstring | null
methodstring | nulloccurredAtstring · date-timeorderReferencestring | nullpayerstring | nullpayerEmailstring | nullpayerPhonestring | nullproductCountinteger≥ 0
productsobject[]количество ≤ 20
Вложенные поля: 4
amountstringшаблон
^[0-9]+\.[0-9]{2}$currencystringшаблон
^[A-Z]{3}$namestringquantitystring
nextCursorstring | nullpinnedobject[]количество ≤ 3
Вложенные поля: 11
actorobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
atstring · date-timecallobject | nullВложенные поля: 8
clientNumberstring | nulldirectionstringЗначения:
incomingoutgoingdurationSecondsinteger | null≥ 0
idstring · uuidinProgressbooleanrecordingbooleanresultstring | nullЗначения:
answeredno_answerbusyunreachablefailedtalkSecondsinteger | null≥ 0
historyobject | nullВложенные поля: 11
amountobject | nullВложенные поля: 2
fromobjectВложенные поля: 2
amountstringcurrencystring
toobjectВложенные поля: 2
amountstringcurrencystring
attributesobject[]Вложенные поля: 6
decimalsinteger | null0–4
fieldTypestring | nullЗначения:
textlong_textnumberdatedatetimebooleanchoicemulti_choiceurlmoneybirthdayaddressfromstring | nullkeystringlabelstring | nulltostring | null
eventstringЗначения:
createdupdatedmovedowner_changedcomment_editedcomment_deleteddeletedrestoredcomment_pinnedcomment_unpinnedpayment_recordedpayment_changedpayment_canceledpayment_refundedpayment_requestedpayment_request_paidpayment_request_expiredpayment_request_canceledpayment_request_failedpayment_consent_givenpayment_credit_changedarchivedfieldsstring[]Значения:
titledescriptioncontactIdcompanyIdexpectedCloseDateownerobject | nullВложенные поля: 2
fromobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
toobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
stageobject | nullВложенные поля: 2
fromobject | nullВложенные поля: 2
idstring · uuid | nullnamestring
toobjectВложенные поля: 2
idstring · uuid | nullnamestring
statusobject | nullВложенные поля: 2
fromstringЗначения:
openwonlosttostringЗначения:
openwonlost
summarystring | nullviastring | nullЗначения:
manualimportformmergeobjectВложенные поля: 2
droppedobject[]количество ≤ 400
Вложенные поля: 4
keystringlabelstring | nullrecordstringvaluestring
recordsobject[]количество ≤ 4
Вложенные поля: 3
idstring · uuidnamestringnumberinteger≥ 1
paymentobjectВложенные поля: 3
paymentIdstring · uuid | nullpaymentRequestIdstring · uuid | nullrefundIdstring · uuid | null
idstring · uuidmessageobject | nullВложенные поля: 2
chatobjectВложенные поля: 3
accountobjectВложенные поля: 4
displayNamestringidstring · uuidownerobjectВложенные поля: 2
idstring · uuidnamestring
usernamestring | null
idstring · uuidproviderstringЗначения:
telegram
entryobject | nullВложенные поля: 15
atstring · date-timeauthorobject | nullВложенные поля: 2
idstring · uuidnamestring
callobject | nullВложенные поля: 3
answeredboolean | nulldirectionstringЗначения:
inoutsecondsinteger | null≥ 0
dealIdstring · uuid | nulldeletedbooleandirectionstringЗначения:
inouteditedAtstring · date-time | nullfailurestring | nullfilesobject[]Вложенные поля: 11
contentTypestring | nulldurationSecondsinteger | null≥ 0
gonebooleanhasPreviewbooleanheightinteger | null≥ 1
idstring · uuidkindstringЗначения:
photovoiceaudiovideovideo_notedocumentstickernamestring | nullsizeBytesinteger | null≥ 0
waveforminteger[] | nullколичество ≤ 128 · 0–31
widthinteger | null≥ 1
idstring · uuidkindstringЗначения:
textmediacallotheroriginstringЗначения:
clientaltadevicehistoryotherKindstring | nullЗначения:
stickerlocationcontactpollgameunsupportedstatusstring | nullЗначения:
queuedsendingsentreadfailedcancelledtextstring | null
noteobject | nullВложенные поля: 6
attachmentsobject[]The comment's files in their order (empty without files): id, name, size in bytes, type, and an audio's or a video's length. A signed-in member opens one through GET /note-files/{id}; an API key sees them here but does not open them.
Вложенные поля: 5
contentTypestringdurationSecondsinteger | null0–86400
idstring · uuidnamestringдлина 1–255
sizeinteger≥ 1
bodystringeditedAtstring · date-time | nullmentionsobject[]Вложенные поля: 3
memberIdstring · uuid | nullnamestringtextstring
pinnedobject | nullВложенные поля: 2
atstring · date-timebyobjectВложенные поля: 2
idstring · uuid | nullnamestring
versioninteger≥ 1
taskobject | nullВложенные поля: 9
attributesobject[]Вложенные поля: 6
decimalsinteger | null0–4
fieldTypestring | nullЗначения:
textlong_textnumberdatedatetimebooleanchoicemulti_choiceurlmoneybirthdayaddressfromstring | nullkeystringlabelstring | nulltostring | null
eventstringЗначения:
createdupdatedrescheduledreassignedcompletedreopenedcanceleddeletedrestoredidstring · uuidkindstringЗначения:
taskcallmeetingemailreminderchatnextobject | nullВложенные поля: 4
dueAtstring · date-time | nullidstring · uuidtitlestringallDayboolean
outcomestring | nullЗначения:
callmessagemeetingno_answerno_contactrescheduleobject | nullВложенные поля: 2
notestring | nullreasonstring | nullЗначения:
client_askedno_answerno_timeother
titlestringtypeobject | nullВложенные поля: 3
iconstringidstring · uuidnamestring
typestringЗначения:
notehistorytaskcallmessagecallAnalysisobjectВложенные поля: 1
transcriptobjectВложенные поля: 1
statestringЗначения:
queuedtranscribinghelddonefailed
paymentReportobjectВложенные поля: 9
cardobject | nullВложенные поля: 3
brandstring | nullissuerstring | nullmaskedNumberstring | null
methodstring | nulloccurredAtstring · date-timeorderReferencestring | nullpayerstring | nullpayerEmailstring | nullpayerPhonestring | nullproductCountinteger≥ 0
productsobject[]количество ≤ 20
Вложенные поля: 4
amountstringшаблон
^[0-9]+\.[0-9]{2}$currencystringшаблон
^[A-Z]{3}$namestringquantitystring
История сделки
GET /deals/{dealId}/activity
Всё, что произошло со сделкой, новые сверху, страницами: создание, переходы по этапам, выигрыш, проигрыш и повторное открытие, смена ответственного, суммы, каждого поля и тегов (что было и что стало), комментарии, что произошло с её задачами, оплаты. У каждой записи — кто (actor), когда (at) и что (history, note или task). only оставляет одно: notes — комментарии, history — изменения, tasks — задачи, payments — оплаты, changes — правки названия, суммы, тегов и собственных полей (без создания сделки; в каждой записи только эти правки). Чаты и звонки через API недоступны.
Параметры пути
dealIdstring · uuid обязательно
Параметры запроса
cursorstringдлина 1–512
limitinteger1–100 · по умолчанию
30onlystringЗначения:
noteshistorytasksmainpaymentschanges
Пример запроса
curl 'https://your-company.altahub.ai/api/v1/deals/{dealId}/activity' \
-H 'Authorization: Bearer alta_…'const response = await fetch('https://your-company.altahub.ai/api/v1/deals/{dealId}/activity', {
method: 'GET',
headers: {
Authorization: 'Bearer alta_…',
},
});
const data = await response.json();import requests
response = requests.get(
"https://your-company.altahub.ai/api/v1/deals/{dealId}/activity",
headers={"Authorization": "Bearer alta_…"},
)
data = response.json()<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-company.altahub.ai/api/v1/deals/{dealId}/activity', [
'headers' => ['Authorization' => 'Bearer alta_…'],
]);
$data = json_decode((string) $response->getBody(), true);Ответ 200
Успешный ответ.
{
"items": [
{
"id": "0192f3a1-7c2e-7b4d-9a61-00000000003c",
"type": "task",
"at": "2026-10-24T16:45:00Z",
"actor": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник"
},
"note": null,
"history": null,
"task": {
"id": "0192f3a1-7c2e-7b4d-9a61-00000000003c",
"title": "Перезвонить по счёту",
"kind": "call",
"type": null,
"event": "completed",
"attributes": [],
"outcome": "call",
"next": {
"id": "0192f3a1-7c2e-7b4d-9a61-00000000003d",
"title": "Отправить счёт",
"dueAt": "2026-10-29T09:00:00Z"
},
"reschedule": null
},
"call": null,
"message": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000059",
"type": "history",
"at": "2026-10-23T10:30:00Z",
"actor": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник"
},
"note": null,
"history": {
"event": "payment_recorded",
"via": null,
"stage": null,
"status": null,
"owner": null,
"amount": null,
"fields": [],
"summary": null,
"attributes": [
{
"key": "payment",
"label": null,
"from": null,
"to": "12000.00 UAH",
"fieldType": "money",
"decimals": null
},
{
"key": "paymentStatus",
"label": null,
"from": null,
"to": "paid",
"fieldType": null,
"decimals": null
},
{
"key": "paidAt",
"label": null,
"from": null,
"to": "2026-10-23",
"fieldType": null,
"decimals": null
},
{
"key": "paymentMethod",
"label": null,
"from": null,
"to": "Карта",
"fieldType": null,
"decimals": null
}
],
"payment": {
"paymentId": "0192f3a1-7c2e-7b4d-9a61-0000000000b3",
"refundId": null,
"paymentRequestId": null
}
},
"task": null,
"call": null,
"message": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000050",
"type": "note",
"at": "2026-10-22T09:05:00Z",
"actor": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник"
},
"note": {
"body": "Клиентка просит счёт до пятницы",
"editedAt": null,
"version": 1,
"mentions": [],
"pinned": null,
"attachments": []
},
"history": null,
"task": null,
"call": null,
"message": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000053",
"type": "history",
"at": "2026-10-21T12:45:00Z",
"actor": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник"
},
"note": null,
"history": {
"event": "updated",
"via": "manual",
"stage": null,
"status": null,
"owner": null,
"amount": {
"from": {
"amount": "10000.00",
"currency": "UAH"
},
"to": {
"amount": "12000.00",
"currency": "UAH"
}
},
"fields": [],
"summary": null,
"attributes": [
{
"key": "cf:0192f3a1-7c2e-7b4d-9a61-000000000032",
"label": "Город доставки",
"from": null,
"to": "Киев",
"fieldType": "text",
"decimals": null
}
]
},
"task": null,
"call": null,
"message": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000052",
"type": "history",
"at": "2026-10-21T12:40:00Z",
"actor": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000002",
"name": "Ирина Мельник"
},
"note": null,
"history": {
"event": "moved",
"via": "manual",
"stage": {
"from": {
"id": "0192f3a1-7c2e-7b4d-9a61-00000000001f",
"name": "Новый запрос"
},
"to": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000020",
"name": "Переговоры"
}
},
"status": null,
"owner": null,
"amount": null,
"fields": [],
"summary": null,
"attributes": []
},
"task": null,
"call": null,
"message": null
},
{
"id": "0192f3a1-7c2e-7b4d-9a61-000000000051",
"type": "history",
"at": "2026-10-20T08:15:00Z",
"actor": {
"id": "0192f3a1-7c2e-7b4d-9a61-000000000001",
"name": "Андрей Шевченко"
},
"note": null,
"history": {
"event": "created",
"via": "manual",
"stage": {
"from": null,
"to": {
"id": "0192f3a1-7c2e-7b4d-9a61-00000000001f",
"name": "Новый запрос"
}
},
"status": null,
"owner": null,
"amount": null,
"fields": [],
"summary": null,
"attributes": []
},
"task": null,
"call": null,
"message": null
}
],
"nextCursor": null,
"pinned": []
}Поля — как в ответе История контакта
Связать комментарий с его копией в другой системе
PUT /notes/{noteId}/copies/{source}/{externalId}
Для сервиса, который копирует комментарии из Alta в другую систему: после того как копия создана там, он сообщает её id. source — ваше слово для системы (строчные латинские буквы, цифры, - и _), externalId — id копии там. Импорт из этой системы узнаёт копию по этому id и отвечает этим комментарием, а не приносит его второй раз; поэтому в тексте копии не нужна строка со ссылкой на комментарий. Если импорт успел принести копию раньше, чем пришла связь, и она в точности повторяет комментарий, она скрывается как дубль (duplicateHidden: true). Первая связь — created, тот же запрос ещё раз ничего не меняет (unchanged), поэтому повтор безопасен. Связать можно только комментарий, написанный в Alta: для пришедшего импортом — 409 CONFLICT (note_imported); копия, уже связанная с другим комментарием, — 409 CONFLICT (copy_of_another_comment). Нужен ключ с правом записи и право «Импорт данных» в роли автора ключа (у владельца и администратора оно есть), иначе — 403 FORBIDDEN.
Параметры пути
externalIdstring обязательнодлина 1–200 · шаблон
^\S+$noteIdstring · uuid обязательноsourcestring обязательношаблон
^[a-z0-9_-]{1,40}$
Пример запроса
curl -X PUT 'https://your-company.altahub.ai/api/v1/notes/{noteId}/copies/{source}/{externalId}' \
-H 'Authorization: Bearer alta_…' \
-H 'Content-Type: application/json' \
-d '{}'const response = await fetch('https://your-company.altahub.ai/api/v1/notes/{noteId}/copies/{source}/{externalId}', {
method: 'PUT',
headers: {
Authorization: 'Bearer alta_…',
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
});
const data = await response.json();import requests
response = requests.put(
"https://your-company.altahub.ai/api/v1/notes/{noteId}/copies/{source}/{externalId}",
headers={"Authorization": "Bearer alta_…"},
json={},
)
data = response.json()<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('PUT', 'https://your-company.altahub.ai/api/v1/notes/{noteId}/copies/{source}/{externalId}', [
'headers' => ['Authorization' => 'Bearer alta_…'],
'json' => new \stdClass(),
]);
$data = json_decode((string) $response->getBody(), true);Ответ 200
Успешный ответ.
{
"noteId": "0192f3a1-7c2e-7b4d-9a61-000000000050",
"outcome": "created",
"duplicateHidden": false
}Поля ответа
duplicateHiddenbooleannoteIdstring · uuidoutcomestringЗначения:
createdunchanged