RedeemAiTicket
Redeems a one-time AI credential ticket and persists the Anthropic subscription tokens on the AI Adapter. Runs anonymously — the ticket code authenticates the call, no OctoMesh login required. Token-related args (-at -rt -aex -rex) are optional for developer smoke tests; missing values default to a fake pair with a far-future expiry.
Examples
octo-cli -c RedeemAiTicket -tid <tenantId> -tc <ticketCode>
Options
| Short | Long | Required | Description |
|---|---|---|---|
-tid | --tenantId | yes | Tenant the ticket was issued for |
-tc | --ticketCode | yes | One-time code from the admin's Refinery Studio modal |
-at | --accessToken | no | Plaintext Anthropic access token. Optional — defaults to a fake for dev. |
-rt | --refreshToken | no | Plaintext Anthropic refresh token. Optional — defaults to a fake for dev. |
-aex | --accessExpiresAt | no | UTC expiry of the access token (ISO-8601). Optional — defaults to 2099 for dev. |
-rex | --refreshExpiresAt | no | UTC expiry of the refresh token (ISO-8601). Optional — defaults to 2099 for dev. |