Create agent API connection
Agent connections cannot attach devices. Access read/act is a ceiling; action calls also require a live per-device function grant. New connections are admitted with an all-devices operator access policy (opt-out exclusions can be set afterwards via /v1/access-policies); an explicit access read is preserved as the ceiling. Requesting role administrator requires an owner session. The token is returned once; if the access policy cannot be applied, the token is not issued and the pending connection is reconciled by the owner console.
/v1/agent-connectionsAuthorizationBearer token (Clerk owner session) · headerrequiredOwner identity required.
application/jsonnamestringrequiredttlSecondsinteger | nullShow propertiesHide properties
integernullaccessstringreadactrolestringoperatoradministratorCreated; bearer token is returned once
dataNewConnectionrequiredShow propertiesHide properties
idstring<uuid>requiredprincipalstringrequirednamestringrequiredexpiresAtinteger | nullrequiredrevokedbooleanrequiredaccessstringrequiredreadactoauthobjectShow propertiesHide properties
applicationIdstringrequiredclientIdstringrequiredredirectUrisstring<uri>[]requiredpublicbooleanrequiredpurposestringrequiredagentdevice-setupcanAttachbooleanrequireddeviceLimitintegerrequiredgatewayDeviceLimitintegerattachedDeviceCountintegertokenstringrequiredReturned once. Store securely; never log or commit.
Invalid request or validation failure
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
objectpathstringmessagestringMissing or invalid credential
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
objectpathstringmessagestringInsufficient access or grant
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
objectpathstringmessagestringResource not found
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
objectpathstringmessagestringRequest body exceeds the 16 KiB limit
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
objectpathstringmessagestringRate limit or workspace capacity limit
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
objectpathstringmessagestringInternal error
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
objectpathstringmessagestringService or required integration is not configured
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringissuesobject[]Show propertiesHide properties
objectpathstringmessagestring