Get started
Integrations
Use cases
API reference
- Accounting
- Authentication
- Tenant Management
- User
Authentication
Get companies
GET
/
auth
/
companies
Copy
curl --request GET \
--url https://api.maesn.dev/auth/companies \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>'
Copy
{
"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:
Copy
663222ee
Test Account token:
Copy
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
Example:
"string"
Example:
"string"
Example:
"string"
Example:
"1"
Example:
"223344"
Was this page helpful?
Copy
curl --request GET \
--url https://api.maesn.dev/auth/companies \
--header 'X-ACCOUNT-KEY: <x-account-key>' \
--header 'X-API-KEY: <x-api-key>'
Copy
{
"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
}
]
}
]
}