Get the certificate status
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/certificate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/certificate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/companies/{company_id}/certificate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "valid",
"holder_name": "LUCIA MARTIN PEREZ",
"holder_tax_id": "00000000T",
"represents_tax_id": "B00000000",
"expires_at": "2028-03-14",
"uploaded_at": "2026-12-01T10:12:40Z"
}{
"error": "The API key is missing, revoked or invalid",
"code": "invalid_api_key",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "invoices is not available in this company",
"code": "tool_unavailable",
"next_action": "check_company_and_access",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "invoice not found",
"code": "not_found",
"next_action": "refresh_record",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "Too many requests: a key makes at most 600 a minute",
"code": "rate_limited",
"request_id": "req_8f14e45fceea167a5a36dedd"
}Digital certificate
Get the certificate status
Returns the status of the digital certificate Melso files with.
GET
/
companies
/
{company_id}
/
certificate
Get the certificate status
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/certificate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/certificate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/companies/{company_id}/certificate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "valid",
"holder_name": "LUCIA MARTIN PEREZ",
"holder_tax_id": "00000000T",
"represents_tax_id": "B00000000",
"expires_at": "2028-03-14",
"uploaded_at": "2026-12-01T10:12:40Z"
}{
"error": "The API key is missing, revoked or invalid",
"code": "invalid_api_key",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "invoices is not available in this company",
"code": "tool_unavailable",
"next_action": "check_company_and_access",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "invoice not found",
"code": "not_found",
"next_action": "refresh_record",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "Too many requests: a key makes at most 600 a minute",
"code": "rate_limited",
"request_id": "req_8f14e45fceea167a5a36dedd"
}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.
Path Parameters
Response
The certificate status.