Official Go client library for the Late API - Schedule and manage social media posts across multiple platforms.
go get github.com/getlate-dev/late-go
package main
import (
"context"
"fmt"
"log"
late "github.com/getlate-dev/late-go/late"
)
func main() {
client, err := late.NewClientWithResponses("https://api.getlate.dev",
late.WithRequestEditorFn(func(ctx context.Context, req *http.Request) error {
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
return nil
}),
)
if err != nil {
log.Fatal(err)
}
// List accounts
resp, err := client.ListAccountsWithResponse(context.Background(), nil)
if err != nil {
log.Fatal(err)
}
fmt.Printf("Accounts: %+v\n", resp.JSON200)
}
| Method |
Description |
client.ListPostsWithResponse() |
List posts |
client.BulkUploadPostsWithResponse() |
Bulk upload from CSV |
client.CreatePostWithResponse() |
Create post |
client.GetPostWithResponse() |
Get post |
client.UpdatePostWithResponse() |
Update post |
client.DeletePostWithResponse() |
Delete post |
client.RetryPostWithResponse() |
Retry failed post |
client.UnpublishPostWithResponse() |
Unpublish post |
| Method |
Description |
client.GetAllAccountsHealthWithResponse() |
Check accounts health |
client.ListAccountsWithResponse() |
List accounts |
client.GetAccountHealthWithResponse() |
Check account health |
client.GetFollowerStatsWithResponse() |
Get follower stats |
client.GetGoogleBusinessReviewsWithResponse() |
Get reviews |
client.GetLinkedInMentionsWithResponse() |
Resolve LinkedIn mention |
client.UpdateAccountWithResponse() |
Update account |
client.DeleteAccountWithResponse() |
Disconnect account |
| Method |
Description |
client.ListProfilesWithResponse() |
List profiles |
client.CreateProfileWithResponse() |
Create profile |
client.GetProfileWithResponse() |
Get profile |
client.UpdateProfileWithResponse() |
Update profile |
client.DeleteProfileWithResponse() |
Delete profile |
| Method |
Description |
client.GetAnalyticsWithResponse() |
Get post analytics |
client.GetBestTimeToPostWithResponse() |
Get best times to post |
client.GetContentDecayWithResponse() |
Get content performance decay |
client.GetDailyMetricsWithResponse() |
Get daily aggregated metrics |
client.GetLinkedInAggregateAnalyticsWithResponse() |
Get LinkedIn aggregate stats |
client.GetLinkedInPostAnalyticsWithResponse() |
Get LinkedIn post stats |
client.GetPostTimelineWithResponse() |
Get post analytics timeline |
client.GetPostingFrequencyWithResponse() |
Get posting frequency vs engagement |
client.GetYouTubeDailyViewsWithResponse() |
Get YouTube daily views |
| Method |
Description |
client.ListAccountGroupsWithResponse() |
List groups |
client.CreateAccountGroupWithResponse() |
Create group |
client.UpdateAccountGroupWithResponse() |
Update group |
client.DeleteAccountGroupWithResponse() |
Delete group |
| Method |
Description |
client.ListQueueSlotsWithResponse() |
List schedules |
client.CreateQueueSlotWithResponse() |
Create schedule |
client.GetNextQueueSlotWithResponse() |
Get next available slot |
client.UpdateQueueSlotWithResponse() |
Update schedule |
client.DeleteQueueSlotWithResponse() |
Delete schedule |
client.PreviewQueueWithResponse() |
Preview upcoming slots |
| Method |
Description |
client.CreateWebhookSettingsWithResponse() |
Create webhook |
client.GetWebhookLogsWithResponse() |
Get delivery logs |
client.GetWebhookSettingsWithResponse() |
List webhooks |
client.UpdateWebhookSettingsWithResponse() |
Update webhook |
client.DeleteWebhookSettingsWithResponse() |
Delete webhook |
client.TestWebhookWithResponse() |
Send test webhook |
| Method |
Description |
client.ListApiKeysWithResponse() |
List keys |
client.CreateApiKeyWithResponse() |
Create key |
client.DeleteApiKeyWithResponse() |
Delete key |
| Method |
Description |
client.GetMediaPresignedUrlWithResponse() |
Get presigned upload URL |
| Method |
Description |
client.GetYouTubeTranscriptWithResponse() |
Get YouTube transcript |
client.CheckInstagramHashtagsWithResponse() |
Check IG hashtag bans |
client.DownloadBlueskyMediaWithResponse() |
Download Bluesky media |
client.DownloadFacebookVideoWithResponse() |
Download Facebook video |
client.DownloadInstagramMediaWithResponse() |
Download Instagram media |
client.DownloadLinkedInVideoWithResponse() |
Download LinkedIn video |
client.DownloadTikTokVideoWithResponse() |
Download TikTok video |
client.DownloadTwitterMediaWithResponse() |
Download Twitter/X media |
client.DownloadYouTubeVideoWithResponse() |
Download YouTube video |
| Method |
Description |
client.ListUsersWithResponse() |
List users |
client.GetUserWithResponse() |
Get user |
| Method |
Description |
client.GetUsageStatsWithResponse() |
Get plan and usage stats |
| Method |
Description |
client.ListConnectionLogsWithResponse() |
List connection logs |
client.ListPostsLogsWithResponse() |
List publishing logs |
client.GetPostLogsWithResponse() |
Get post logs |
| Method |
Description |
client.ListFacebookPagesWithResponse() |
List Facebook pages |
client.ListGoogleBusinessLocationsWithResponse() |
List GBP locations |
client.ListLinkedInOrganizationsWithResponse() |
List LinkedIn orgs |
client.ListPinterestBoardsForSelectionWithResponse() |
List Pinterest boards |
client.ListSnapchatProfilesWithResponse() |
List Snapchat profiles |
client.GetConnectUrlWithResponse() |
Get OAuth connect URL |
client.GetFacebookPagesWithResponse() |
List Facebook pages |
client.GetGmbLocationsWithResponse() |
List GBP locations |
client.GetLinkedInOrganizationsWithResponse() |
List LinkedIn orgs |
client.GetPendingOAuthDataWithResponse() |
Get pending OAuth data |
client.GetPinterestBoardsWithResponse() |
List Pinterest boards |
client.GetRedditFlairsWithResponse() |
List subreddit flairs |
client.GetRedditSubredditsWithResponse() |
List Reddit subreddits |
client.GetTelegramConnectStatusWithResponse() |
Generate Telegram code |
client.UpdateFacebookPageWithResponse() |
Update Facebook page |
client.UpdateGmbLocationWithResponse() |
Update GBP location |
client.UpdateLinkedInOrganizationWithResponse() |
Switch LinkedIn account type |
client.UpdatePinterestBoardsWithResponse() |
Set default Pinterest board |
client.UpdateRedditSubredditsWithResponse() |
Set default subreddit |
client.CompleteTelegramConnectWithResponse() |
Check Telegram status |
client.ConnectBlueskyCredentialsWithResponse() |
Connect Bluesky account |
client.HandleOAuthCallbackWithResponse() |
Complete OAuth callback |
client.InitiateTelegramConnectWithResponse() |
Connect Telegram directly |
client.SelectFacebookPageWithResponse() |
Select Facebook page |
client.SelectGoogleBusinessLocationWithResponse() |
Select GBP location |
client.SelectLinkedInOrganizationWithResponse() |
Select LinkedIn org |
client.SelectPinterestBoardWithResponse() |
Select Pinterest board |
client.SelectSnapchatProfileWithResponse() |
Select Snapchat profile |
| Method |
Description |
client.GetRedditFeedWithResponse() |
Get subreddit feed |
client.SearchRedditWithResponse() |
Search posts |
| Method |
Description |
client.GetInstagramIceBreakersWithResponse() |
Get IG ice breakers |
client.GetMessengerMenuWithResponse() |
Get FB persistent menu |
client.GetTelegramCommandsWithResponse() |
Get TG bot commands |
client.DeleteInstagramIceBreakersWithResponse() |
Delete IG ice breakers |
client.DeleteMessengerMenuWithResponse() |
Delete FB persistent menu |
client.DeleteTelegramCommandsWithResponse() |
Delete TG bot commands |
client.SetInstagramIceBreakersWithResponse() |
Set IG ice breakers |
client.SetMessengerMenuWithResponse() |
Set FB persistent menu |
client.SetTelegramCommandsWithResponse() |
Set TG bot commands |
Comments (Inbox)
| Method |
Description |
client.ListInboxCommentsWithResponse() |
List commented posts |
client.GetInboxPostCommentsWithResponse() |
Get post comments |
client.DeleteInboxCommentWithResponse() |
Delete comment |
client.HideInboxCommentWithResponse() |
Hide comment |
client.LikeInboxCommentWithResponse() |
Like comment |
client.ReplyToInboxPostWithResponse() |
Reply to comment |
client.SendPrivateReplyToCommentWithResponse() |
Send private reply |
client.UnhideInboxCommentWithResponse() |
Unhide comment |
client.UnlikeInboxCommentWithResponse() |
Unlike comment |
| Method |
Description |
client.GetGoogleBusinessAttributesWithResponse() |
Get attributes |
client.UpdateGoogleBusinessAttributesWithResponse() |
Update attributes |
GMB Food Menus
| Method |
Description |
client.GetGoogleBusinessFoodMenusWithResponse() |
Get food menus |
client.UpdateGoogleBusinessFoodMenusWithResponse() |
Update food menus |
| Method |
Description |
client.GetGoogleBusinessLocationDetailsWithResponse() |
Get location details |
client.UpdateGoogleBusinessLocationDetailsWithResponse() |
Update location details |
| Method |
Description |
client.ListGoogleBusinessMediaWithResponse() |
List media |
client.CreateGoogleBusinessMediaWithResponse() |
Upload photo |
client.DeleteGoogleBusinessMediaWithResponse() |
Delete photo |
| Method |
Description |
client.ListGoogleBusinessPlaceActionsWithResponse() |
List action links |
client.CreateGoogleBusinessPlaceActionWithResponse() |
Create action link |
client.DeleteGoogleBusinessPlaceActionWithResponse() |
Delete action link |
| Method |
Description |
client.ListInboxConversationsWithResponse() |
List conversations |
client.GetInboxConversationWithResponse() |
Get conversation |
client.GetInboxConversationMessagesWithResponse() |
List messages |
client.UpdateInboxConversationWithResponse() |
Update conversation status |
client.EditInboxMessageWithResponse() |
Edit message |
client.SendInboxMessageWithResponse() |
Send message |
| Method |
Description |
client.ListInboxReviewsWithResponse() |
List reviews |
client.DeleteInboxReviewReplyWithResponse() |
Delete review reply |
client.ReplyToInboxReviewWithResponse() |
Reply to review |
| Method |
Description |
client.ValidateMediaWithResponse() |
Validate media URL |
client.ValidatePostWithResponse() |
Validate post content |
client.ValidatePostLengthWithResponse() |
Validate post character count |
client.ValidateSubredditWithResponse() |
Check subreddit existence |
| Method |
Description |
client.CreateInviteTokenWithResponse() |
Create invite token |
MIT