onboarding

Complete a repository-adoption session by binding the canonical intent that the CLI pushed.

Authentication is intentionally stricter than a normal workspace write: the API-key row id must exactly match the credential bound during exchange. Cookie sessions are rejected. Repeating completion for an already-adopted session is idempotent. On success the server emits onboarding_repo_spec_landed and the waiting browser observes the authoritative session row.

post/api/v1/onboarding/repo/complete

Request body

sessionIdstring required

The session returned by the code exchange.

intentIdstring required

The canonical intent id returned after the existing intent.md was created or updated. It must belong to the session's selected Product.

Response

Session marked adopted; returns the canonical intent and in-app URL.

object required

Changes

Changed in 1 of the 14 revisions of this API.1