> For the complete documentation index, see [llms.txt](https://developer.celigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.celigo.com/api/api-reference/connections-and-http-connectors/on-premise-agent-groups.md). Agents can also search and read this documentation through its [MCP server](https://developer.celigo.com/~gitbook/mcp).

# 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

## The AgentGroup object

```json
{"openapi":"3.2.0","info":{"title":"On-premise agent groups","version":"1.0.0"},"components":{"schemas":{"AgentGroup":{"type":"object","required":["_id","name","createdAt","lastModified"],"description":"On-premise agent group object as returned by the API. Member health is\n**not** embedded — read `offline` and `lastHeartbeatAt` from\n`GET /v1/agents` for each `_agentId` to compose a live view of the group.","allOf":[{"$ref":"#/components/schemas/AgentGroupBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_accessLevel":{"type":"string","readOnly":true,"description":"The calling user's effective access level for this group.\nPresent only when the list request sets `permissions=true`."}}}]},"AgentGroupBase":{"type":"object","description":"Fields for creating or updating an on-premise agent group.","properties":{"name":{"type":"string","maxLength":100,"description":"Display name identifying the group of on-premise agents. The server caps\nit at 100 characters (`size_limit_exceeded`) — a cap read from the model's\nsize limit, enforced by the same plugin that caps agent names (verified\nlive there), not yet confirmed on an agent group."},"description":{"type":"string","maxLength":5120,"description":"Optional note about the group's purpose or the hosts it spans; capped at\n5,120 characters by the same model size limit as `name` (source-only)."},"members":{"type":"array","maxItems":3,"description":"Ordered list of member on-premise agents. **Array order is failover priority** —\n`members[0]` is the preferred member and is used whenever it is eligible.\nThe service's validation allows at most 3 members, rejects a repeated\n`_agentId`, and requires every member to belong to the same environment\nas the group (rules read from the service — source-only until an\nentitled account confirms them; the matching 422 codes are on the\ncreate and update operations).","items":{"type":"object","required":["_agentId"],"properties":{"_agentId":{"type":"string","format":"objectId","description":"Reference to a member on-premise agent."}}}},"routingPolicy":{"type":"string","enum":["failover","balanced"],"default":"failover","description":"How the platform picks a member for each dispatch. Leave it at\n`failover` (the only accepted value today); member order in `members`\nis the priority order.\n\nAbsent is treated as `failover`."}}},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]}}}}
```

## List agent groups

> 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.

```json
{"openapi":"3.2.0","info":{"title":"On-premise agent groups","version":"1.0.0"},"tags":[{"name":"On-premise agent groups","description":"An on-premise agent group is an ordered set of agents that can each reach\nthe same systems. A connection binds either `_agentId` (one agent) or\n`_agentGroupId` (a group) — never both.\n\nWhen a connection is bound to a group, the platform resolves a healthy\nmember on every dispatch. Per the eligibility rule the platform\nimplements, a member stops receiving new work when it goes offline, when\nits heartbeat goes stale, or when its local worker reports unhealthy, and\nthe connection stays online while any member can still serve (source-only:\nread from the platform's dispatch code; not yet observed on an entitled\naccount).\n\nAgents themselves are unaware of grouping — a group is N ordinary agents,\neach with its own tunnel. Use the On-premise Agents API to install,\nconfigure, and monitor the members.\n\n## Ordering\n\n`members` order is failover priority. `members[0]` is preferred and is\nused whenever it is eligible. Reordering takes effect on the next\ndispatch and does not interrupt work in flight (source-only, as above).\n\n## Health\n\nHealth is not embedded in these responses. Read `offline` and\n`lastHeartbeatAt` from `GET /v1/agents` for each `members[]._agentId` to\ncompose a live view of the group.\n\n## On-premise agent group schema\n\n{% openapi-schemas spec=\"agentgroup\" schemas=\"AgentGroup\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"parameters":{"Include":{"name":"include","in":"query","required":false,"description":"Comma-separated list of fields to project into each returned record.\nTriggers summary projection: the response contains a minimal identity\nset (`_id`, `name`, plus resource-specific fields) with the requested\nfields added on top. Supports dot notation for nested fields.\nMutually exclusive with `exclude`.","schema":{"type":"string"}},"Exclude":{"name":"exclude","in":"query","required":false,"description":"Comma-separated list of fields to strip from the default response.\nUnlike `include`, does not trigger summary projection — returns the\nfull record with the named fields removed. Protected identity fields\n(e.g. `name`) cannot be stripped. Mutually exclusive with `include`.","schema":{"type":"string"}}},"schemas":{"AgentGroup":{"type":"object","required":["_id","name","createdAt","lastModified"],"description":"On-premise agent group object as returned by the API. Member health is\n**not** embedded — read `offline` and `lastHeartbeatAt` from\n`GET /v1/agents` for each `_agentId` to compose a live view of the group.","allOf":[{"$ref":"#/components/schemas/AgentGroupBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_accessLevel":{"type":"string","readOnly":true,"description":"The calling user's effective access level for this group.\nPresent only when the list request sets `permissions=true`."}}}]},"AgentGroupBase":{"type":"object","description":"Fields for creating or updating an on-premise agent group.","properties":{"name":{"type":"string","maxLength":100,"description":"Display name identifying the group of on-premise agents. The server caps\nit at 100 characters (`size_limit_exceeded`) — a cap read from the model's\nsize limit, enforced by the same plugin that caps agent names (verified\nlive there), not yet confirmed on an agent group."},"description":{"type":"string","maxLength":5120,"description":"Optional note about the group's purpose or the hosts it spans; capped at\n5,120 characters by the same model size limit as `name` (source-only)."},"members":{"type":"array","maxItems":3,"description":"Ordered list of member on-premise agents. **Array order is failover priority** —\n`members[0]` is the preferred member and is used whenever it is eligible.\nThe service's validation allows at most 3 members, rejects a repeated\n`_agentId`, and requires every member to belong to the same environment\nas the group (rules read from the service — source-only until an\nentitled account confirms them; the matching 422 codes are on the\ncreate and update operations).","items":{"type":"object","required":["_agentId"],"properties":{"_agentId":{"type":"string","format":"objectId","description":"Reference to a member on-premise agent."}}}},"routingPolicy":{"type":"string","enum":["failover","balanced"],"default":"failover","description":"How the platform picks a member for each dispatch. Leave it at\n`failover` (the only accepted value today); member order in `members`\nis the priority order.\n\nAbsent is treated as `failover`."}}},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/agentgroups":{"get":{"summary":"List agent groups","description":"Returns all on-premise agent groups configured in the environment. Member\nhealth is not included — fetch `GET /v1/agents` and match on\n`members[]._agentId` to show which members are currently eligible.","operationId":"listAgentGroups","tags":["On-premise agent groups"],"parameters":[{"$ref":"#/components/parameters/Include"},{"$ref":"#/components/parameters/Exclude"},{"name":"limit","in":"query","required":false,"description":"Maximum number of agent groups to return per page.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":1000}},{"name":"sort_by","in":"query","required":false,"description":"Field to sort the agent group list by (for example `name`).","schema":{"type":"string"}},{"name":"after","in":"query","required":false,"description":"Opaque pagination cursor from a previous page's `Link` header;\nreturns results after that position. Invalid cursor values return\n400 `invalid_query_param`.","schema":{"type":"string"}},{"name":"before","in":"query","required":false,"description":"Opaque pagination cursor from a previous page's `Link` header;\nreturns results before that position. Invalid cursor values return\n400 `invalid_query_param`.","schema":{"type":"string"}},{"name":"permissions","in":"query","required":false,"description":"When true, each returned agent group additionally carries\n`_accessLevel` — the calling user's effective access to that group.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Array of agent group objects.","headers":{"Link":{"description":"RFC 5988 pagination links. Includes `<...>; rel=\"next\"` when more\npages remain; absent on the final page.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentGroup"}}}}},"204":{"description":"No agent groups exist in this environment."},"400":{"description":"Invalid pagination cursor in `after` or `before`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"422":{"description":"`limit` is outside the accepted range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Create an agent group

> 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).

```json
{"openapi":"3.2.0","info":{"title":"On-premise agent groups","version":"1.0.0"},"tags":[{"name":"On-premise agent groups","description":"An on-premise agent group is an ordered set of agents that can each reach\nthe same systems. A connection binds either `_agentId` (one agent) or\n`_agentGroupId` (a group) — never both.\n\nWhen a connection is bound to a group, the platform resolves a healthy\nmember on every dispatch. Per the eligibility rule the platform\nimplements, a member stops receiving new work when it goes offline, when\nits heartbeat goes stale, or when its local worker reports unhealthy, and\nthe connection stays online while any member can still serve (source-only:\nread from the platform's dispatch code; not yet observed on an entitled\naccount).\n\nAgents themselves are unaware of grouping — a group is N ordinary agents,\neach with its own tunnel. Use the On-premise Agents API to install,\nconfigure, and monitor the members.\n\n## Ordering\n\n`members` order is failover priority. `members[0]` is preferred and is\nused whenever it is eligible. Reordering takes effect on the next\ndispatch and does not interrupt work in flight (source-only, as above).\n\n## Health\n\nHealth is not embedded in these responses. Read `offline` and\n`lastHeartbeatAt` from `GET /v1/agents` for each `members[]._agentId` to\ncompose a live view of the group.\n\n## On-premise agent group schema\n\n{% openapi-schemas spec=\"agentgroup\" schemas=\"AgentGroup\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Request":{"type":"object","description":"Fields for creating or updating an on-premise agent group.","required":["name"],"allOf":[{"$ref":"#/components/schemas/AgentGroupBase"}]},"AgentGroupBase":{"type":"object","description":"Fields for creating or updating an on-premise agent group.","properties":{"name":{"type":"string","maxLength":100,"description":"Display name identifying the group of on-premise agents. The server caps\nit at 100 characters (`size_limit_exceeded`) — a cap read from the model's\nsize limit, enforced by the same plugin that caps agent names (verified\nlive there), not yet confirmed on an agent group."},"description":{"type":"string","maxLength":5120,"description":"Optional note about the group's purpose or the hosts it spans; capped at\n5,120 characters by the same model size limit as `name` (source-only)."},"members":{"type":"array","maxItems":3,"description":"Ordered list of member on-premise agents. **Array order is failover priority** —\n`members[0]` is the preferred member and is used whenever it is eligible.\nThe service's validation allows at most 3 members, rejects a repeated\n`_agentId`, and requires every member to belong to the same environment\nas the group (rules read from the service — source-only until an\nentitled account confirms them; the matching 422 codes are on the\ncreate and update operations).","items":{"type":"object","required":["_agentId"],"properties":{"_agentId":{"type":"string","format":"objectId","description":"Reference to a member on-premise agent."}}}},"routingPolicy":{"type":"string","enum":["failover","balanced"],"default":"failover","description":"How the platform picks a member for each dispatch. Leave it at\n`failover` (the only accepted value today); member order in `members`\nis the priority order.\n\nAbsent is treated as `failover`."}}},"AgentGroup":{"type":"object","required":["_id","name","createdAt","lastModified"],"description":"On-premise agent group object as returned by the API. Member health is\n**not** embedded — read `offline` and `lastHeartbeatAt` from\n`GET /v1/agents` for each `_agentId` to compose a live view of the group.","allOf":[{"$ref":"#/components/schemas/AgentGroupBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_accessLevel":{"type":"string","readOnly":true,"description":"The calling user's effective access level for this group.\nPresent only when the list request sets `permissions=true`."}}}]},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/agentgroups":{"post":{"summary":"Create an agent group","operationId":"createAgentGroup","tags":["On-premise agent groups"],"description":"Creates an on-premise agent group. Every member must be an existing agent\nin the same environment. `members` order is failover priority.\n\nThe service does not reject a group whose members share one agent\nextension (source-only — agent extension placement is not\ncustomer-controllable), but such a group is not highly available: that\nhost is a single point of failure in front of the group.\n\nRequires the agent groups entitlement. Only the `name` check runs before\nit, so an account without the entitlement gets 403 `feature_not_entitled`\nfor any request that has a `name`, whatever its `members` or\n`routingPolicy` (live-verified with `members` absent, `[]`, a non-array,\na nonexistent agent id, and four repeats of one id, and with\n`routingPolicy: balanced` — every shape answered 403). Reads, updates and\ndeletes do not check the entitlement — on the same account, list and get\nanswer normally and `PUT` / `DELETE` on an unknown id answer 404, not 403\n(live-verified).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}}},"responses":{"201":{"description":"Created agent group.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGroup"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"403":{"description":"The account is not entitled to on-premise agent groups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed. A missing, blank or non-string `name` answers\n`required_field_missing` before the entitlement check (live-verified).\nThe rules below are read from the agent management service's validation\nand are source-only until an entitled account confirms them — the probe\naccount is not entitled to agent groups. On an entitled account, a\nnon-array `members` answers `invalid_field_type`, and these rules answer\nwith `field` set to the path at fault: more than 3 members\n(`max_members_exceeded`), a repeated `_agentId` (`duplicate_member`), an\nagent that does not exist (`invalid_ref`), an agent in another\nenvironment (`agent_group_member_environment_mismatch`),\n`routingPolicy: balanced` (`invalid_routing_policy`), or a `name` over\n100 characters (`size_limit_exceeded`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Get an agent group

> Returns a single on-premise agent group. Member health is not embedded —\
> read \`GET /v1/agents\` for each \`members\[].\_agentId\` to show live\
> eligibility.

```json
{"openapi":"3.2.0","info":{"title":"On-premise agent groups","version":"1.0.0"},"tags":[{"name":"On-premise agent groups","description":"An on-premise agent group is an ordered set of agents that can each reach\nthe same systems. A connection binds either `_agentId` (one agent) or\n`_agentGroupId` (a group) — never both.\n\nWhen a connection is bound to a group, the platform resolves a healthy\nmember on every dispatch. Per the eligibility rule the platform\nimplements, a member stops receiving new work when it goes offline, when\nits heartbeat goes stale, or when its local worker reports unhealthy, and\nthe connection stays online while any member can still serve (source-only:\nread from the platform's dispatch code; not yet observed on an entitled\naccount).\n\nAgents themselves are unaware of grouping — a group is N ordinary agents,\neach with its own tunnel. Use the On-premise Agents API to install,\nconfigure, and monitor the members.\n\n## Ordering\n\n`members` order is failover priority. `members[0]` is preferred and is\nused whenever it is eligible. Reordering takes effect on the next\ndispatch and does not interrupt work in flight (source-only, as above).\n\n## Health\n\nHealth is not embedded in these responses. Read `offline` and\n`lastHeartbeatAt` from `GET /v1/agents` for each `members[]._agentId` to\ncompose a live view of the group.\n\n## On-premise agent group schema\n\n{% openapi-schemas spec=\"agentgroup\" schemas=\"AgentGroup\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"AgentGroup":{"type":"object","required":["_id","name","createdAt","lastModified"],"description":"On-premise agent group object as returned by the API. Member health is\n**not** embedded — read `offline` and `lastHeartbeatAt` from\n`GET /v1/agents` for each `_agentId` to compose a live view of the group.","allOf":[{"$ref":"#/components/schemas/AgentGroupBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_accessLevel":{"type":"string","readOnly":true,"description":"The calling user's effective access level for this group.\nPresent only when the list request sets `permissions=true`."}}}]},"AgentGroupBase":{"type":"object","description":"Fields for creating or updating an on-premise agent group.","properties":{"name":{"type":"string","maxLength":100,"description":"Display name identifying the group of on-premise agents. The server caps\nit at 100 characters (`size_limit_exceeded`) — a cap read from the model's\nsize limit, enforced by the same plugin that caps agent names (verified\nlive there), not yet confirmed on an agent group."},"description":{"type":"string","maxLength":5120,"description":"Optional note about the group's purpose or the hosts it spans; capped at\n5,120 characters by the same model size limit as `name` (source-only)."},"members":{"type":"array","maxItems":3,"description":"Ordered list of member on-premise agents. **Array order is failover priority** —\n`members[0]` is the preferred member and is used whenever it is eligible.\nThe service's validation allows at most 3 members, rejects a repeated\n`_agentId`, and requires every member to belong to the same environment\nas the group (rules read from the service — source-only until an\nentitled account confirms them; the matching 422 codes are on the\ncreate and update operations).","items":{"type":"object","required":["_agentId"],"properties":{"_agentId":{"type":"string","format":"objectId","description":"Reference to a member on-premise agent."}}}},"routingPolicy":{"type":"string","enum":["failover","balanced"],"default":"failover","description":"How the platform picks a member for each dispatch. Leave it at\n`failover` (the only accepted value today); member order in `members`\nis the priority order.\n\nAbsent is treated as `failover`."}}},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/agentgroups/{_id}":{"get":{"summary":"Get an agent group","operationId":"getAgentGroup","tags":["On-premise agent groups"],"description":"Returns a single on-premise agent group. Member health is not embedded —\nread `GET /v1/agents` for each `members[]._agentId` to show live\neligibility.","parameters":[{"name":"_id","in":"path","required":true,"description":"Agent group resource ID.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Agent group object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGroup"}}}},"400":{"description":"`_id` is not a valid ObjectId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"description":"No agent group has this id in the environment. A group in the recycle\nbin answers with the recycle-bin message instead (source-only: no group\ncould be created on the probe account to put one there).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Update an agent group

> 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).

```json
{"openapi":"3.2.0","info":{"title":"On-premise agent groups","version":"1.0.0"},"tags":[{"name":"On-premise agent groups","description":"An on-premise agent group is an ordered set of agents that can each reach\nthe same systems. A connection binds either `_agentId` (one agent) or\n`_agentGroupId` (a group) — never both.\n\nWhen a connection is bound to a group, the platform resolves a healthy\nmember on every dispatch. Per the eligibility rule the platform\nimplements, a member stops receiving new work when it goes offline, when\nits heartbeat goes stale, or when its local worker reports unhealthy, and\nthe connection stays online while any member can still serve (source-only:\nread from the platform's dispatch code; not yet observed on an entitled\naccount).\n\nAgents themselves are unaware of grouping — a group is N ordinary agents,\neach with its own tunnel. Use the On-premise Agents API to install,\nconfigure, and monitor the members.\n\n## Ordering\n\n`members` order is failover priority. `members[0]` is preferred and is\nused whenever it is eligible. Reordering takes effect on the next\ndispatch and does not interrupt work in flight (source-only, as above).\n\n## Health\n\nHealth is not embedded in these responses. Read `offline` and\n`lastHeartbeatAt` from `GET /v1/agents` for each `members[]._agentId` to\ncompose a live view of the group.\n\n## On-premise agent group schema\n\n{% openapi-schemas spec=\"agentgroup\" schemas=\"AgentGroup\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Request":{"type":"object","description":"Fields for creating or updating an on-premise agent group.","required":["name"],"allOf":[{"$ref":"#/components/schemas/AgentGroupBase"}]},"AgentGroupBase":{"type":"object","description":"Fields for creating or updating an on-premise agent group.","properties":{"name":{"type":"string","maxLength":100,"description":"Display name identifying the group of on-premise agents. The server caps\nit at 100 characters (`size_limit_exceeded`) — a cap read from the model's\nsize limit, enforced by the same plugin that caps agent names (verified\nlive there), not yet confirmed on an agent group."},"description":{"type":"string","maxLength":5120,"description":"Optional note about the group's purpose or the hosts it spans; capped at\n5,120 characters by the same model size limit as `name` (source-only)."},"members":{"type":"array","maxItems":3,"description":"Ordered list of member on-premise agents. **Array order is failover priority** —\n`members[0]` is the preferred member and is used whenever it is eligible.\nThe service's validation allows at most 3 members, rejects a repeated\n`_agentId`, and requires every member to belong to the same environment\nas the group (rules read from the service — source-only until an\nentitled account confirms them; the matching 422 codes are on the\ncreate and update operations).","items":{"type":"object","required":["_agentId"],"properties":{"_agentId":{"type":"string","format":"objectId","description":"Reference to a member on-premise agent."}}}},"routingPolicy":{"type":"string","enum":["failover","balanced"],"default":"failover","description":"How the platform picks a member for each dispatch. Leave it at\n`failover` (the only accepted value today); member order in `members`\nis the priority order.\n\nAbsent is treated as `failover`."}}},"AgentGroup":{"type":"object","required":["_id","name","createdAt","lastModified"],"description":"On-premise agent group object as returned by the API. Member health is\n**not** embedded — read `offline` and `lastHeartbeatAt` from\n`GET /v1/agents` for each `_agentId` to compose a live view of the group.","allOf":[{"$ref":"#/components/schemas/AgentGroupBase"},{"$ref":"#/components/schemas/ResourceResponse"},{"type":"object","properties":{"_accessLevel":{"type":"string","readOnly":true,"description":"The calling user's effective access level for this group.\nPresent only when the list request sets `permissions=true`."}}}]},"ResourceResponse":{"type":"object","description":"Response","properties":{"_id":{"type":"string","format":"objectId","readOnly":true,"description":"Unique identifier for the resource. Format is a 24-character hexadecimal string."},"createdAt":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was created. Set automatically and cannot be modified."},"lastModified":{"type":"string","format":"date-time","readOnly":true,"description":"Timestamp when the resource was last updated. Changes whenever any property is modified."},"deletedAt":{"type":["string","null"],"format":"date-time","readOnly":true,"description":"Timestamp when the resource was soft-deleted. When null or absent, the resource is active."}},"required":["_id"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}},"403-forbidden":{"description":"Forbidden. The authenticated caller does not have permission to perform this operation.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/v1/agentgroups/{_id}":{"put":{"summary":"Update an agent group","operationId":"updateAgentGroup","tags":["On-premise agent groups"],"description":"Replaces an on-premise agent group. Send the complete desired document:\nthe service's update handler treats the body as a **full replace, not a\nmerge** — omitting `members` clears the membership list, and omitting\n`description` or `routingPolicy` clears those fields (source-only: read\nfrom the handler, not yet confirmed on an entitled account; sending the\nwhole document is correct under either behaviour). There is no PATCH on\nthis resource (live-verified: `PATCH` answers 404 `resource_not_found`).\n\nReordering `members` changes failover priority and, per the dispatch\nrule the service implements, takes effect on the next dispatch without\ninterrupting work already in flight (source-only).","parameters":[{"name":"_id","in":"path","required":true,"description":"Agent group resource ID.","schema":{"type":"string","format":"objectId"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}}},"responses":{"200":{"description":"Updated agent group.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGroup"}}}},"400":{"description":"The body is not a JSON object, or `_id` is not a valid ObjectId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"403":{"$ref":"#/components/responses/403-forbidden"},"404":{"description":"No agent group has this id in the environment (live-verified). A group\nin the recycle bin answers with the recycle-bin message instead\n(source-only, as on GET). The lookup runs after the `name` check — an\nempty body on an unknown id answers 422 `required_field_missing`, not\n404 (live-verified) — and before any member rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed. A missing, blank or non-string `name` answers\n`required_field_missing` (live-verified). The member and routing rules\nanswer as on create — source-only until an entitled account confirms\nthem: `invalid_field_type` for a non-array `members`, and\n`max_members_exceeded`, `duplicate_member`, `invalid_ref`,\n`agent_group_member_environment_mismatch`, `invalid_routing_policy` or\n`size_limit_exceeded` with `field` set to the path at fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## Delete an agent group

> 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.

```json
{"openapi":"3.2.0","info":{"title":"On-premise agent groups","version":"1.0.0"},"tags":[{"name":"On-premise agent groups","description":"An on-premise agent group is an ordered set of agents that can each reach\nthe same systems. A connection binds either `_agentId` (one agent) or\n`_agentGroupId` (a group) — never both.\n\nWhen a connection is bound to a group, the platform resolves a healthy\nmember on every dispatch. Per the eligibility rule the platform\nimplements, a member stops receiving new work when it goes offline, when\nits heartbeat goes stale, or when its local worker reports unhealthy, and\nthe connection stays online while any member can still serve (source-only:\nread from the platform's dispatch code; not yet observed on an entitled\naccount).\n\nAgents themselves are unaware of grouping — a group is N ordinary agents,\neach with its own tunnel. Use the On-premise Agents API to install,\nconfigure, and monitor the members.\n\n## Ordering\n\n`members` order is failover priority. `members[0]` is preferred and is\nused whenever it is eligible. Reordering takes effect on the next\ndispatch and does not interrupt work in flight (source-only, as above).\n\n## Health\n\nHealth is not embedded in these responses. Read `offline` and\n`lastHeartbeatAt` from `GET /v1/agents` for each `members[]._agentId` to\ncompose a live view of the group.\n\n## On-premise agent group schema\n\n{% openapi-schemas spec=\"agentgroup\" schemas=\"AgentGroup\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/agentgroups/{_id}":{"delete":{"summary":"Delete an agent group","operationId":"deleteAgentGroup","tags":["On-premise agent groups"],"description":"Deletes an on-premise agent group. Soft-deleted and retained in the\nrecycle bin for 30 days. Member agents are not deleted or uninstalled —\nonly the grouping is removed.\n\nThe service refuses the delete with 409 `agent_group_in_use` while any\nconnection is still bound to this group (source-only: no group could be\ncreated on the probe account to bind one). Re-point those connections to\na single `_agentId`, or to another group, first, and check\n`GET /v1/agentgroups/{_id}/dependencies` before deleting.","parameters":[{"name":"_id","in":"path","required":true,"description":"Agent group resource ID.","schema":{"type":"string","format":"objectId"}}],"responses":{"204":{"description":"Agent group deleted."},"400":{"description":"`_id` is not a valid ObjectId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"},"404":{"description":"No active agent group has this id. An unknown id answers with the\nrecycle-bin message (live-verified); a group already in the recycle bin\nanswers the same way (source-only).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"The agent group is still bound to at least one connection (source-only:\nread from the service's delete guard, not yet confirmed on an entitled\naccount).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## List dependencies of an agent group

> 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).

```json
{"openapi":"3.2.0","info":{"title":"On-premise agent groups","version":"1.0.0"},"tags":[{"name":"On-premise agent groups","description":"An on-premise agent group is an ordered set of agents that can each reach\nthe same systems. A connection binds either `_agentId` (one agent) or\n`_agentGroupId` (a group) — never both.\n\nWhen a connection is bound to a group, the platform resolves a healthy\nmember on every dispatch. Per the eligibility rule the platform\nimplements, a member stops receiving new work when it goes offline, when\nits heartbeat goes stale, or when its local worker reports unhealthy, and\nthe connection stays online while any member can still serve (source-only:\nread from the platform's dispatch code; not yet observed on an entitled\naccount).\n\nAgents themselves are unaware of grouping — a group is N ordinary agents,\neach with its own tunnel. Use the On-premise Agents API to install,\nconfigure, and monitor the members.\n\n## Ordering\n\n`members` order is failover priority. `members[0]` is preferred and is\nused whenever it is eligible. Reordering takes effect on the next\ndispatch and does not interrupt work in flight (source-only, as above).\n\n## Health\n\nHealth is not embedded in these responses. Read `offline` and\n`lastHeartbeatAt` from `GET /v1/agents` for each `members[]._agentId` to\ncompose a live view of the group.\n\n## On-premise agent group schema\n\n{% openapi-schemas spec=\"agentgroup\" schemas=\"AgentGroup\" grouped=\"true\" %}"}],"servers":[{"url":"https://api.integrator.io","description":"Production (US / default region)"},{"url":"https://api.eu.integrator.io","description":"Production (EU region)"},{"url":"https://api.au.integrator.io","description":"Production (AU region)"},{"url":"https://api.ca.integrator.io","description":"Production (CA region)"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"DependencyResponse":{"type":"object","description":"Map of dependent-resource types to arrays of dependency entries.\nKeys are plural resource type strings (e.g. `flows`, `imports`,\n`connections`). An empty object `{}` means no dependents.\n","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/DependencyEntry"}}},"DependencyEntry":{"type":"object","description":"A single resource that depends on the queried resource.","properties":{"id":{"type":"string","description":"Unique identifier of the dependent resource."},"name":{"type":"string","description":"Display name of the dependent resource."},"type":{"type":"string","description":"Sub-type of the dependent resource when its collection distinguishes one, such as\n`stream` for a listener export. Only present for resource types that carry a `type`."},"paths":{"type":"array","description":"Dot-notation paths within the dependent resource that reference\nthe target resource. `[*]` denotes array elements.","items":{"type":"string"}},"accessLevel":{"type":"string","description":"The caller's access level on the dependent resource."},"dependencyIds":{"type":"object","description":"Map of resource types to arrays of IDs that this dependent\nresource references on the target. Keys are singular or plural\nresource type strings; values are arrays of ID strings.","additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["id","name","paths","accessLevel","dependencyIds"]},"Error":{"type":"object","description":"Standard error response envelope returned by integrator.io APIs.","properties":{"errors":{"type":"array","description":"List of errors that occurred while processing the request.","items":{"type":"object","properties":{"code":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Machine-readable error code. Usually a string like\n`invalid_ref`, `missing_required_field`, or `unauthorized`;\nmay be an **integer** when the error mirrors an upstream HTTP\nstatus (e.g. `500`) — most commonly returned by connection-ping\nand adaptor-proxy responses."},"message":{"type":"string","description":"Human-readable description of the error."},"field":{"type":"string","description":"Optional pointer to the document field that caused the error.\nUsed by structural validation errors (`missing_required_field`,\n`invalid_ref`) to indicate which field is at fault\n(e.g. `_id`, `type`, `http.baseURI`)."},"source":{"type":"string","description":"Optional origin layer for the error — e.g. `application` when\nthe error came from the remote system the adaptor called,\n`connector` when the adaptor itself rejected the request."}},"required":["message"]}}},"required":["errors"]}},"responses":{"401-unauthorized":{"description":"Unauthorized, in one of two shapes.\n\nNo valid bearer token: the auth middleware answers before the endpoint\nhandler runs, with a bare `{message: string}` body — no `code`, no\n`errors` array — so key off the HTTP status and `message`.\n\nAn API token with a custom scope calling an operation its scope does not\ngrant: the token authenticated, and the body is the standard\n`{errors: [...]}` envelope with code `access_restricted`. Observed on\n`GET /v1/connections` and `GET /v1/exports/{_id}`: a full-access API token\npassed both, a personal access token `GET /v1/exports/{_id}`.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"The auth middleware's bare body for a missing or invalid token.","properties":{"message":{"type":"string","description":"Human-readable description of the auth failure. Known values:\n- `\"Unauthorized\"` — no `Authorization` header on the request.\n- `\"Bearer Authentication Failed\"` — header present but token\n  is invalid, revoked, or expired."}},"required":["message"]},{"$ref":"#/components/schemas/Error"}]}}}}}},"paths":{"/v1/agentgroups/{_id}/dependencies":{"get":{"operationId":"listAgentGroupDependencies","tags":["On-premise agent groups"],"summary":"List dependencies of an agent group","description":"Returns resources that depend on this on-premise agent group. Keys are\nresource types (`connections`); values are arrays of dependency entries.\n\nCheck dependencies before deleting — the service refuses DELETE with 409\n`agent_group_in_use` while any connection is still bound (source-only until\nan entitled account confirms it). Returns `{}` for both zero-dependency and\nnonexistent IDs (live-verified for a nonexistent id).","parameters":[{"name":"_id","in":"path","required":true,"description":"Agent group resource ID.","schema":{"type":"string","format":"objectId"}}],"responses":{"200":{"description":"Dependency map. Keys are resource-type strings; values are arrays\nof dependency entries. Returns `{}` when no dependents exist.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DependencyResponse"}}}},"400":{"description":"`_id` is not a valid ObjectId.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/401-unauthorized"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.celigo.com/api/api-reference/connections-and-http-connectors/on-premise-agent-groups.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
