Exchange a Locus OAuth token for a scoped CLI credential
Exchanges a Locus MCP OAuth access token (mcp:read and mcp:execute) for one lcac_ execution credential bound to that OAuth connection. Refreshing the OAuth token keeps the same binding. The credential expires 7 days after its last use and never later than 30 days after issue. It stops working when the signed-in account loses execute access to the workspace. Generate registrationToken locally from exactly 24 random bytes encoded as unpadded base64url. Replaying the token renews the credential unchanged; a new token rotates it in place. A revoked credential is never renewed or rotated. tools behaves as on the Okibi route. hostname is optional and names the credential "Locus CLI (<hostname>)" in the dashboard.
Request
- Base URLhttps://api.paywithlocus.com/api
- URLhttps://api.paywithlocus.com/api/credits/cli/credential
- AuthOAuth 2Authorization code: https://api.paywithlocus.com/api/credits/mcp/oauth/authorizeToken URL: https://api.paywithlocus.com/api/credits/mcp/oauth/token scopes: mcp:read, mcp:execute
Request body
Response
Existing credential renewed (same token) or rotated in place (new token); rotated tells which
Changes
No recorded changes to this operation across all 1 revision of this API.