Personal Agent API
These Anydayway tRPC procedures manage Agents owned directly by the signed-in User. Use the app’s authenticated tRPC client with your normal signed-in browser session. An OAuth or Organization Agent connection cannot call them as the owner. Organization administrators have no access to another User's Personal Agents.
List and register
personalAgents.list takes no input and returns an array containing id, name, type, webhookUrl, enabled, personalConsentAt, personalScopes, updatedAt and nullable authorizationEpoch. It never returns a signing secret. Listing remains available to the owner after sponsorship expires so they can revoke earlier consent.
personalAgents.create accepts the same editable settings as Organization Agent registration:
{"name":"My worker","type":"claude","webhookUrl":"https://agent.example.com/hooks"}
The webhook must use HTTPS and resolve to public addresses. The returned Agent starts disabled with no permissions. Ownership, enabled state and secrets cannot be supplied by the caller. Registration requires current eligible Anydayway sponsorship.
Edit and grant consent
personalAgents.update accepts id, expectedUpdatedAt from the last read, and optional name, type and webhookUrl. A stale timestamp returns CONFLICT; read the current settings and review them again. Changing the provider type or webhook address disables the Agent, clears its consent and replaces its credential. A rename preserves consent. Editing requires current sponsorship.
personalAgents.setConsent accepts:
{"agentId":"AGENT_ID","expectedConsentAt":null,"expectedUpdatedAt":"2026-11-22T10:00:00.000Z","scopes":["tasks.write"]}
Use personalConsentAt from the last read as expectedConsentAt, including null when there is no consent. Also send that read’s updatedAt as expectedUpdatedAt so the grant applies to the exact settings you reviewed. tasks.write permits selection as a Personal task assignee only. knowledge.read permits bounded Personal Source and Journal reads after a separate native MCP approval selects this Agent. tasks.execute permits reading and acting on Tasks currently assigned to this Agent through MCP. Send only the permissions you want; duplicate scopes are rejected. Assignment never enables execution automatically. tasks.deliver independently permits signed webhook handoffs for assigned Tasks. It does not grant an MCP identity, knowledge access or Task actions. tasks.manage separately permits listing, creating, editing and assigning all of the owner’s Personal Tasks. With independent knowledge consent it also permits creating a Task and Brief from a prompt. It does not grant Goals, owner settings, knowledge edits or Organization contribution. Older consent does not become runtime authority automatically.
The result contains agentId, enabled, scopes, consentAt and a new one-time signingSecret. Ordinary reads never return that secret. Renewal replaces the entire grant and credential. A concurrent consent change returns CONFLICT.
Send an empty scopes array to revoke. Revocation clears consent, disables the Agent and returns signingSecret: null. It remains available after sponsorship expires. Existing task assignments are retained, but the disabled Agent cannot be chosen for new assignments.
Approve a Personal MCP identity
personalAgents.connectMcp is an owner-session mutation used during the native OAuth consent flow. Send oauthClientId, agentId, authorizationEpoch, expectedUpdatedAt and expectedConsentAt from the exact Agent settings and grant you reviewed. The Agent needs fresh knowledge.read, tasks.execute or tasks.manage consent and current eligible sponsorship. Each action checks its own permission; task-only consent does not expose original knowledge or Brief prose. It returns credentialEpoch; complete the native OAuth consent with the existing x-typeorb-mcp-principal-epoch header set to that returned value. The Anydayway consent screen performs these steps for you.
The selection has no Organization allowlist. Replacing it creates a new credential family. A stale Agent grant, destination/settings timestamp or owner Session refuses selection. Old access tokens, codes and refresh families never adopt the new selection. Signing secrets and these revision identifiers are not MCP bearer tokens. See Personal Agent MCP for supported tools.
Errors and recovery
UNAUTHORIZEDorFORBIDDEN: sign in as the owner with a current session. Registration, edits and grants also require eligible Anydayway sponsorship. A changed session, User role or content lifecycle during the request can refuse the final write.NOT_FOUND: no Agent with that ID belongs to the signed-in User.BAD_REQUEST: correct invalid input or a webhook that is not publicly reachable through HTTPS.CONFLICT: reload current settings or consent and review before retrying.
See Personal Agent settings for the screen journey.
Personal handoff API and webhook
These owner-session procedures require current eligible Anydayway sponsorship. They accept no Organization, Agent identity, grant revision or private delivery admission from the caller.
personalDeliveries.listForTask({taskId})returns{deliveries, notice:null}. Rows include the directownerUserId,organizationId:null, status, run, attempt count, last error, timestamps, Agent name andrequiresApproval. Private native admission and signing secrets are omitted.briefVersionandbriefVersionIdare null for a task-only handoff. Unsent transferred history hasrequiresApproval:trueand is never executed or retried as native work. Completed historical deliveries keep their Delivered status and time.personalDeliveries.request({taskId})deliberately admits the current assigned Task using freshtasks.deliverconsent. Repeating unchanged input recovers the same Delivery ID. A deliberately changed request or Brief gets a separate ID. Queue interruptions leave the durable pending handoff for recovery.personalDeliveries.retry({id})explicitly retries a failed native handoff with the same receiver idempotency key and a new run. The original consent, assignment, request, current Brief and generation must still match. New consent cannot adopt old work. An unsent admission expires after 24 hours; retry can renew its deadline while those facts remain current.
New assignments after the delivery grant are also discovered automatically. Existing assignments require the deliberate request above. An owner assignment, or a separately approved planner Agent assignment with knowledge consent, with both recipient delivery and knowledge consent also admits the first missing Brief using that owner’s current access and the cumulative Task allowance. Access changes or erase/restore stop older work. Existing Brief history and create-from-idea work are retained. A canceled allowance is never reset; preparation failure remains visible for explicit recovery. tasks.write is still needed to choose the Agent as a new assignee. Knowledge and execution are independent permissions; delivery alone requires neither OAuth nor a browser Session at send time.
Personal receivers get JSON payload version 3. Organization receivers retain version 2. Version 3 has deliveryId, sentAt, ownership:{kind:"personal",ownerUserId}, Agent identity, Task fields and a Personal appUrl, nullable brief, and knowledge:{consented,verificationRequired:true,guidance}. There is no Organization identity. Without knowledge consent, brief is null. With it, the Brief contains its exact ID/version/request/Context/Boundaries/citations after current evidence projection. Private work admissions, secrets and readiness proofs are never included.
Verify X-AnyDayWay-Signature as HMAC-SHA256 with the current one-time signing secret over the raw <X-AnyDayWay-Timestamp>.<body> bytes. Its value is sha256=<hex>. Reject stale timestamps. X-AnyDayWay-Delivery-Id is the stable receiver idempotency key; deduplicate it before acting, including explicit retries with a new timestamp. Respond with 2xx only after recording the handoff durably. Redirects are not followed, DNS must resolve only public addresses, and HTTPS verifies the destination host.
Every run claims its attempt before network access. A lost response or interrupted claimed attempt has an uncertain outcome and is not automatically resent; a claimed orphan is marked failed after five minutes. Ask the owner to check the receiver and explicitly retry. A delivery or received Brief does not prove current readiness: use the Agent’s independently approved MCP identity and live Task Required context.
Background delivery changes notify the Personal owner only. The delivery panel and Task activity refresh on those events and reconnect; polling is only a fallback while native work is pending.