Account
Finish signing in
/v1/me/syncCopies the signed-in person's WorkOS profile to their account and their workspace memberships from WorkOS (an accepted invite shows up here), and makes a first workspace for someone new. The app calls it once per session. It fails with 403 email_not_verified until WorkOS has verified the person's email. Only works from the app, not with an API key. See Owner-only and app-only.
Response
userIdstringrequiredemailstringrequiredisNewAccountbooleanrequiredworkspacesarray of objectrequiredEvery workspace they're in, with their role.
Show 3 fieldsHide 3 fields
idstringrequirednamestringrequiredroleenumrequiredOne of
"owner","member"
gateenum or nullrequiredinvite_onlyfor someone who is in no workspace and may not create one. Null otherwise.joinedWorkspaceIdstring or nullrequiredA workspace this sync added them to through an accepted invite, or null.
Errors answer with a status and the error shape.