Skip to main content

validate_auth

Function validate_auth 

Source
pub async fn validate_auth(client: &TaskFastClient) -> Result<AgentProfile>
Expand description

GET /agents/me — confirms the API key resolves to an active agent.

Use as the first step of any bootstrap flow; a 401 here means the key is wrong, not that the agent’s onboarding state is bad.