Mandate routes: authorize, pause, resume
The Mandate Verbs authorize, pause, resume as api.sb routes, with inputs, result, refusals and an example.
Reference for Mandate, one group of Mandate routes.
Mandate.authorize
Authorize grants an Agent a standing Mandate to perform a Verb within a Limit, without asking each time. Verb page.
POST /{namespace}/ mandates/ authorizeBody, as JSON: the inputs. Emits Mandate.authorized.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
agent | Agent | required | The agent that receives the Mandate. |
verb | string | required | The Verb it covers, as Noun.verb. |
limit | Limit | required | The bound the Mandate holds to. |
for | Party | The person the agent acts for, under delegation: the principal and author of record. | |
channels | list of Channel | The Channels it may send through. | |
topics | string[] | What it may send about; a send outside them becomes an Approval. | |
approve | json | The approval rule for one-way sends, such as the first 20 waiting for an Approval. | |
window | string | The delay window each one-way send waits, as a duration. | |
expiresAt | datetime | When the Mandate lapses. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
mandate | Mandate | required | The active Mandate. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The input does not match the schema of the operation. | invalid-input | Read the schema of the operation, then send every required field with the right type. | None. |
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X POST https: //api.sb/ leaseline.app/ mandates/ authorize \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
-H "Content-Type: application/ json" \
-d '{"agent": "agent_tCzKDMorKn", "verb": "Example verb", "limit": "limit_UWHXYVKsJB"}'{
"api": "https: //api.sb/ leaseline.app",
"mandate": {
"$id": "https: //api.sb/ leaseline.app/ mandates/ mandate_mKKPrmFQYD",
"$type": "Mandate",
"expiresAt": "2026-10-22T12: 00: 00Z",
"status": "active"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "Mandate.authorize",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}Mandate.pause
Pause stops every new Action under a Mandate at once and keeps its scope, so it can resume unchanged. Verb page.
POST /{namespace}/ mandates/ {mandate}/ pausePath: mandate. Body, as JSON: the other inputs. Emits Mandate.paused.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
mandate | Mandate | required | The Mandate to hold. |
reason | text | Why the Mandate stops. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
mandate | Mandate | required | The paused Mandate. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X POST https: //api.sb/ leaseline.app/ mandates/ mandate_mKKPrmFQYD/ pause \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"{
"api": "https: //api.sb/ leaseline.app",
"mandate": {
"$id": "https: //api.sb/ leaseline.app/ mandates/ mandate_mKKPrmFQYD",
"$type": "Mandate",
"expiresAt": "2026-10-22T12: 00: 00Z",
"status": "paused"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "Mandate.pause",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}Mandate.resume
Resume restarts a paused Mandate with its scope, Limits and approval rule unchanged. Verb page.
POST /{namespace}/ mandates/ {mandate}/ resumePath: mandate. Emits Mandate.resumed.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
mandate | Mandate | required | The paused Mandate. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
mandate | Mandate | required | The active Mandate. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X POST https: //api.sb/ leaseline.app/ mandates/ mandate_mKKPrmFQYD/ resume \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"{
"api": "https: //api.sb/ leaseline.app",
"mandate": {
"$id": "https: //api.sb/ leaseline.app/ mandates/ mandate_mKKPrmFQYD",
"$type": "Mandate",
"expiresAt": "2026-10-22T12: 00: 00Z",
"status": "active"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "Mandate.resume",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}