Skip to main content

Go SDK

The official Anima Go SDK provides idiomatic Go access to the full Anima platform: agents, email, vault, identity, registry, and A2A.

Installation

Requires Go 1.21 or later.

Quickstart

Client Configuration

Configuration Options

OptionDefaultDescription
WithBaseURLhttps://api.useanima.shAPI base URL
WithTimeout30sHTTP request timeout
WithRetries2Max retry attempts on failure
WithPodIDnoneScope all requests to a pod
WithHTTPClienthttp.DefaultClientCustom HTTP client
WithUserAgentanima-go/<version>Custom User-Agent header

Resource Reference

Agents

Email

Vault

Identity

A2A

See A2A Protocol for the full task lifecycle and CLI equivalents.

Wallet

Webhooks

Error Handling

The SDK uses typed errors for common failure cases:
Error TypeDescription
*APIErrorAPI returned an error response
*AuthErrorInvalid or expired API key
*RateLimitErrorRate limit exceeded (includes retry-after)
*ValidationErrorInvalid request parameters
*NotFoundErrorResource not found

Pagination

All list endpoints support cursor-based pagination:

Next Steps