Versions in this module Expand all Collapse all v0 v0.1.0 Aug 18, 2026 Changes in this version + const BaseURL + const ClientHeader + const SDKVersion + var OperationDefinitions = map[string]OperationDefinition + var OperationIDs = []string + func IsRetryable(err error) bool + func VerifyWebhookSignature(rawBody []byte, signatureHeader string, signingSecret string, ...) bool + func WithIdempotencyKey(ctx context.Context, key string) context.Context + type APIError struct + Code string + Details map[string]any + Message string + RateLimit *RateLimit + RawBody string + RequestID string + RetryAfterSeconds int + StatusCode int + func (error APIError) Error() string + func (error APIError) Retryable() bool + type AccountCorrectionsRequest struct + Comment string + Fields map[string]any + type AccountEditRequest struct + RequestedBiography string + RequestedLinkInBio string + RequestedProfilePictureUrl string + RequestedUsername string + RequestedVisibleName string + type AccountsService struct + func (service *AccountsService) Bundles(ctx context.Context, id string, query Query) (Response, error) + func (service *AccountsService) CanRefreshAnalytics(ctx context.Context, id string) (Response, error) + func (service *AccountsService) Coverage(ctx context.Context, id string) (Response, error) + func (service *AccountsService) CreateEditRequest(ctx context.Context, id string, body AccountEditRequest) (Response, error) + func (service *AccountsService) Get(ctx context.Context, id string) (Response, error) + func (service *AccountsService) GetEditRequest(ctx context.Context, id string) (Response, error) + func (service *AccountsService) List(ctx context.Context, query Query) (Response, error) + func (service *AccountsService) PauseCoverage(ctx context.Context, id string) (Response, error) + func (service *AccountsService) ReactivateCoverage(ctx context.Context, id string, ...) (Response, error) + func (service *AccountsService) RefreshAnalytics(ctx context.Context, id string, body RefreshAnalyticsRequest) (Response, error) + func (service *AccountsService) RevealCredentials(ctx context.Context, id string) (Response, error) + func (service *AccountsService) RevealCredentialsWithAcceptance(ctx context.Context, id string, body CredentialRevealAcceptance) (Response, error) + func (service *AccountsService) VerificationCode(ctx context.Context, id string) (Response, error) + func (service *AccountsService) VerificationCodeWithAcceptance(ctx context.Context, id string, body CredentialRevealAcceptance) (Response, error) + type AnalyticsService struct + func (service *AnalyticsService) Account(ctx context.Context, id string) (Response, error) + func (service *AnalyticsService) AccountComments(ctx context.Context, id string, query Query) (Response, error) + func (service *AnalyticsService) AccountCompatibility(ctx context.Context, id string) (Response, error) + func (service *AnalyticsService) AccountRaw(ctx context.Context, id string, query Query) (Response, error) + func (service *AnalyticsService) AccountVideos(ctx context.Context, id string, query Query) (Response, error) + func (service *AnalyticsService) CommentPulse(ctx context.Context, query Query) (Response, error) + func (service *AnalyticsService) Contract(ctx context.Context) (Response, error) + func (service *AnalyticsService) CreateReport(ctx context.Context, body CreateAnalyticsReportRequest) (Response, error) + func (service *AnalyticsService) Dashboard(ctx context.Context, query Query) (Response, error) + func (service *AnalyticsService) ExportReportHTML(ctx context.Context, body CreateAnalyticsReportRequest) (string, error) + func (service *AnalyticsService) ExportVideos(ctx context.Context, query Query) (string, error) + func (service *AnalyticsService) PostRaw(ctx context.Context, id string, query Query) (Response, error) + func (service *AnalyticsService) RefreshAccount(ctx context.Context, id string, body RefreshAnalyticsRequest) (Response, error) + func (service *AnalyticsService) Series(ctx context.Context, query Query) (Response, error) + func (service *AnalyticsService) Video(ctx context.Context, id string) (Response, error) + type BatchConfigureVideoItem struct + Position int + type BatchConfigureVideosRequest struct + AutoPublish bool + Videos []BatchConfigureVideoItem + type BundleType string + const BundleTypeAccountAndVideos + const BundleTypeAccountOnly + const BundleTypeVideosOnly + type BundlesService struct + func (service *BundlesService) AddEditSlots(ctx context.Context, id string, quantity int) (Response, error) + func (service *BundlesService) AddVideoSlots(ctx context.Context, id string, quantity int) (Response, error) + func (service *BundlesService) BatchConfigureVideos(ctx context.Context, id string, body BatchConfigureVideosRequest) (Response, error) + func (service *BundlesService) BulkCreate(ctx context.Context, body CreateBulkBundlesRequest) (Response, error) + func (service *BundlesService) ConfigureAccount(ctx context.Context, id string, body ConfigureAccountRequest) (Response, error) + func (service *BundlesService) ConfigureVideo(ctx context.Context, id string, position int, body ConfigureVideoRequest) (Response, error) + func (service *BundlesService) Create(ctx context.Context, body CreateBundleRequest) (Response, error) + func (service *BundlesService) FinalizeAccount(ctx context.Context, id string) (Response, error) + func (service *BundlesService) FinalizeVideo(ctx context.Context, id string, position int) (Response, error) + func (service *BundlesService) FixVideoDownload(ctx context.Context, id string, position int, body FixVideoDownloadRequest) (Response, error) + func (service *BundlesService) Get(ctx context.Context, id string) (Response, error) + func (service *BundlesService) GetAccount(ctx context.Context, id string) (Response, error) + func (service *BundlesService) GetVideo(ctx context.Context, id string, position int) (Response, error) + func (service *BundlesService) List(ctx context.Context, query Query) (Response, error) + func (service *BundlesService) ListVideos(ctx context.Context, id string) (Response, error) + func (service *BundlesService) PatchVideo(ctx context.Context, id string, position int, body PatchVideoRequest) (Response, error) + func (service *BundlesService) Publish(ctx context.Context, id string) (Response, error) + func (service *BundlesService) PublishAllVideos(ctx context.Context, id string) (Response, error) + func (service *BundlesService) PublishVideo(ctx context.Context, id string, position int) (Response, error) + func (service *BundlesService) Readiness(ctx context.Context, id string) (Response, error) + func (service *BundlesService) RequestAccountCorrections(ctx context.Context, id string, body AccountCorrectionsRequest) (Response, error) + func (service *BundlesService) RequestVideoCorrections(ctx context.Context, id string, position int, body VideoCorrectionsRequest) (Response, error) + func (service *BundlesService) ResetVideo(ctx context.Context, id string, position int) (Response, error) + func (service *BundlesService) Unpublish(ctx context.Context, id string) (Response, error) + func (service *BundlesService) UnscheduleVideo(ctx context.Context, id string, position int) (Response, error) + func (service *BundlesService) Update(ctx context.Context, id string, body PatchBundleRequest) (Response, error) + type Client struct + Accounts *AccountsService + Analytics *AnalyticsService + Bundles *BundlesService + Comments *CommentsService + Credits *CreditsService + Uploads *UploadsService + Webhooks *WebhooksService + func NewClient(apiKey string, options ...Option) (*Client, error) + func (client *Client) Countries(ctx context.Context) (Response, error) + func (client *Client) CreditCosts(ctx context.Context) (Response, error) + func (client *Client) DoOperation(ctx context.Context, operationID string, input OperationRequest) (Response, error) + func (client *Client) DoTextOperation(ctx context.Context, operationID string, input OperationRequest) (string, error) + func (client *Client) Me(ctx context.Context) (Response, error) + func (client *Client) Platforms(ctx context.Context) (Response, error) + type CommentTaskInput struct + BriefID *string + CommentText string + SavedAccountID string + TargetVideoURL string + type CommentsService struct + func (service *CommentsService) Approve(ctx context.Context, id string) (Response, error) + func (service *CommentsService) Create(ctx context.Context, body CreateCommentTasksRequest) (Response, error) + func (service *CommentsService) Delete(ctx context.Context, id string) (Response, error) + func (service *CommentsService) Dispute(ctx context.Context, id string, reason string) (Response, error) + func (service *CommentsService) Get(ctx context.Context, id string) (Response, error) + func (service *CommentsService) List(ctx context.Context, query Query) (Response, error) + func (service *CommentsService) Verifications(ctx context.Context, id string) (Response, error) + type ConfigureAccountRequest struct + AdvancedWarmingTerms []string + Biography string + LinkInBio string + NicheWarmingInstructions string + ProfilePictureUrl string + Username string + VisibleName string + type ConfigureVideoRequest struct + AiContentDisclaimer bool + AutoPublish bool + CarouselImages []string + CarouselTitle string + Description string + DiscloseAsAds bool + EditingInstructions string + ExternalRef string + InstagramAddToStory bool + InstagramAudioName string + InstagramCollaborators []string + InstagramContentType string + InstagramLocation string + InstantRepostAsStory bool + Name string + StoryImageUrl string + StoryRepostUrl string + TargetPublishDate string + TiktokSoundUrl string + VideoType string + VideoUrl string + VolumeAddedSound *int + VolumeOriginalSound *int + YoutubeCategory string + YoutubeSoundUrl string + YoutubeTags []string + YoutubeTitle string + YoutubeVisibility string + type CreateAnalyticsReportRequest struct + AccountIds []string + BrandAccent *string + BrandName *string + Countries []string + From *string + Platforms []Platform + Query *string + Template *string + Title *string + To *string + WorkspaceId *string + type CreateBulkBundlesRequest struct + AccountsCount int + AdvancedWarmingTerms []string + AdvancedWarmingTermsCount int + AutoFinalizeVideos bool + Country string + ExternalRef string + NicheWarmingInstructions string + Platforms []Platform + UploadAccountsCount int + VideosPerAccount int + WantsAdvancedWarming bool + WantsDeepWarming bool + WantsNicheWarming bool + type CreateBundleRequest struct + AccountId string + AdvancedWarmingTerms []string + AdvancedWarmingTermsCount int + AutoFinalizeVideos bool + BundleType BundleType + Country string + EditsQuantity int + ExternalRef string + NicheWarmingInstructions string + Platform Platform + Title string + VideosQuantity int + WantsAdvancedWarming bool + WantsDeepWarming bool + WantsNicheWarming bool + type CreateCommentTasksRequest struct + BriefID *string + CommentText string + SavedAccountID string + TargetVideoURL string + Tasks []CommentTaskInput + type CreateWebhookEndpointRequest struct + Description string + Enabled bool + Events []string + Url string + type CredentialRevealAcceptance struct + AcknowledgeSupportForfeit bool + PolicyVersion string + type CreditsService struct + func (service *CreditsService) Balance(ctx context.Context) (Response, error) + func (service *CreditsService) History(ctx context.Context, query Query) (Response, error) + type DisputeCommentRequest struct + Reason string + type FixVideoDownloadRequest struct + CarouselImages []string + VideoUrl string + type ManagedAccountSubscriptionReactivationRequest struct + ExpectedCredits int + ExpectedCurrentPeriodEnd string + ExpectedLockVersion int + type OperationDefinition struct + HasJSONBody bool + IdempotencyPolicy string + Method string + OperationID string + Path string + PathParams []string + QueryParams []string + RequestContentType string + SuccessContentTypes []string + type OperationRequest struct + Body any + ContentType string + FileField string + FilePath string + Form map[string]string + Path map[string]string + Query Query + type Option func(*Client) + func WithBaseURL(baseURL string) Option + func WithHTTPClient(httpClient *http.Client) Option + type PatchBundleRequest struct + AutoFinalizeVideos bool + ExternalRef *string + Title *string + type PatchVideoRequest struct + Description *string + ExternalRef *string + Name *string + TargetPublishDate *string + TargetPublishEndDate *string + TargetPublishStartDate *string + type Platform string + const PlatformInstagram + const PlatformTiktok + type QuantityRequest struct + Quantity int + type Query map[string]any + type RateLimit struct + Limit int + Remaining int + Reset int + type RefreshAnalyticsRequest struct + BootstrapPosts bool + Force bool + ForcePosts bool + IncludeComments bool + IncludePosts bool + PostLimit int + type Response map[string]any + type UpdateWebhookEndpointRequest struct + Description *string + Enabled bool + Events []string + Url string + type UploadImageFromUrlRequest struct + BundleId string + Purpose string + Url string + type UploadImageRequest struct + BundleId string + ContentType string + Filename string + Purpose string + type UploadVideoRequest struct + BundleId string + ContentType string + Filename string + type UploadsService struct + func (service *UploadsService) Image(ctx context.Context, body UploadImageRequest) (Response, error) + func (service *UploadsService) ImageDirect(ctx context.Context, filePath string, bundleID string, purpose string, ...) (Response, error) + func (service *UploadsService) ImageFromURL(ctx context.Context, body UploadImageFromUrlRequest) (Response, error) + func (service *UploadsService) Video(ctx context.Context, body UploadVideoRequest) (Response, error) + func (service *UploadsService) VideoDirect(ctx context.Context, filePath string, bundleID string, contentType string) (Response, error) + type VideoCorrectionsRequest struct + Comment string + Fields map[string]any + type WebhooksService struct + func (service *WebhooksService) Create(ctx context.Context, body CreateWebhookEndpointRequest) (Response, error) + func (service *WebhooksService) Delete(ctx context.Context, id string) (Response, error) + func (service *WebhooksService) Deliveries(ctx context.Context, id string, query Query) (Response, error) + func (service *WebhooksService) Events(ctx context.Context) (Response, error) + func (service *WebhooksService) Get(ctx context.Context, id string) (Response, error) + func (service *WebhooksService) List(ctx context.Context, query Query) (Response, error) + func (service *WebhooksService) RetryDelivery(ctx context.Context, id string, deliveryID string) (Response, error) + func (service *WebhooksService) Test(ctx context.Context, id string) (Response, error) + func (service *WebhooksService) Update(ctx context.Context, id string, body UpdateWebhookEndpointRequest) (Response, error)