User API
Delegations
Principal delegations: create, confirm, revoke, re-verify
/delegationsList delegations for the current user
Query parameters
Responses
truependingactiverevokedcoordinatorprincipaladminsystemcalendar_providerplatformmicrosoftgooglenullautomanualrequire_approvalnullsupervisedsemi-supervisedunsupervisednullccbccnullokcalendar_degradedcalendar_lostautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullRequest
curl 'https://app.openassistant.us/api/delegations' \
-H "Authorization: Bearer ak_live_..."Response
{
"ok": true,
"delegations": [
{
"id": "string",
"coordinator": {
"id": null,
"type": null
},
"principal": {
"id": null,
"type": null
},
"account": "string",
"assistant": {
"id": null
},
"status": "pending"
}
]
}/delegationsCreate a delegation (coordinator initiates)
Request body
calendar_providerplatformmicrosoftgoogleautomanualrequire_approvalnullsupervisedsemi-supervisedunsupervisednullccbccnullResponses
truependingactiverevokedcoordinatorprincipaladminsystemcalendar_providerplatformmicrosoftgooglenullautomanualrequire_approvalnullsupervisedsemi-supervisedunsupervisednullccbccnullokcalendar_degradedcalendar_lostautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualdeniedexecutecancelnullRequest
curl 'https://app.openassistant.us/api/delegations' \
-X POST \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"principalId": "507f1f77bcf86cd799439011",
"delegationSource": "calendar_provider"
}'Response
{
"ok": true,
"delegation": {
"id": "string",
"coordinator": {
"id": "string",
"type": "user"
},
"principal": {
"id": "string",
"type": "user"
},
"account": "string",
"assistant": {
"id": "string"
},
"status": "pending"
}
}/delegations/{id}Get a delegation
Path parameters
Responses
truependingactiverevokedcoordinatorprincipaladminsystemcalendar_providerplatformmicrosoftgooglenullautomanualrequire_approvalnullsupervisedsemi-supervisedunsupervisednullccbccnullokcalendar_degradedcalendar_lostautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualdeniedexecutecancelnullRequest
curl 'https://app.openassistant.us/api/delegations/<id>' \
-H "Authorization: Bearer ak_live_..."Response
{
"ok": true,
"delegation": {
"id": "string",
"coordinator": {
"id": "string",
"type": "user"
},
"principal": {
"id": "string",
"type": "user"
},
"account": "string",
"assistant": {
"id": "string"
},
"status": "pending"
}
}/delegations/{id}Update delegation settings
Path parameters
Request body
automanualrequire_approvalnullsupervisedsemi-supervisedunsupervisednullccbccnullResponses
truependingactiverevokedcoordinatorprincipaladminsystemcalendar_providerplatformmicrosoftgooglenullautomanualrequire_approvalnullsupervisedsemi-supervisedunsupervisednullccbccnullokcalendar_degradedcalendar_lostautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualdeniedexecutecancelnullRequest
curl 'https://app.openassistant.us/api/delegations/<id>' \
-X PATCH \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"approvalMode": "auto",
"threadInclusion": "supervised",
"visibility": "cc",
"isDefault": true
}'Response
{
"ok": true,
"delegation": {
"id": "string",
"coordinator": {
"id": "string",
"type": "user"
},
"principal": {
"id": "string",
"type": "user"
},
"account": "string",
"assistant": {
"id": "string"
},
"status": "pending"
}
}/delegations/{id}/confirmConfirm a pending delegation (principal)
Path parameters
Responses
truependingactiverevokedcoordinatorprincipaladminsystemcalendar_providerplatformmicrosoftgooglenullautomanualrequire_approvalnullsupervisedsemi-supervisedunsupervisednullccbccnullokcalendar_degradedcalendar_lostautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualdeniedexecutecancelnullRequest
curl 'https://app.openassistant.us/api/delegations/<id>/confirm' \
-X POST \
-H "Authorization: Bearer ak_live_..."Response
{
"ok": true,
"delegation": {
"id": "string",
"coordinator": {
"id": "string",
"type": "user"
},
"principal": {
"id": "string",
"type": "user"
},
"account": "string",
"assistant": {
"id": "string"
},
"status": "pending"
}
}/delegations/{id}/revokeRevoke a delegation
Path parameters
Responses
truependingactiverevokedcoordinatorprincipaladminsystemcalendar_providerplatformmicrosoftgooglenullautomanualrequire_approvalnullsupervisedsemi-supervisedunsupervisednullccbccnullokcalendar_degradedcalendar_lostautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualdeniedexecutecancelnullRequest
curl 'https://app.openassistant.us/api/delegations/<id>/revoke' \
-X POST \
-H "Authorization: Bearer ak_live_..."Response
{
"ok": true,
"delegation": {
"id": "string",
"coordinator": {
"id": "string",
"type": "user"
},
"principal": {
"id": "string",
"type": "user"
},
"account": "string",
"assistant": {
"id": "string"
},
"status": "pending"
}
}/delegations/{id}/principal-preferencesGet the effective scheduling preferences for a delegation's principal
Flat view of the scheduling settings the coordinator manages for this principal. `calendars`, `videoConferencing` and `eventTitles` are coordinator-isolated (stored on the delegation, so two coordinators sharing one principal never stomp on each other); the rest reflects the principal's own Preference. Each `eventTitles` branch carries a `source` saying where the effective template came from: this delegation, the coordinator's own global template, the principal's own, or the platform default. Auth: the coordinator on an ACTIVE delegation.
Path parameters
Responses
truedelegationinheritednulldelegationcoordinatorprincipalplatformnulldelegationcoordinatorprincipalplatformnulltrueRequest
curl 'https://app.openassistant.us/api/delegations/<id>/principal-preferences' \
-H "Authorization: Bearer ak_live_..."Response
{
"ok": true,
"preferences": {
"timezone": "string",
"workingHours": {
"MO": [
{
"start": null,
"end": null
}
],
"TU": [
{
"start": null,
"end": null
}
],
"WE": [
{
"start": null,
"end": null
}
],
"TH": [
{
"start": null,
"end": null
}
]
},
"bufferType": "string",
"bufferLength": 0,
"dailyMeetingLimit": 0,
"virtualDuration": 0
}
}/delegations/{id}/principal-preferencesUpdate the scheduling preferences the coordinator manages for a principal
Partial update — only the keys present are touched. `calendars`, `videoConferencing` and `eventTitles` are written to the delegation (never the principal's own Preference); the remaining keys land on the principal's Preference, and `timezone` also on their User record. For `eventTitles`, omitting a branch leaves that branch unchanged and omitting a template inside a branch leaves that template unchanged; `useCustomTitles: null` is the "inherit my own default" state. On a still-PENDING delegation the settings are staged on the delegation and applied when the principal confirms (the response then carries `pendingConfirmation: true` and any `skipped` keys). Auth: the coordinator on the delegation.
Path parameters
Request body
nonemeetingtimeBlockResponses
truedelegationinheritednulldelegationcoordinatorprincipalplatformnulldelegationcoordinatorprincipalplatformnulltrueRequest
curl 'https://app.openassistant.us/api/delegations/<id>/principal-preferences' \
-X PATCH \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"timezone": "string",
"workingHours": {
"MO": [
{
"start": "string",
"end": "string"
}
],
"TU": [
{
"start": "string",
"end": "string"
}
],
"WE": [
{
"start": "string",
"end": "string"
}
],
"TH": [
{
"start": "string",
"end": "string"
}
]
},
"bufferType": "none",
"bufferLength": 0
}'Response
{
"ok": true,
"preferences": {
"timezone": "string",
"workingHours": {
"MO": [
{
"start": null,
"end": null
}
],
"TU": [
{
"start": null,
"end": null
}
],
"WE": [
{
"start": null,
"end": null
}
],
"TH": [
{
"start": null,
"end": null
}
]
},
"bufferType": "string",
"bufferLength": 0,
"dailyMeetingLimit": 0,
"virtualDuration": 0
}
}/delegations/{id}/reverifyForce a fresh calendar verification and return updated access health (§2.6.1, §2.6.5)
Runs a provider round-trip against the coordinator's token for this delegation, then updates `accessHealth` (ok | calendar_degraded | calendar_lost) and `lastAccessCheckAt`. Never changes `status` — the watchdog and this endpoint only flag, never demote. Auth: the coordinator on the delegation.
Path parameters
Responses
truependingactiverevokedcoordinatorprincipaladminsystemcalendar_providerplatformmicrosoftgooglenullautomanualrequire_approvalnullsupervisedsemi-supervisedunsupervisednullccbccnullokcalendar_degradedcalendar_lostautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualnullexecutecancelnullautotime-boxedmanualdeniedexecutecancelnullRequest
curl 'https://app.openassistant.us/api/delegations/<id>/reverify' \
-X POST \
-H "Authorization: Bearer ak_live_..."Response
{
"ok": true,
"delegation": {
"id": "string",
"coordinator": {
"id": "string",
"type": "user"
},
"principal": {
"id": "string",
"type": "user"
},
"account": "string",
"assistant": {
"id": "string"
},
"status": "pending"
}
}