Versions in this module Expand all Collapse all v0 v0.2.0 May 8, 2026 v0.1.0 May 8, 2026 Changes in this version + type AccountLabel struct + Color string + Description string + ID int + ShowOnSidebar bool + Title string + type AccountLabelsListResponse struct + Payload []AccountLabel + type AccountLabelsService struct + func (s *AccountLabelsService) List() ([]AccountLabel, error) + type AddLabelsRequest struct + Labels []string + type Agent struct + AvailabilityStatus string + Email string + ID int + Name string + Thumbnail string + type AgentFull struct + AccountID int + AvailabilityStatus string + Email string + ID int + Name string + Role string + Thumbnail string + type AgentsService struct + func (s *AgentsService) List() ([]AgentFull, error) + type AssignRequest struct + AssigneeID *int + TeamID int + type Attachment struct + DataURL string + FileSize int + FileType string + ID int + ThumbURL string + type Client struct + APIKey string + AccountID int + BaseURL string + Verbose bool + func NewClient(baseURL, apiKey string, accountID int, opts ...ClientOption) *Client + func (c *Client) AccountLabels() *AccountLabelsService + func (c *Client) Agents() *AgentsService + func (c *Client) Contacts() *ContactsService + func (c *Client) Conversations() *ConversationsService + func (c *Client) Delete(path string, v interface{}) error + func (c *Client) Get(path string, params url.Values, v interface{}) error + func (c *Client) GetRaw(path string, params url.Values, v interface{}) error + func (c *Client) Inboxes() *InboxesService + func (c *Client) Labels(conversationID int) *LabelsService + func (c *Client) Messages(conversationID int) *MessagesService + func (c *Client) Patch(path string, body io.Reader, v interface{}) error + func (c *Client) Post(path string, body io.Reader, v interface{}) error + func (c *Client) Profile() *ProfileService + func (c *Client) Teams() *TeamsService + type ClientOption func(*Client) + func WithHTTPClient(httpClient *http.Client) ClientOption + func WithVerbose(verbose bool) ClientOption + type Contact struct + Email string + ID int + Identifier string + Name string + Phone string + Thumbnail string + type ContactConversationsResponse struct + Payload []Conversation + type ContactFull struct + AdditionalAttributes map[string]interface{} + CompanyName string + ConversationsCount int + CreatedAt int64 + CustomAttributes map[string]interface{} + Email string + ID int + Identifier string + LastActivityAt int64 + Name string + PhoneNumber string + Thumbnail string + type ContactsListOptions struct + Page int + Sort string + type ContactsListResponse struct + Meta map[string]interface{} + Payload []ContactFull + type ContactsSearchOptions struct + Page int + Query string + Sort string + type ContactsService struct + func (s *ContactsService) Conversations(id int) (*ContactConversationsResponse, error) + func (s *ContactsService) Get(id int) (*ContactFull, error) + func (s *ContactsService) List(opts ContactsListOptions) (*ContactsListResponse, error) + func (s *ContactsService) Search(opts ContactsSearchOptions) (*ContactsListResponse, error) + type Conversation struct + AccountID int + AdditionalAttributes map[string]interface{} + AgentLastSeenAt int64 + ContactLastSeenAt int64 + CreatedAt int64 + ID int + InboxID int + Labels []string + LastActivityAt int64 + Messages []Message + MessagesCount int + Meta ConversationMeta + Priority *string + Status string + Timestamp int64 + UnreadCount int + type ConversationMeta struct + Assignee *Agent + Channel string + Sender *Contact + Team *Team + type ConversationsListResponse struct + Data struct{ ... } + type ConversationsService struct + func (s *ConversationsService) Assign(id int, assigneeID *int, teamID int) (*User, error) + func (s *ConversationsService) Get(id int) (*Conversation, error) + func (s *ConversationsService) List(opts ListOptions) (*ConversationsListResponse, error) + func (s *ConversationsService) ToggleStatus(id int, status string, snoozedUntil *int64) (*ToggleStatusResponse, error) + func (s *ConversationsService) Unassign(id int) error + func (s *ConversationsService) UpdatePriority(id int, priority string) error + type CreateMessageRequest struct + CampaignID int + Content string + ContentAttributes map[string]interface{} + ContentType string + MessageType string + Private bool + TemplateParams map[string]interface{} + type Inbox struct + ID int + Name string + type InboxFull struct + AvatarURL string + ChannelID int + ChannelType string + GreetingEnabled bool + GreetingMessage string + ID int + Name string + type InboxesListResponse struct + Payload []InboxFull + type InboxesService struct + func (s *InboxesService) Get(id int) (*InboxFull, error) + func (s *InboxesService) List() (*InboxesListResponse, error) + type LabelsResponse struct + Payload []string + type LabelsService struct + func (s *LabelsService) Add(labels []string) ([]string, error) + func (s *LabelsService) List() ([]string, error) + type ListOptions struct + AssigneeType string + InboxID int + Labels []string + Page int + Query string + SortBy string + Status string + TeamID int + type Message struct + AccountID int + AdditionalAttributes map[string]interface{} + Attachments []Attachment + Content string + ContentAttributes map[string]interface{} + ContentType string + Conversation *MessageConversation + ConversationID int + CreatedAt int64 + ID int + InboxID int + MessageType int + Private bool + Sender *MessageSender + SenderID *int + SenderType *string + SourceID *string + Status string + UpdatedAt interface{} + type MessageConversation struct + AgentLastSeenAt int64 + ContactLastSeenAt int64 + ID int + LastActivityAt int64 + UnreadCount int + type MessageSender struct + AvailableStatus string + Email string + ID int + Name string + Thumbnail string + Type string + type MessagesListResponse struct + Meta map[string]interface{} + Payload []Message + type MessagesService struct + func (s *MessagesService) Create(content string, private bool) (*Message, error) + func (s *MessagesService) CreateWithRequest(body CreateMessageRequest) (*Message, error) + func (s *MessagesService) Delete(messageID int) error + func (s *MessagesService) List(beforeID int, afterID ...int) (*MessagesListResponse, error) + type ProfileResponse struct + AccountID int + AvailabilityStatus string + AvatarURL string + Email string + ID int + Name string + Role string + Thumbnail string + UISettings map[string]interface{} + type ProfileService struct + func (s *ProfileService) Get() (*ProfileResponse, error) + type Team struct + ID int + Name string + type TeamFull struct + AccountID int + Description string + ID int + Name string + type TeamsService struct + func (s *TeamsService) List() ([]TeamFull, error) + type ToggleStatusRequest struct + SnoozedUntil *int64 + Status string + type ToggleStatusResponse struct + ConversationID int + CurrentStatus string + Success bool + type UpdatePriorityRequest struct + Priority *string + type User struct + AccessToken string + AccountID int + AvailabilityStatus string + AvailableName string + AvatarURL string + Confirmed bool + CustomAttributes map[string]interface{} + DisplayName *string + Email string + HMACIdentifier string + ID int + InviterID *int + MessageSignature *string + Name string + Provider string + PubsubToken string + Role string + Type *string + UID string + UISettings map[string]interface{}