- For one Agent, open that Agent and go to Settings → Developer → API Keys.
- For a reseller and its authorized downstream customers, go to For Developers → API Keys in the reseller workspace.
- For an eligible partner and its resellers, go to Settings → Advanced → API Keys in the partner workspace.
token query parameter:
Identify the key’s account scope
Before selecting another account, callGET /api/v2/account without targetAccountId:
accountTypeispartner, ororganizationIdmatchespartnerId: the key has Partner Admin scope.accountTypeisreseller, ororganizationIdmatchesresellerId: the key has Reseller Admin scope.accountTypeisaccount: the key is scoped to that Agent account.accountTypeisorganization, or it is a remaininguseraccount with anorganizationId: the key has Organization Admin scope.
accountType is user. If the
response includes a nonempty permittedAccountIds list, that member is restricted to those child
accounts. Do not infer broader access from the member’s email address, username, or employer.
Account scope identifies where the key may act; it does not guarantee every operation is available.
Account status, plan, enabled features, selected target, and endpoint-specific requirements still
apply. Verify only the read operation needed for the work instead of probing unrelated endpoints to
infer privileges.
All API endpoints accept an optional targetAccountId query parameter for delegated scope. When provided by a higher-level account token, the request executes in the context of an authorized child account in that caller’s hierarchy.
For example, a Reseller token can use targetAccountId=<organizationId-or-agentId> to act on that Organization or Agent when it belongs to the Reseller. Requests for an unrelated account are rejected.
Some routes include the selected account directly in the path, such as /api/v2/computer/accounts/{targetAccountId}. Do not also send a different targetAccountId in the query or request body.
Keep the original untargeted account response separate from later targeted reads. A request with
targetAccountId describes the selected account; it does not redefine the key owner’s scope.
targetOrganizationId, targetResellerId, and targetPartnerId are used by endpoints whose resource is explicitly scoped at those levels. Follow the endpoint schema rather than substituting a different identifier.
For additional help, email help@vida.inc.