Get started
Integrations
Use cases
API reference
- Accounting
- Authentication
- Tenant Management
- User
Authentication
Get companies
GET
/
auth
/
companies
curl --request GET \
--url https://api.maesn.dev/auth/companies \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>'
{
"meta": {
"warnings": [
"Field not used by target system"
],
"pagination": {
"total": 123,
"perPage": 123,
"currentPage": 123,
"totalPages": 123
}
},
"data": [
{
"id": "string",
"name": "string",
"environmentId": "string",
"client_number": "1",
"consultant_number": "223344",
"subscription": [
{
"id": "ACCOUNTING",
"name": "Accounting",
"status": "paying",
"active": true
}
]
}
]
}
Test Api token:
663222ee
Test Account token:
85b30b51
System-specific requirements
Please ensure the query parameter environmentName is accurately filled with the respective environment to which the company belongs.
You can obtain this value by using the GET Environments
endpoints available under the Authentication section.
Supported Response Parameters:
Query Parameters
Environment Name
Response
200 - application/json
Was this page helpful?
curl --request GET \
--url https://api.maesn.dev/auth/companies \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>'
{
"meta": {
"warnings": [
"Field not used by target system"
],
"pagination": {
"total": 123,
"perPage": 123,
"currentPage": 123,
"totalPages": 123
}
},
"data": [
{
"id": "string",
"name": "string",
"environmentId": "string",
"client_number": "1",
"consultant_number": "223344",
"subscription": [
{
"id": "ACCOUNTING",
"name": "Accounting",
"status": "paying",
"active": true
}
]
}
]
}