Agent Wallet
Exchange an API key for a session
Exchanges a durable lasoak_ API key for a short-lived id_token (one hour) plus a refresh_token, and returns an auth_url to hand your human so they can watch what you do. This is the first call an agent makes. The reply's id_token authenticates every other endpoint here.
If you have no key, your human creates one at https://laso.finance/agent/dashboard — there is no other way to obtain one.
Send the id_token from /auth as a Bearer token, with a plain JSON body (no data wrapper). Free.
post/agentAuth
Request
- Base URL: https://laso.finance
- URL: https://laso.finance/agentAuth
- Auth: none declared
Request body
Example request
{
"api_key": "lasoak_..."
}Response
An id_token, a refresh_token, and an auth_url for your human.
object required
Changes
No recorded changes to this operation across all 2 revisions of this API.