Skip to content

API Keys

List Agent API Keys
client.Agents.APIKeys.List(ctx, agentUuid, query) (*AgentAPIKeyListResponse, error)
get/v2/gen-ai/agents/{agent_uuid}/api_keys
Create an Agent API Key
client.Agents.APIKeys.New(ctx, agentUuid, body) (*AgentAPIKeyNewResponse, error)
post/v2/gen-ai/agents/{agent_uuid}/api_keys
Update API Key for an Agent
client.Agents.APIKeys.Update(ctx, agentUuid, apiKeyUuid, body) (*AgentAPIKeyUpdateResponse, error)
put/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}
Delete API Key for an Agent
client.Agents.APIKeys.Delete(ctx, agentUuid, apiKeyUuid) (*AgentAPIKeyDeleteResponse, error)
delete/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}
Regenerate API Key for an Agent
client.Agents.APIKeys.Regenerate(ctx, agentUuid, apiKeyUuid) (*AgentAPIKeyRegenerateResponse, error)
put/v2/gen-ai/agents/{agent_uuid}/api_keys/{api_key_uuid}/regenerate