Record a document
curl --request POST \
--url https://api.melso.ai/v1/companies/{company_id}/employees/{employee_id}/document-records \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "information_notice",
"contract_id": "7c6b5a49-3827-4615-9504-a3b2c1d0e9f8",
"requested_on": "2026-12-01",
"delivered_on": "2026-12-01",
"channel": "email"
}
'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/employees/{employee_id}/document-records"
payload = {
"kind": "information_notice",
"contract_id": "7c6b5a49-3827-4615-9504-a3b2c1d0e9f8",
"requested_on": "2026-12-01",
"delivered_on": "2026-12-01",
"channel": "email"
}
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({
kind: 'information_notice',
contract_id: '7c6b5a49-3827-4615-9504-a3b2c1d0e9f8',
requested_on: '2026-12-01',
delivered_on: '2026-12-01',
channel: 'email'
})
};
fetch('https://api.melso.ai/v1/companies/{company_id}/employees/{employee_id}/document-records', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"contract_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "contract_pdf",
"status": "due",
"due_on": "2023-12-25",
"file_id": "<string>"
}
]
}Employees
Record a document
Records that a contract’s information notice was delivered or its signed copy received.
POST
/
companies
/
{company_id}
/
employees
/
{employee_id}
/
document-records
Record a document
curl --request POST \
--url https://api.melso.ai/v1/companies/{company_id}/employees/{employee_id}/document-records \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "information_notice",
"contract_id": "7c6b5a49-3827-4615-9504-a3b2c1d0e9f8",
"requested_on": "2026-12-01",
"delivered_on": "2026-12-01",
"channel": "email"
}
'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/employees/{employee_id}/document-records"
payload = {
"kind": "information_notice",
"contract_id": "7c6b5a49-3827-4615-9504-a3b2c1d0e9f8",
"requested_on": "2026-12-01",
"delivered_on": "2026-12-01",
"channel": "email"
}
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({
kind: 'information_notice',
contract_id: '7c6b5a49-3827-4615-9504-a3b2c1d0e9f8',
requested_on: '2026-12-01',
delivered_on: '2026-12-01',
channel: 'email'
})
};
fetch('https://api.melso.ai/v1/companies/{company_id}/employees/{employee_id}/document-records', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"contract_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "contract_pdf",
"status": "due",
"due_on": "2023-12-25",
"file_id": "<string>"
}
]
}Beta. Melso does not serve this operation yet, and its fields can still change. See what is live.
Authorizations
companyApiKeypartnerApiKey
A company API key, mk_live_…, that the company's owner creates in the
Melso app under Settings, Connect your AI, API keys. It works in that
one company with the owner's authority. Test keys (mk_test_…) are not
issued. Keep the key on your servers. See
Authentication.
Headers
A unique key of yours, such as a UUID, that makes a retried create
safe. For 24 hours a retry with the same key and body gets the first
answer again, with Idempotent-Replayed: true. The same key with
another body answers 422 idempotency_key_reused; while the first
request runs, 409 idempotency_key_in_use. A 5xx answer is not
kept, so its retry runs again. See Conventions.
Maximum string length:
255Path Parameters
Body
application/json