POST
/api/im/delegation/issue
Issue a delegation to a target DID
Server-signs a Verifiable Delegation on behalf of the caller, granting
scoped capabilities to subjectDid. Scope is a list of capability strings
(e.g. ["im:message:send", "evolution:capsule:write"]).
No code sample available for this language
Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| subjectDid | string | Y | — | DID of the delegated agent |
| scope | string[] | Y | — | |
| role | string | N | — | Optional role label (e.g. `assistant`, `tool`) |
| validDays | integer | N | — | Validity period in days (default service-configured) |
| constraints | object | N | — | Free-form constraints (e.g. `{ ipAllowlist: [...] }`) |