Skip to main content
POST

Authorizations

Authorization
string
header
required

Not needed from the same machine. From another host: a dispatch JWT CliqHub signed for this daemon, or a cliq_tok_… personal token whose user is in the daemon's realm.

Body

application/json
credentials
object

Provider credentials (username+password, or a user PAT as token); omit to reuse the stored session

realm
string

Realm to enroll in / switch to (org.slug); omit to keep the current one or get the list to choose from

Minimum string length: 1
confirm_switch
boolean

Confirm the realm change: moving an enrolled daemon (needs --allow-realm-override) after seeing teams_to_remove, or enrolling with local teams/runs after seeing enroll_requires_confirm

Response

Success.

ok
boolean
required
data
object
required

What happened. Three replies ask you to call again: needs_realm_choice (pick a realm), switch_requires_confirm and enroll_requires_confirm (send the same realm with confirm_switch: true).