Skip to main content

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

ShortLongRequiredDescription
-tid--tenantIdyesTenant the ticket was issued for
-tc--ticketCodeyesOne-time code from the admin's Refinery Studio modal
-at--accessTokennoPlaintext Anthropic access token. Optional — defaults to a fake for dev.
-rt--refreshTokennoPlaintext Anthropic refresh token. Optional — defaults to a fake for dev.
-aex--accessExpiresAtnoUTC expiry of the access token (ISO-8601). Optional — defaults to 2099 for dev.
-rex--refreshExpiresAtnoUTC expiry of the refresh token (ISO-8601). Optional — defaults to 2099 for dev.