AgentPushKit.Api.AgentTokens (agent_push_kit v0.1.0)
API calls for all endpoints tagged AgentTokens.
Summary
Functions
Connect through stateless MCP Streamable HTTP
This endpoint accepts only an apt_ agent access token.
Create a named non-expiring agent token
The raw apt_ token is shown once. Store it before dismissing the response.
List agent access tokens without their secrets
Revoke one of the current user's agent tokens
Functions
@spec call_mcp(Tesla.Env.client(), %{optional(String.t()) => any()}, keyword()) :: {:ok, nil} | {:ok, AgentPushKit.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Connect through stateless MCP Streamable HTTP
This endpoint accepts only an apt_ agent access token.
Parameters
connection(AgentPushKit.Connection): Connection to serverrequest_body(%{optional(String.t) => any()}):opts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec create_agent_token( Tesla.Env.client(), AgentPushKit.Model.CreateAgentTokenInput.t(), keyword() ) :: {:ok, AgentPushKit.Model.ErrorResponse.t()} | {:ok, AgentPushKit.Model.AgentTokenCreated.t()} | {:error, Tesla.Env.t()}
Create a named non-expiring agent token
The raw apt_ token is shown once. Store it before dismissing the response.
Parameters
connection(AgentPushKit.Connection): Connection to servercreate_agent_token_input(CreateAgentTokenInput):opts(keyword): Optional parameters
Returns
{:ok, AgentPushKit.Model.AgentTokenCreated.t}on success{:error, Tesla.Env.t}on failure
@spec list_agent_tokens( Tesla.Env.client(), keyword() ) :: {:ok, [AgentPushKit.Model.AgentToken.t()]} | {:ok, AgentPushKit.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
List agent access tokens without their secrets
Parameters
connection(AgentPushKit.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, [%AgentToken{}, ...]}on success{:error, Tesla.Env.t}on failure
@spec revoke_agent_token(Tesla.Env.client(), String.t(), keyword()) :: {:ok, AgentPushKit.Model.ErrorResponse.t()} | {:ok, AgentPushKit.Model.RevokedResponse.t()} | {:error, Tesla.Env.t()}
Revoke one of the current user's agent tokens
Parameters
connection(AgentPushKit.Connection): Connection to servertoken_id(String.t):opts(keyword): Optional parameters
Returns
{:ok, AgentPushKit.Model.RevokedResponse.t}on success{:error, Tesla.Env.t}on failure