On Premise Agent Groups
An on-premise agent group is an ordered set of agents that can each reach the same systems. A connection binds either _agentId (one agent) or _agentGroupId (a group) — never both.
When a connection is bound to a group, the platform resolves a healthy member on every dispatch. Per the eligibility rule the platform implements, a member stops receiving new work when it goes offline, when its heartbeat goes stale, or when its local worker reports unhealthy, and the connection stays online while any member can still serve (source-only: read from the platform's dispatch code; not yet observed on an entitled account).
Agents themselves are unaware of grouping — a group is N ordinary agents, each with its own tunnel. Use the On-premise Agents API to install, configure, and monitor the members.
Ordering
members order is failover priority. members[0] is preferred and is used whenever it is eligible. Reordering takes effect on the next dispatch and does not interrupt work in flight (source-only, as above).
Health
Health is not embedded in these responses. Read offline and lastHeartbeatAt from GET /v1/agents for each members[]._agentId to compose a live view of the group.
On-premise agent group schema
Returns all on-premise agent groups configured in the environment. Member health is not included — fetch GET /v1/agents and match on members[]._agentId to show which members are currently eligible.
Comma-separated list of fields to project into each returned record.
Triggers summary projection: the response contains a minimal identity
set (_id, name, plus resource-specific fields) with the requested
fields added on top. Supports dot notation for nested fields.
Mutually exclusive with exclude.
_integrationId,disabled,lastModifiedComma-separated list of fields to strip from the default response.
Unlike include, does not trigger summary projection — returns the
full record with the named fields removed. Protected identity fields
(e.g. name) cannot be stripped. Mutually exclusive with include.
createdAt,lastModifiedMaximum number of agent groups to return per page.
1000Example: 100Field to sort the agent group list by (for example name).
nameOpaque pagination cursor from a previous page's Link header;
returns results after that position. Invalid cursor values return
400 invalid_query_param.
Opaque pagination cursor from a previous page's Link header;
returns results before that position. Invalid cursor values return
400 invalid_query_param.
When true, each returned agent group additionally carries
_accessLevel — the calling user's effective access to that group.
trueArray of agent group objects.
No agent groups exist in this environment.
Invalid pagination cursor in after or before.
Unauthorized. The request lacks a valid bearer token, or the provided token failed to authenticate.
Note: the 401 response is produced by the auth middleware before the
request reaches the endpoint handler, so it does not follow the
standard {errors: [...]} envelope. Instead the body is a bare
{message: string} object with no code, no errors array. Callers
handling 401s should key off the HTTP status and the message string,
not try to destructure an errors[].
limit is outside the accepted range.
GET /v1/agentgroups HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"_id": "6512ab7939dc306a3806eab5",
"name": "Production ERP agents",
"description": "Two hosts in separate racks, both reach the prod Oracle instance.",
"members": [
{
"_agentId": "62e1387939dc306a3806eab5"
},
{
"_agentId": "5ecd2c3ce1ec9c4fcaf60b10"
}
],
"routingPolicy": "failover",
"createdAt": "2026-07-02T10:30:00.000Z",
"lastModified": "2026-08-14T01:52:12.086Z"
},
{
"_id": "6512ab7939dc306a3806eac1",
"name": "Warehouse SFTP agents",
"members": [
{
"_agentId": "6398ddf316be761fb16a6523"
}
],
"routingPolicy": "failover",
"createdAt": "2026-07-20T08:00:00.000Z",
"lastModified": "2026-07-20T08:00:00.000Z"
}
]Creates an on-premise agent group. Every member must be an existing agent in the same environment. members order is failover priority.
The service does not reject a group whose members share one agent extension (source-only — agent extension placement is not customer-controllable), but such a group is not highly available: that host is a single point of failure in front of the group.
Requires the agent groups entitlement. Only the name check runs before it, so an account without the entitlement gets 403 feature_not_entitled for any request that has a name, whatever its members or routingPolicy (live-verified with members absent, [], a non-array, a nonexistent agent id, and four repeats of one id, and with routingPolicy: balanced — every shape answered 403). Reads, updates and deletes do not check the entitlement — on the same account, list and get answer normally and PUT / DELETE on an unknown id answer 404, not 403 (live-verified).
Fields for creating or updating an on-premise agent group.
Display name identifying the group of on-premise agents. The server caps
it at 100 characters (size_limit_exceeded) — a cap read from the model's
size limit, enforced by the same plugin that caps agent names (verified
live there), not yet confirmed on an agent group.
Production ERP agentsOptional note about the group's purpose or the hosts it spans; capped at
5,120 characters by the same model size limit as name (source-only).
Two hosts in separate racks, both reach the prod Oracle instance.How the platform picks a member for each dispatch. Leave it at
failover (the only accepted value today); member order in members
is the priority order.
Absent is treated as failover.
failoverExample: failoverPossible values: Created agent group.
On-premise agent group object as returned by the API. Member health is
not embedded — read offline and lastHeartbeatAt from
GET /v1/agents for each _agentId to compose a live view of the group.
Display name identifying the group of on-premise agents. The server caps
it at 100 characters (size_limit_exceeded) — a cap read from the model's
size limit, enforced by the same plugin that caps agent names (verified
live there), not yet confirmed on an agent group.
Production ERP agentsOptional note about the group's purpose or the hosts it spans; capped at
5,120 characters by the same model size limit as name (source-only).
Two hosts in separate racks, both reach the prod Oracle instance.How the platform picks a member for each dispatch. Leave it at
failover (the only accepted value today); member order in members
is the priority order.
Absent is treated as failover.
failoverExample: failoverPossible values: Unique identifier for the resource. Format is a 24-character hexadecimal string.
5f8d43a1b9e5a80011a35f2cTimestamp when the resource was created. Set automatically and cannot be modified.
2023-04-01T09:15:32ZTimestamp when the resource was last updated. Changes whenever any property is modified.
2023-04-15T14:30:15ZTimestamp when the resource was soft-deleted. When null or absent, the resource is active.
2023-05-20T11:45:32ZThe calling user's effective access level for this group.
Present only when the list request sets permissions=true.
manageUnauthorized. The request lacks a valid bearer token, or the provided token failed to authenticate.
Note: the 401 response is produced by the auth middleware before the
request reaches the endpoint handler, so it does not follow the
standard {errors: [...]} envelope. Instead the body is a bare
{message: string} object with no code, no errors array. Callers
handling 401s should key off the HTTP status and the message string,
not try to destructure an errors[].
The account is not entitled to on-premise agent groups.
Validation failed. A missing, blank or non-string name answers
required_field_missing before the entitlement check (live-verified).
The rules below are read from the agent management service's validation
and are source-only until an entitled account confirms them — the probe
account is not entitled to agent groups. On an entitled account, a
non-array members answers invalid_field_type, and these rules answer
with field set to the path at fault: more than 3 members
(max_members_exceeded), a repeated _agentId (duplicate_member), an
agent that does not exist (invalid_ref), an agent in another
environment (agent_group_member_environment_mismatch),
routingPolicy: balanced (invalid_routing_policy), or a name over
100 characters (size_limit_exceeded).
POST /v1/agentgroups HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 233
{
"name": "Production ERP agents",
"description": "Two hosts in separate racks, both reach the prod Oracle instance.",
"members": [
{
"_agentId": "62e1387939dc306a3806eab5"
},
{
"_agentId": "5ecd2c3ce1ec9c4fcaf60b10"
}
],
"routingPolicy": "failover"
}{
"_id": "6512ab7939dc306a3806eab5",
"name": "Production ERP agents",
"description": "Two hosts in separate racks, both reach the prod Oracle instance.",
"members": [
{
"_agentId": "62e1387939dc306a3806eab5"
},
{
"_agentId": "5ecd2c3ce1ec9c4fcaf60b10"
}
],
"routingPolicy": "failover",
"createdAt": "2026-07-02T10:30:00.000Z",
"lastModified": "2026-07-02T10:30:00.000Z"
}Returns a single on-premise agent group. Member health is not embedded — read GET /v1/agents for each members[]._agentId to show live eligibility.
Agent group resource ID.
Agent group object.
On-premise agent group object as returned by the API. Member health is
not embedded — read offline and lastHeartbeatAt from
GET /v1/agents for each _agentId to compose a live view of the group.
Display name identifying the group of on-premise agents. The server caps
it at 100 characters (size_limit_exceeded) — a cap read from the model's
size limit, enforced by the same plugin that caps agent names (verified
live there), not yet confirmed on an agent group.
Production ERP agentsOptional note about the group's purpose or the hosts it spans; capped at
5,120 characters by the same model size limit as name (source-only).
Two hosts in separate racks, both reach the prod Oracle instance.How the platform picks a member for each dispatch. Leave it at
failover (the only accepted value today); member order in members
is the priority order.
Absent is treated as failover.
failoverExample: failoverPossible values: Unique identifier for the resource. Format is a 24-character hexadecimal string.
5f8d43a1b9e5a80011a35f2cTimestamp when the resource was created. Set automatically and cannot be modified.
2023-04-01T09:15:32ZTimestamp when the resource was last updated. Changes whenever any property is modified.
2023-04-15T14:30:15ZTimestamp when the resource was soft-deleted. When null or absent, the resource is active.
2023-05-20T11:45:32ZThe calling user's effective access level for this group.
Present only when the list request sets permissions=true.
manage_id is not a valid ObjectId.
Unauthorized. The request lacks a valid bearer token, or the provided token failed to authenticate.
Note: the 401 response is produced by the auth middleware before the
request reaches the endpoint handler, so it does not follow the
standard {errors: [...]} envelope. Instead the body is a bare
{message: string} object with no code, no errors array. Callers
handling 401s should key off the HTTP status and the message string,
not try to destructure an errors[].
No agent group has this id in the environment. A group in the recycle bin answers with the recycle-bin message instead (source-only: no group could be created on the probe account to put one there).
GET /v1/agentgroups/{_id} HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"_id": "6512ab7939dc306a3806eab5",
"name": "Production ERP agents",
"description": "Two hosts in separate racks, both reach the prod Oracle instance.",
"members": [
{
"_agentId": "62e1387939dc306a3806eab5"
},
{
"_agentId": "5ecd2c3ce1ec9c4fcaf60b10"
}
],
"routingPolicy": "failover",
"createdAt": "2026-07-02T10:30:00.000Z",
"lastModified": "2026-08-14T01:52:12.086Z"
}Replaces an on-premise agent group. Send the complete desired document: the service's update handler treats the body as a full replace, not a merge — omitting members clears the membership list, and omitting description or routingPolicy clears those fields (source-only: read from the handler, not yet confirmed on an entitled account; sending the whole document is correct under either behaviour). There is no PATCH on this resource (live-verified: PATCH answers 404 resource_not_found).
Reordering members changes failover priority and, per the dispatch rule the service implements, takes effect on the next dispatch without interrupting work already in flight (source-only).
Agent group resource ID.
Fields for creating or updating an on-premise agent group.
Display name identifying the group of on-premise agents. The server caps
it at 100 characters (size_limit_exceeded) — a cap read from the model's
size limit, enforced by the same plugin that caps agent names (verified
live there), not yet confirmed on an agent group.
Production ERP agentsOptional note about the group's purpose or the hosts it spans; capped at
5,120 characters by the same model size limit as name (source-only).
Two hosts in separate racks, both reach the prod Oracle instance.How the platform picks a member for each dispatch. Leave it at
failover (the only accepted value today); member order in members
is the priority order.
Absent is treated as failover.
failoverExample: failoverPossible values: Updated agent group.
On-premise agent group object as returned by the API. Member health is
not embedded — read offline and lastHeartbeatAt from
GET /v1/agents for each _agentId to compose a live view of the group.
Display name identifying the group of on-premise agents. The server caps
it at 100 characters (size_limit_exceeded) — a cap read from the model's
size limit, enforced by the same plugin that caps agent names (verified
live there), not yet confirmed on an agent group.
Production ERP agentsOptional note about the group's purpose or the hosts it spans; capped at
5,120 characters by the same model size limit as name (source-only).
Two hosts in separate racks, both reach the prod Oracle instance.How the platform picks a member for each dispatch. Leave it at
failover (the only accepted value today); member order in members
is the priority order.
Absent is treated as failover.
failoverExample: failoverPossible values: Unique identifier for the resource. Format is a 24-character hexadecimal string.
5f8d43a1b9e5a80011a35f2cTimestamp when the resource was created. Set automatically and cannot be modified.
2023-04-01T09:15:32ZTimestamp when the resource was last updated. Changes whenever any property is modified.
2023-04-15T14:30:15ZTimestamp when the resource was soft-deleted. When null or absent, the resource is active.
2023-05-20T11:45:32ZThe calling user's effective access level for this group.
Present only when the list request sets permissions=true.
manageThe body is not a JSON object, or _id is not a valid ObjectId.
Unauthorized. The request lacks a valid bearer token, or the provided token failed to authenticate.
Note: the 401 response is produced by the auth middleware before the
request reaches the endpoint handler, so it does not follow the
standard {errors: [...]} envelope. Instead the body is a bare
{message: string} object with no code, no errors array. Callers
handling 401s should key off the HTTP status and the message string,
not try to destructure an errors[].
Forbidden. The authenticated caller does not have permission to perform this operation.
No agent group has this id in the environment (live-verified). A group
in the recycle bin answers with the recycle-bin message instead
(source-only, as on GET). The lookup runs after the name check — an
empty body on an unknown id answers 422 required_field_missing, not
404 (live-verified) — and before any member rule.
Validation failed. A missing, blank or non-string name answers
required_field_missing (live-verified). The member and routing rules
answer as on create — source-only until an entitled account confirms
them: invalid_field_type for a non-array members, and
max_members_exceeded, duplicate_member, invalid_ref,
agent_group_member_environment_mismatch, invalid_routing_policy or
size_limit_exceeded with field set to the path at fault.
PUT /v1/agentgroups/{_id} HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 273
{
"name": "Production ERP agents",
"description": "Two hosts in separate racks, both reach the prod Oracle instance.",
"members": [
{
"_agentId": "62e1387939dc306a3806eab5"
},
{
"_agentId": "5ecd2c3ce1ec9c4fcaf60b10"
},
{
"_agentId": "6398ddf316be761fb16a6523"
}
],
"routingPolicy": "failover"
}{
"_id": "6512ab7939dc306a3806eab5",
"name": "Production ERP agents",
"description": "Two hosts in separate racks, both reach the prod Oracle instance.",
"members": [
{
"_agentId": "62e1387939dc306a3806eab5"
},
{
"_agentId": "5ecd2c3ce1ec9c4fcaf60b10"
},
{
"_agentId": "6398ddf316be761fb16a6523"
}
],
"routingPolicy": "failover",
"createdAt": "2026-07-02T10:30:00.000Z",
"lastModified": "2026-08-21T11:04:55.120Z"
}Deletes an on-premise agent group. Soft-deleted and retained in the recycle bin for 30 days. Member agents are not deleted or uninstalled — only the grouping is removed.
The service refuses the delete with 409 agent_group_in_use while any connection is still bound to this group (source-only: no group could be created on the probe account to bind one). Re-point those connections to a single _agentId, or to another group, first, and check GET /v1/agentgroups/{_id}/dependencies before deleting.
Agent group resource ID.
Agent group deleted.
No content
_id is not a valid ObjectId.
Unauthorized. The request lacks a valid bearer token, or the provided token failed to authenticate.
Note: the 401 response is produced by the auth middleware before the
request reaches the endpoint handler, so it does not follow the
standard {errors: [...]} envelope. Instead the body is a bare
{message: string} object with no code, no errors array. Callers
handling 401s should key off the HTTP status and the message string,
not try to destructure an errors[].
No active agent group has this id. An unknown id answers with the recycle-bin message (live-verified); a group already in the recycle bin answers the same way (source-only).
The agent group is still bound to at least one connection (source-only: read from the service's delete guard, not yet confirmed on an entitled account).
DELETE /v1/agentgroups/{_id} HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Returns resources that depend on this on-premise agent group. Keys are resource types (connections); values are arrays of dependency entries.
Check dependencies before deleting — the service refuses DELETE with 409 agent_group_in_use while any connection is still bound (source-only until an entitled account confirms it). Returns {} for both zero-dependency and nonexistent IDs (live-verified for a nonexistent id).
Agent group resource ID.
Dependency map. Keys are resource-type strings; values are arrays
of dependency entries. Returns {} when no dependents exist.
Map of dependent-resource types to arrays of dependency entries.
Keys are plural resource type strings (e.g. flows, imports,
connections). An empty object {} means no dependents.
_id is not a valid ObjectId.
Unauthorized. The request lacks a valid bearer token, or the provided token failed to authenticate.
Note: the 401 response is produced by the auth middleware before the
request reaches the endpoint handler, so it does not follow the
standard {errors: [...]} envelope. Instead the body is a bare
{message: string} object with no code, no errors array. Callers
handling 401s should key off the HTTP status and the message string,
not try to destructure an errors[].
GET /v1/agentgroups/{_id}/dependencies HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{}Last updated
Was this helpful?