Share an agent with a principal (create binding)
Create a binding granting a user, group, or org access to this
agent. User and group principals are validated against the
agent’s organization via ai-governance-v2. Default role is
admin if role_slug is omitted.
Authorizations
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Path Parameters
64Body
user, group, org 32User id (or email for user type, resolved server-side), group id, or org slug.
128Role to grant. Defaults to admin.
64