List case kinds
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/case-kinds \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/case-kinds"
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}/case-kinds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"kind": "modelo",
"name": "<string>",
"details_schema": {},
"approval": true,
"payment": {
"mode": "plan",
"covered": true,
"amount_cents": 123
},
"description": "<string>"
}
]
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Cases
List case kinds
The kinds of case this company can open, each with what it is, the JSON Schema of its details, whether the company approves a professional’s draft, and how it is paid: included in the plan, or a one-off service price the owner pays before Melso starts.
GET
/
companies
/
{company_id}
/
case-kinds
List case kinds
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/case-kinds \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/case-kinds"
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}/case-kinds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"kind": "modelo",
"name": "<string>",
"details_schema": {},
"approval": true,
"payment": {
"mode": "plan",
"covered": true,
"amount_cents": 123
},
"description": "<string>"
}
]
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Live capability. Melso runs this in production today. Partner keys reach it once your partner account is enabled. See Availability.
Authorizations
Your partner secret key, mk_live_… for real companies or mk_test_…
for test companies. Keep it on your servers. See
Authentication.
Path Parameters
The company's ID. Every company-scoped call works in exactly this company.
Response
Kinds.
Show child attributes
Show child attributes