Versions in this module Expand all Collapse all v0 v0.1.0 Oct 14, 2026 Changes in this version + const CodeBadRequest + const CodeConflict + const CodeForbidden + const CodeInvalidClient + const CodeInvalidToken + const CodeMethodNotAllowed + const CodeNotFound + const CodePayloadTooLarge + const CodeRateLimited + const CodeUnauthorized + const CodeUnprocessable + const CodeUnsupportedMedia + const DefaultBaseURL + const ExportQueued + const ExportRunning + const ExportSucceeded + const Origin + const SandboxBaseURL + const Version + func IsNotFound(err error) bool + func IsRateLimited(err error) bool + type APIError struct + Code string + Hint string + Message string + RateLimit RateLimit + RetryAfter time.Duration + Status int + func (e *APIError) Error() string + type BatchError struct + Code string + Hint string + Message string + type BatchResult struct + Data *Service + Error *BatchError + Slug *string + Status int + type Client struct + ContactRequests *ContactRequestsService + Exports *ExportsService + Services *ServicesService + func New(opts ...Option) *Client + func (c *Client) BaseURL() string + func (c *Client) Health(ctx context.Context) (*Health, error) + func (c *Client) LastRateLimit() RateLimit + type ContactRequest struct + CreatedAt time.Time + Delivery string + ID string + Status string + type ContactRequestInput struct + Company string + Email string + Locale Locale + Message string + Name string + ServiceSlug string + type ContactRequestsService struct + func (s *ContactRequestsService) Create(ctx context.Context, in ContactRequestInput, opts ...CreateOption) (*ContactRequest, error) + type CreateOption func(*createConfig) + func WithIdempotencyKey(key string) CreateOption + type Credentials struct + ClientID string + ClientSecret string + type ExportFormat string + const ExportCSV + const ExportJSONL + const ExportMD + type ExportJob struct + CreatedAt time.Time + DownloadURL *string + ExpiresAt time.Time + Format ExportFormat + ID string + Status string + type ExportsService struct + func (s *ExportsService) Create(ctx context.Context, format ExportFormat, opts ...CreateOption) (*ExportJob, error) + func (s *ExportsService) Download(ctx context.Context, id string) ([]byte, error) + func (s *ExportsService) Get(ctx context.Context, id string) (*ExportJob, error) + func (s *ExportsService) Wait(ctx context.Context, id string, opts *WaitOptions) (*ExportJob, error) + type Health struct + Service string + Status string + Version string + type ListParams struct + Cursor string + Limit int + type Locale string + const LocaleEN + const LocalePTBR + type Option func(*Client) + func WithBaseURL(baseURL string) Option + func WithCredentials(clientID, clientSecret string) Option + func WithHTTPClient(h *http.Client) Option + func WithOrigin(origin string) Option + type RateLimit struct + Limit int + Policy string + Remaining int + Reset time.Duration + Window time.Duration + type RegisteredClient struct + ClientName string + func Register(ctx context.Context, clientName string, opts ...Option) (*RegisteredClient, error) + type Service struct + Capabilities []string + DeliveryTimeline string + Description string + Name string + ServiceType string + Slug string + URL string + type ServiceList struct + Count int + Data []Service + NextCursor *string + type ServicesService struct + func (s *ServicesService) All(ctx context.Context, params *ListParams) iter.Seq2[Service, error] + func (s *ServicesService) Batch(ctx context.Context, slugs []string) ([]BatchResult, error) + func (s *ServicesService) Get(ctx context.Context, slug string) (*Service, error) + func (s *ServicesService) List(ctx context.Context, params *ListParams) (*ServiceList, error) + func (s *ServicesService) Search(ctx context.Context, query string) ([]Service, error) + type WaitOptions struct + Interval time.Duration + Timeout time.Duration