{"components":{"schemas":{"api.AssignContactsRequest":{"properties":{"contactIds":{"items":{"type":"string"},"minItems":1,"type":"array","uniqueItems":false}},"required":["contactIds"],"type":"object"},"api.AssignMailboxesRequest":{"properties":{"mailboxIds":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"required":["mailboxIds"],"type":"object"},"api.BulkCreateContactsRequest":{"properties":{"contacts":{"items":{"$ref":"#/components/schemas/api.CreateSimpleLeadRequest"},"maxItems":100,"minItems":1,"type":"array","uniqueItems":false}},"type":"object"},"api.BulkCreateContactsResponse":{"properties":{"contacts":{"items":{"$ref":"#/components/schemas/api.ContactResponse"},"type":"array","uniqueItems":false}},"type":"object"},"api.BulkCreateDNCRequest":{"properties":{"dncs":{"items":{"type":"string"},"maxItems":1000,"minItems":1,"type":"array","uniqueItems":false}},"required":["dncs"],"type":"object"},"api.BulkCreateDNCResponse":{"properties":{"created":{"type":"integer"}},"type":"object"},"api.CheckAPIKeyResponse":{"properties":{"accountId":{"type":"string"},"apiKeyName":{"type":"string"}},"type":"object"},"api.ConfirmSequenceContactValidationResultRequest":{"properties":{"esps":{"example":["gsuite","ms365"],"items":{"$ref":"#/components/schemas/models.LeadESP"},"minItems":1,"type":"array","uniqueItems":false},"statuses":{"example":["safe"],"items":{"$ref":"#/components/schemas/models.ReonEmailStatus"},"minItems":1,"type":"array","uniqueItems":false}},"required":["esps"],"type":"object"},"api.ContactResponse":{"properties":{"company":{"type":"string"},"customVars":{"additionalProperties":{"type":"string"},"type":"object"},"email":{"type":"string"},"firstName":{"type":"string"},"id":{"type":"string"},"lastName":{"type":"string"},"linkedinUrl":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"api.CreateMailboxOAuthLinkRequest":{"properties":{"email":{"example":"user@example.com","type":"string"},"provider":{"enum":["google","outlook"],"example":"google","type":"string"},"redirectUrl":{"example":"https://partner.example/oauth/callback","type":"string"}},"required":["provider","redirectUrl"],"type":"object"},"api.CreateProductRequest":{"properties":{"product":{"$ref":"#/components/schemas/api.ProductRequest"},"translation":{"items":{"$ref":"#/components/schemas/api.ProductRequest"},"type":"array","uniqueItems":false}},"type":"object"},"api.CreateSequenceRequest":{"properties":{"language":{"$ref":"#/components/schemas/models.Language"},"name":{"example":"My Sequence","type":"string"},"productId":{"example":"prod_123456","type":"string"},"timezone":{"example":"America/New_York","type":"string"}},"required":["language","name","productId","timezone"],"type":"object"},"api.CreateSimpleLeadRequest":{"properties":{"company":{"minLength":1,"type":"string"},"customVars":{"$ref":"#/components/schemas/api.FlexibleStringMap"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"linkedinUrl":{"type":"string"},"position":{"type":"string"},"tagIds":{"items":{"type":"string"},"type":"array","uniqueItems":false},"tags":{"items":{"type":"string"},"type":"array","uniqueItems":false}},"required":["firstName"],"type":"object"},"api.CreateWebhookRequest":{"properties":{"name":{"type":"string"},"sequenceID":{"minLength":1,"type":"string"},"type":{"$ref":"#/components/schemas/webhooks.WebhookType"},"url":{"type":"string"}},"required":["name","type","url"],"type":"object"},"api.CreateWorkspaceRequest":{"properties":{"name":{"example":"My Workspace","maxLength":100,"minLength":1,"type":"string"}},"required":["name"],"type":"object"},"api.CustomVarResponse":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"type":"object"},"api.DNCResponse":{"properties":{"createdAt":{"type":"string"},"type":{"$ref":"#/components/schemas/models.DncType"},"value":{"type":"string"}},"type":"object"},"api.FlexibleStringMap":{"additionalProperties":{"type":"string"},"type":"object"},"api.ListResponse":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"},"api.MailboxOAuthLinkResponse":{"properties":{"url":{"example":"https://accounts.google.com/o/oauth2/auth?...","type":"string"}},"type":"object"},"api.MailboxResponse":{"properties":{"address":{"type":"string"},"dailyEmailLimit":{"type":"integer"},"disconnectReason":{"type":"string"},"firstName":{"type":"string"},"id":{"type":"string"},"lastName":{"type":"string"},"mailboxProvider":{"$ref":"#/components/schemas/models.MailboxProvider"},"resolvedSignature":{"type":"string"},"signature":{"type":"string"},"status":{"$ref":"#/components/schemas/models.MailboxStatus"},"trackingDomain":{"type":"string"},"trackingDomainStatus":{"$ref":"#/components/schemas/models.TrackingDomainStatus"}},"type":"object"},"api.PrimeboxLabelListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/api.PrimeboxLabelResponse"},"type":"array","uniqueItems":false},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"},"api.PrimeboxLabelResponse":{"properties":{"id":{"type":"string"},"isBuiltIn":{"type":"boolean"},"name":{"type":"string"},"specialLabel":{"$ref":"#/components/schemas/models.SpecialLabel"}},"type":"object"},"api.PrimeboxThreadResponse":{"properties":{"agentId":{"type":"string"},"agentReply":{"type":"string"},"agentStatus":{"$ref":"#/components/schemas/models.ThreadAgentStatus"},"contactEmail":{"type":"string"},"contactFirstName":{"type":"string"},"contactLastName":{"type":"string"},"content":{"type":"string"},"date":{"type":"string"},"id":{"type":"string"},"isPositive":{"type":"boolean"},"isUnread":{"type":"boolean"},"labelAppliedAt":{"type":"string"},"labelAppliedBy":{"$ref":"#/components/schemas/models.LabelAppliedBy"},"labelId":{"type":"string"},"mailboxId":{"type":"string"},"profilePictureUrl":{"type":"string"},"replyType":{"$ref":"#/components/schemas/models.ReplyType"},"subject":{"type":"string"}},"type":"object"},"api.ProductRequest":{"properties":{"costOfInaction":{"type":"string"},"idealCustomerProfile":{"type":"string"},"industry":{"type":"string"},"internalName":{"type":"string"},"language":{"$ref":"#/components/schemas/models.Language"},"name":{"type":"string"},"pain":{"type":"string"},"proofPoints":{"type":"string"},"solution":{"type":"string"}},"type":"object"},"api.ProductResponse":{"properties":{"id":{"type":"string"},"internalName":{"type":"string"},"translations":{"items":{"$ref":"#/components/schemas/api.ProductTranslationResponse"},"type":"array","uniqueItems":false}},"type":"object"},"api.ProductTranslationResponse":{"properties":{"costOfInaction":{"type":"string"},"idealCustomerProfile":{"type":"string"},"industry":{"type":"string"},"language":{"$ref":"#/components/schemas/models.Language"},"name":{"type":"string"},"pain":{"type":"string"},"proofPoints":{"type":"string"},"solution":{"type":"string"}},"type":"object"},"api.PublicUpdateThreadLabelRequest":{"properties":{"labelId":{"type":"string"}},"required":["labelId"],"type":"object"},"api.ReplyRequest":{"properties":{"attachments":{"items":{"$ref":"#/components/schemas/models.AttachmentUpload"},"type":"array","uniqueItems":false},"bccs":{"items":{"type":"string"},"type":"array","uniqueItems":false},"ccs":{"items":{"type":"string"},"type":"array","uniqueItems":false},"content":{"example":"Reply to the email content","type":"string"},"includeHistory":{"type":"boolean"}},"type":"object"},"api.ReplyToLinkedinRequest":{"properties":{"accountId":{"type":"integer"},"attachments":{"items":{"$ref":"#/components/schemas/models.AttachmentUpload"},"type":"array","uniqueItems":false},"message":{"type":"string"}},"required":["accountId"],"type":"object"},"api.SequenceAnalyticsDayResponse":{"properties":{"replied":{"type":"integer"},"sent":{"type":"integer"},"totalClicked":{"type":"integer"},"totalOpened":{"type":"integer"},"uniqueClicked":{"type":"integer"},"uniqueOpened":{"type":"integer"}},"type":"object"},"api.SequenceAnalyticsResponse":{"properties":{"days":{"additionalProperties":{"$ref":"#/components/schemas/api.SequenceAnalyticsDayResponse"},"description":"key is date in format \"2006-01-02\"","type":"object"},"stats":{"$ref":"#/components/schemas/api.SequenceAnalyticsStatsResponse"}},"type":"object"},"api.SequenceAnalyticsStatsResponse":{"properties":{"clicked":{"type":"integer"},"clickedPercent":{"type":"number"},"contacted":{"type":"integer"},"opened":{"type":"integer"},"openedPercent":{"type":"number"},"replied":{"type":"integer"},"repliedPercent":{"type":"number"},"repliedPositive":{"type":"integer"},"repliedPositivePercent":{"type":"number"}},"type":"object"},"api.SequenceContactSendingDataResponse":{"properties":{"clicked":{"type":"string"},"contactId":{"type":"string"},"email":{"type":"string"},"opened":{"type":"string"},"scheduled":{"type":"string"},"sent":{"type":"string"},"sequenceId":{"type":"string"}},"type":"object"},"api.SequenceContactValidationResultsResponse":{"properties":{"progress":{"type":"integer"},"result":{"$ref":"#/components/schemas/models.LeadsESPValidationResult"},"status":{"$ref":"#/components/schemas/api.ValidationStatus"}},"type":"object"},"api.SequenceContactsCountResponse":{"properties":{"count":{"type":"integer"}},"type":"object"},"api.SequenceMailboxResponse":{"properties":{"address":{"type":"string"},"firstName":{"type":"string"},"id":{"type":"string"},"lastName":{"type":"string"}},"type":"object"},"api.SequenceResponse":{"properties":{"agentId":{"type":"string"},"bouncedCount":{"type":"integer"},"bouncedPercent":{"type":"number"},"clickTrackingEnabled":{"type":"boolean"},"clickedCount":{"type":"integer"},"clickedPercent":{"type":"number"},"companyOutreachLimitCount":{"type":"integer"},"companyOutreachLimitEnabled":{"type":"boolean"},"completedCount":{"type":"integer"},"completedPercent":{"type":"number"},"contactedCount":{"type":"integer"},"id":{"type":"string"},"leadCount":{"type":"integer"},"localizedOptOutEnabled":{"type":"boolean"},"mailboxes":{"items":{"$ref":"#/components/schemas/api.SequenceMailboxResponse"},"type":"array","uniqueItems":false},"name":{"type":"string"},"openTrackingEnabled":{"type":"boolean"},"openedCount":{"type":"integer"},"openedPercent":{"type":"number"},"optOutedCount":{"type":"integer"},"optOutedPercent":{"type":"number"},"productId":{"type":"string"},"repliedCount":{"type":"integer"},"repliedPercent":{"type":"number"},"repliedPositiveCount":{"type":"integer"},"repliedPositivePercent":{"type":"number"},"sequentialCompanySendingEnabled":{"type":"boolean"},"status":{"$ref":"#/components/schemas/models.SequenceStatus"},"steps":{"items":{"$ref":"#/components/schemas/api.SequenceStepResponse"},"type":"array","uniqueItems":false},"workspaceId":{"type":"string"}},"type":"object"},"api.SequenceScheduleResponse":{"properties":{"fromHour":{"type":"integer"},"id":{"type":"string"},"toHour":{"type":"integer"},"weekday":{"type":"integer"}},"type":"object"},"api.SequenceSchedulesResponse":{"properties":{"schedules":{"items":{"$ref":"#/components/schemas/api.SequenceScheduleResponse"},"type":"array","uniqueItems":false}},"type":"object"},"api.SequenceStepResponse":{"properties":{"distributionStrategy":{"$ref":"#/components/schemas/models.ABTestDistributionStrategy"},"id":{"type":"string"},"name":{"type":"string"},"order":{"type":"integer"},"variants":{"items":{"$ref":"#/components/schemas/api.SequenceStepVariantResponse"},"type":"array","uniqueItems":false},"waitDays":{"type":"integer"}},"type":"object"},"api.SequenceStepVariantResponse":{"properties":{"contactInformationSource":{"$ref":"#/components/schemas/models.ContactInformationSource"},"distributionWeight":{"type":"number"},"dynamicLanguageEnabled":{"type":"boolean"},"emailContent":{"type":"string"},"emailSubject":{"type":"string"},"id":{"type":"string"},"isGenerated":{"type":"boolean"},"label":{"type":"string"},"order":{"type":"integer"},"overdriveEnabled":{"type":"boolean"},"status":{"$ref":"#/components/schemas/models.SequenceStepVariantStatus"},"tonality":{"$ref":"#/components/schemas/models.AIGenerationTonality"}},"type":"object"},"api.SequenceStepsResponse":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/api.SequenceStepResponse"},"type":"array","uniqueItems":false}},"type":"object"},"api.ThreadContactResponse":{"properties":{"company":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"id":{"type":"string"},"lastName":{"type":"string"},"linkedinUrl":{"type":"string"}},"type":"object"},"api.ThreadEmailAttachmentMetaResponse":{"properties":{"contentId":{"type":"string"},"contentType":{"type":"string"},"embedded":{"type":"boolean"},"filename":{"type":"string"},"id":{"type":"string"},"inline":{"type":"boolean"},"size":{"type":"integer"}},"type":"object"},"api.ThreadEmailResponse":{"properties":{"attachments":{"items":{"$ref":"#/components/schemas/api.ThreadEmailAttachmentMetaResponse"},"type":"array","uniqueItems":false},"bccs":{"items":{"$ref":"#/components/schemas/models.MailboxContact"},"type":"array","uniqueItems":false},"ccs":{"items":{"$ref":"#/components/schemas/models.MailboxContact"},"type":"array","uniqueItems":false},"content":{"type":"string"},"date":{"type":"string"},"emailId":{"type":"string"},"fromAddress":{"type":"string"},"id":{"type":"string"},"subject":{"type":"string"},"toAddress":{"type":"string"},"tos":{"items":{"$ref":"#/components/schemas/models.MailboxContact"},"type":"array","uniqueItems":false},"type":{"type":"string"}},"type":"object"},"api.ThreadLinkedinAttachmentResponse":{"properties":{"contentType":{"type":"string"},"filename":{"type":"string"},"id":{"type":"string"},"size":{"type":"integer"},"type":{"type":"string"},"url":{"type":"string"}},"type":"object"},"api.ThreadLinkedinMessageResponse":{"properties":{"accountId":{"type":"integer"},"attachments":{"items":{"$ref":"#/components/schemas/api.ThreadLinkedinAttachmentResponse"},"type":"array","uniqueItems":false},"date":{"type":"string"},"direction":{"$ref":"#/components/schemas/models.MultichannelLinkedinMessageDirection"},"firstName":{"type":"string"},"id":{"type":"string"},"lastName":{"type":"string"},"linkedinUrl":{"type":"string"},"message":{"type":"string"},"profilePictureUrl":{"type":"string"},"subject":{"type":"string"}},"type":"object"},"api.ThreadResponse":{"properties":{"contact":{"$ref":"#/components/schemas/api.ThreadContactResponse"},"emails":{"items":{"$ref":"#/components/schemas/api.ThreadEmailResponse"},"type":"array","uniqueItems":false},"linkedinMessages":{"items":{"$ref":"#/components/schemas/api.ThreadLinkedinMessageResponse"},"type":"array","uniqueItems":false},"sequence":{"$ref":"#/components/schemas/api.ThreadSequenceResponse"}},"type":"object"},"api.ThreadSequenceResponse":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"product":{"$ref":"#/components/schemas/api.ProductResponse"},"status":{"$ref":"#/components/schemas/models.SequenceStatus"}},"type":"object"},"api.UpdateMailboxRequest":{"properties":{"dailyEmailLimit":{"example":30,"maximum":100,"minimum":1,"type":"integer"},"firstName":{"type":"string"},"lastName":{"type":"string"},"signature":{"type":"string"},"trackingDomain":{"type":"string"}},"type":"object"},"api.UpdateSequenceSchedulesRequest":{"properties":{"schedules":{"items":{"$ref":"#/components/schemas/api.UpsertSequenceScheduleRequest"},"minItems":1,"type":"array","uniqueItems":false}},"type":"object"},"api.UpdateSequenceStatusRequest":{"properties":{"status":{"enum":["active","paused"],"type":"string"}},"required":["status"],"type":"object"},"api.UpdateSequenceStepsRequest":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/api.UpsertStepRequest"},"minItems":1,"type":"array","uniqueItems":false}},"type":"object"},"api.UpsertSequenceScheduleRequest":{"properties":{"fromHour":{"maximum":23,"minimum":0,"type":"integer"},"toHour":{"maximum":24,"minimum":1,"type":"integer"},"weekday":{"maximum":6,"minimum":0,"type":"integer"}},"type":"object"},"api.UpsertStepRequest":{"properties":{"distributionStrategy":{"$ref":"#/components/schemas/models.ABTestDistributionStrategy"},"id":{"type":"string"},"name":{"type":"string"},"order":{"minimum":0,"type":"integer"},"variants":{"items":{"$ref":"#/components/schemas/api.UpsertStepRequestVariant"},"minItems":1,"type":"array","uniqueItems":false},"waitDays":{"minimum":0,"type":"integer"}},"required":["id"],"type":"object"},"api.UpsertStepRequestVariant":{"properties":{"contactInformationSource":{"$ref":"#/components/schemas/models.ContactInformationSource"},"distributionWeight":{"maximum":100,"minimum":0,"type":"number"},"dynamicLanguageEnabled":{"type":"boolean"},"emailContent":{"type":"string"},"emailSubject":{"type":"string"},"id":{"minLength":1,"type":"string"},"isGenerated":{"type":"boolean"},"label":{"type":"string"},"order":{"minimum":0,"type":"integer"},"overdriveEnabled":{"type":"boolean"},"status":{"$ref":"#/components/schemas/models.SequenceStepVariantStatus"},"tonality":{"$ref":"#/components/schemas/models.AIGenerationTonality"}},"required":["label"],"type":"object"},"api.ValidationStatus":{"enum":["in_progress","completed"],"type":"string","x-enum-varnames":["ValidationStatusInProgress","ValidationStatusCompleted"]},"api.WebhookResponse":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"sentCount":{"type":"integer"},"sequenceId":{"type":"string"},"type":{"$ref":"#/components/schemas/webhooks.WebhookType"},"url":{"type":"string"}},"type":"object"},"api.WorkspaceResponse":{"properties":{"accountId":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}},"type":"object"},"api.WorkspaceSequenceMetricsResponse":{"properties":{"bounced":{"type":"integer"},"bouncedPercent":{"type":"number"},"clicked":{"type":"integer"},"clickedPercent":{"type":"number"},"contacted":{"type":"integer"},"opened":{"type":"integer"},"openedPercent":{"type":"number"},"replied":{"type":"integer"},"repliedPercent":{"type":"number"},"repliedPositive":{"type":"integer"},"repliedPositivePercent":{"type":"number"}},"type":"object"},"data":{"properties":{"data":{"items":{"$ref":"#/components/schemas/api.DNCResponse"},"type":"array"}},"type":"object"},"errors.Error":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"message":{"type":"string"}},"type":"object"},"http.leadCreditsNeededError":{"properties":{"leadCreditsNeeded":{"type":"integer"}},"type":"object"},"models.ABTestDistributionStrategy":{"enum":["equal","custom","equal","custom"],"type":"string","x-enum-varnames":["ABTestDistributionStrategyEqual","ABTestDistributionStrategyCustom"]},"models.AIGenerationTonality":{"enum":["playful","hilarious","formal","curious","urgent","appreciative","polite","enthusiastic","warm","empathetic","direct","persuasive","confident","respectful","helpful","sincere","encouraging","informal","caring","diplomatic","assertive","reassuring","authoritative"],"minLength":1,"type":"string","x-enum-varnames":["AIGenerationTonalityPlayful","AIGenerationTonalityHilarious","AIGenerationTonalityFormal","AIGenerationTonalityCurious","AIGenerationTonalityUrgent","AIGenerationTonalityAppreciative","AIGenerationTonalityPolite","AIGenerationTonalityEnthusiastic","AIGenerationTonalityWarm","AIGenerationTonalityEmpathetic","AIGenerationTonalityDirect","AIGenerationTonalityPersuasive","AIGenerationTonalityConfident","AIGenerationTonalityRespectful","AIGenerationTonalityHelpful","AIGenerationTonalitySincere","AIGenerationTonalityEncouraging","AIGenerationTonalityInformal","AIGenerationTonalityCaring","AIGenerationTonalityDiplomatic","AIGenerationTonalityAssertive","AIGenerationTonalityReassuring","AIGenerationTonalityAuthoritative"]},"models.AttachmentUpload":{"properties":{"contentBase64":{"type":"string"},"contentType":{"type":"string"},"filename":{"type":"string"}},"type":"object"},"models.ContactInformationSource":{"enum":["linkedin","website","all","linkedin","website","all"],"type":"string","x-enum-varnames":["ContactInformationSourceLinkedin","ContactInformationSourceWebsite","ContactInformationSourceAll"]},"models.DncType":{"enum":["email","domain","linkedin"],"type":"string","x-enum-varnames":["DncTypeEmail","DncTypeDomain","DncTypeLinkedin"]},"models.GetValidatedLeadsResponseDTO":{"properties":{"processedPercentage":{"type":"integer"},"result":{"$ref":"#/components/schemas/models.LeadsESPValidationResult"}},"type":"object"},"models.LabelAppliedBy":{"enum":["system","heuristics","llm","user"],"type":"string","x-enum-varnames":["LabelAppliedBySystem","LabelAppliedByHeuristics","LabelAppliedByLLM","LabelAppliedByUser"]},"models.Language":{"enum":["russian","ukrainian","finnish","american_english","british_english","french","spanish","polish","romanian","german","lithuanian","dutch","latvian","italian","czech","hungarian","japanese","brazilian_portugese","swedish","danish","norwegian","estonian"],"type":"string","x-enum-varnames":["LanguageRussian","LanguageUkrainian","LanguageFinnish","LanguageAmericanEnglish","LanguageBritishEnglish","LanguageFrench","LanguageSpanish","LanguagePolish","LanguageRomanian","LanguageGerman","LanguageLithuanian","LanguageDutch","LanguageLatvian","LanguageItalian","LanguageCzech","LanguageHungarian","LanguageJapanese","LanguageBrazilianPortugese","LanguageSwedish","LanguageDanish","LanguageNorwegian","LanguageEstonian"]},"models.LeadESP":{"enum":["empty","gmail","gsuite","icloud","outlook","ms365","yandex","yahoo","unknown","mailcom","proofpoint","antispamsoftware"],"type":"string","x-enum-varnames":["LeadESPEmpty","LeadESPGmail","LeadESPGSuite","LeadESPICloud","LeadESPOutlook","LeadESPMS365","LeadESPYandex","LeadESPYahoo","LeadESPUnknown","LeadESPMailCom","LeadESPProofPoint","LeadESPAntiSpamSoftware"]},"models.LeadsESPValidationResult":{"additionalProperties":{"$ref":"#/components/schemas/models.LeadsValidationResult"},"type":"object"},"models.LeadsValidationResult":{"properties":{"catch_all":{"type":"integer"},"disabled":{"type":"integer"},"disposable":{"type":"integer"},"inbox_full":{"type":"integer"},"invalid":{"type":"integer"},"role_account":{"type":"integer"},"safe":{"type":"integer"},"spam_trap":{"type":"integer"},"unknown":{"type":"integer"},"unvalidated":{"type":"integer"}},"type":"object"},"models.MailboxContact":{"properties":{"email":{"type":"string"},"name":{"type":"string"}},"type":"object"},"models.MailboxProvider":{"enum":["gmail","outlook","smtp"],"type":"string","x-enum-varnames":["MailboxProviderGmail","MailboxProviderOutlook","MailboxProviderSmtp"]},"models.MailboxStatus":{"enum":["active","frozen","access_lost","deleted","inactive","pending","suspended"],"type":"string","x-enum-varnames":["MailboxStatusActive","MailboxStatusFrozen","MailboxStatusAccessLost","MailboxStatusDeleted","MailboxStatusInactive","MailboxStatusPending","MailboxStatusSuspended"]},"models.MultichannelLinkedinMessageDirection":{"enum":["inbound","outbound"],"type":"string","x-enum-varnames":["MultichannelLinkedinMessageDirectionInbound","MultichannelLinkedinMessageDirectionOutbound"]},"models.ReonEmailStatus":{"enum":["safe","invalid","disabled","disposable","inbox_full","catch_all","role_account","spamtrap","unknown","unvalidated"],"type":"string","x-enum-varnames":["ReonEmailStatusSafe","ReonEmailStatusInvalid","ReonEmailStatusDisabled","ReonEmailStatusDisposable","ReonEmailStatusInboxFull","ReonEmailStatusCatchAll","ReonEmailStatusRoleAccount","ReonEmailStatusSpamTrap","ReonEmailStatusUnknown","ReonEmailStatusUnvalidated"]},"models.ReplyType":{"enum":["ooo","bounced","lead_replied"],"type":"string","x-enum-varnames":["ReplyTypeOutOfOffice","ReplyTypeBounce","ReplyTypeLeadReplied"]},"models.SequenceStatus":{"enum":["active","draft","paused","deleted","completed","video_pending","active","paused"],"type":"string","x-enum-varnames":["SequenceStatusActive","SequenceStatusDraft","SequenceStatusPaused","SequenceStatusDeleted","SequenceStatusCompleted","SequenceStatusVideoPending"]},"models.SequenceStepVariantStatus":{"enum":["active","paused","deleted","active","paused"],"type":"string","x-enum-varnames":["SequenceStepVariantStatusActive","SequenceStepVariantStatusPaused","SequenceStepVariantStatusDeleted"]},"models.SpecialLabel":{"enum":["all","none","positive","negative","ooo","meeting_booked","meeting_completed","closed","wrong_contact"],"type":"string","x-enum-varnames":["SpecialLabelAll","SpecialLabelNone","SpecialLabelPositive","SpecialLabelNegative","SpecialLabelOutOfOffice","SpecialLabelMeetingBooked","SpecialLabelMeetingCompleted","SpecialLabelClosed","SpecialLabelWrongContact"]},"models.ThreadAgentStatus":{"enum":["replied","action_required","human_review_required","action_dismissed"],"type":"string","x-enum-varnames":["ThreadAgentStatusReplied","ThreadAgentStatusActionRequired","ThreadAgentStatusHumanReviewRequired","ThreadAgentStatusActionDismissed"]},"models.TrackingDomainStatus":{"enum":["active","pending"],"type":"string","x-enum-varnames":["TrackingDomainStatusActive","TrackingDomainStatusPending"]},"models.UpdateSequenceRequest":{"properties":{"bcc":{"type":"string"},"bounceProtectorEnabled":{"type":"boolean"},"cc":{"type":"string"},"clickTrackingEnabled":{"type":"boolean"},"companyOutreachLimitCount":{"type":"integer"},"companyOutreachLimitEnabled":{"type":"boolean"},"espMatchingEnabled":{"type":"boolean"},"finishOnClick":{"type":"boolean"},"finishOnOpen":{"type":"boolean"},"language":{"type":"string"},"listUnsubscribeEnabled":{"type":"boolean"},"localizedOptOutEnabled":{"type":"boolean"},"name":{"minLength":1,"type":"string"},"openTrackingEnabled":{"type":"boolean"},"opportunitiesValue":{"type":"number"},"optOutText":{"type":"string"},"plainTextEmailsEnabled":{"type":"boolean"},"productId":{"minLength":1,"type":"string"},"sequentialCompanySendingEnabled":{"type":"boolean"},"status":{"$ref":"#/components/schemas/models.SequenceStatus"},"stopOnDomainReplyEnabled":{"type":"boolean"},"subsequencePrimeboxLabelId":{"type":"string"},"timezone":{"minLength":1,"type":"string"},"trackOpportunitiesEnabled":{"type":"boolean"},"trackingDomainEnabled":{"type":"string"},"unsubscribeLinkEnabled":{"type":"boolean"},"unsubscribeLinkText":{"type":"string"}},"type":"object"},"webhooks.WebhookType":{"enum":["email_sent","email_opened","link_clicked","email_replied","linkedin_replied","contact_unsubscribed","email_bounced","positive_reply","negative_reply","label_changed","dnc_added","meeting_booked","meeting_completed","email_sent","email_opened","link_clicked","email_replied","linkedin_replied","contact_unsubscribed","email_bounced","positive_reply","negative_reply","label_changed","dnc_added","meeting_booked","meeting_completed"],"type":"string","x-enum-varnames":["WebhookTypeEmailSent","WebhookTypeEmailOpened","WebhookTypeLinkClicked","WebhookTypeEmailReplied","WebhookTypeLinkedinReplied","WebhookTypeContactUnsubscribed","WebhookTypeEmailBounced","WebhookTypePositiveReply","WebhookTypeNegativeReply","WebhookTypeLabelChanged","WebhookTypeDNCAdded","WebhookTypeMeetingBooked","WebhookTypeMeetingCompleted"]}},"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"Authorization","type":"apiKey"}}},"externalDocs":{"description":"","url":""},"info":{"description":"Get mailboxes associated with the workspace.","termsOfService":"https://www.salesforge.ai/terms","title":"Salesforge API","version":"2.0"},"openapi":"3.1.0","paths":{"/me":{"get":{"description":"Validates the provided API key and returns basic information about it.","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.CheckAPIKeyResponse"}}},"description":"API key is valid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Invalid API key"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get current user info","tags":["auth"]}},"/workspaces":{"get":{"description":"Get workspaces associated with the account.","parameters":[{"description":"Limit","in":"query","name":"limit","schema":{"default":10,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}}},"description":"List of workspaces"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get workspaces","tags":["workspaces"]},"post":{"description":"Create a new workspace for the account.","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object"},{"$ref":"#/components/schemas/api.CreateWorkspaceRequest","description":"Workspace to create","summary":"workspace"}]}}},"description":"Workspace to create","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.WorkspaceResponse"}}},"description":"Created workspace"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create workspace","tags":["workspaces"]}},"/workspaces/{workspaceID}":{"get":{"description":"Get workspace information.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.WorkspaceResponse"}}},"description":"Workspace"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Workspace Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get workspace","tags":["workspaces"]}},"/workspaces/{workspaceID}/contacts":{"get":{"description":"Get contacts associated with the workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Limit","in":"query","name":"limit","schema":{"default":10,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}},{"description":"Filter by tag ids","in":"query","name":"tag_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Filter by contacts not in sequence","in":"query","name":"not_in_sequence_id","schema":{"type":"string"}},{"description":"Filter by validation statuses","in":"query","name":"validation_statuses[]","schema":{"items":{"enum":["safe","invalid","disabled","disposable","inbox_full","catch_all","role_account","spamtrap","unknown","unvalidated"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}}},"description":"List of contacts"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get contacts","tags":["contacts"]},"post":{"description":"Create a new contact.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.CreateSimpleLeadRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.ContactResponse"}}},"description":"Contact"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create contact","tags":["contacts"]}},"/workspaces/{workspaceID}/contacts/bulk":{"post":{"description":"Create up to 100 contacts in bulk.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.BulkCreateContactsRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.BulkCreateContactsResponse"}}},"description":"Contacts"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Bulk create contacts","tags":["contacts"]}},"/workspaces/{workspaceID}/contacts/{contactID}":{"get":{"description":"Get contact information.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Contact ID","in":"path","name":"contactID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.ContactResponse"}}},"description":"Contact"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Contact Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get contact","tags":["contacts"]}},"/workspaces/{workspaceID}/custom-vars":{"get":{"description":"Get a list of custom variables associated to a workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Limit","in":"query","name":"limit","schema":{"default":10,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}}},"description":"List of custom variables"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get Custom Variables","tags":["custom vars"]}},"/workspaces/{workspaceID}/dnc":{"get":{"description":"Get a paginated list of DNC entries for a workspace. Use this to sync a full DNC list into an external system.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Limit","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}}},"description":"List of DNCs"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get DNCs","tags":["dnc"]}},"/workspaces/{workspaceID}/dnc/bulk":{"post":{"description":"Create multiple DNC entries for a workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.BulkCreateDNCRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.BulkCreateDNCResponse"}}},"description":"Created DNCs"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Bulk create DNCs","tags":["dnc"]}},"/workspaces/{workspaceID}/integrations/webhooks":{"get":{"description":"Get registered webhooks associated with the workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Limit","in":"query","name":"limit","schema":{"default":10,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}}},"description":"List of webhooks"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get webhooks","tags":["webhooks"]},"post":{"description":"Create a new webhook.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.CreateWebhookRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.WebhookResponse"}}},"description":"Created webhook"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create webhook","tags":["webhooks"]}},"/workspaces/{workspaceID}/integrations/webhooks/{webhookID}":{"get":{"description":"Get webhook information.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Webhook ID","in":"path","name":"webhookID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.WebhookResponse"}}},"description":"Webhook"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Webhook not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get webhook","tags":["webhooks"]}},"/workspaces/{workspaceID}/mailboxes":{"get":{"description":"Get mailboxes associated with the workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Limit","in":"query","name":"limit","schema":{"default":10,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}},{"description":"Filter by status","in":"query","name":"statuses[]","schema":{"items":{"enum":["active","access_lost","pending"],"type":"string"},"type":"array"},"style":"form"},{"description":"Filter by mailbox IDs","in":"query","name":"mailbox_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Exclude mailbox IDs","in":"query","name":"excluded_mailbox_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Search query","in":"query","name":"search","schema":{"type":"string"}},{"description":"Filter by tag IDs","in":"query","name":"tag_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Exclude tag IDs","in":"query","name":"not_tag_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Filter by mailbox addresses","in":"query","name":"addresses[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Status criteria","in":"query","name":"status_criteria","schema":{"default":"all","enum":["all","active","warm","pending","suspended","disconnected","recommendations"],"type":"string"}},{"description":"Statuses criteria","in":"query","name":"statuses_criteria","schema":{"default":"all","items":{"enum":["all","active","warm","pending","suspended","disconnected","recommendations"],"type":"string"},"type":"array"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}}},"description":"List of mailboxes"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get mailboxes","tags":["mailboxes"]}},"/workspaces/{workspaceID}/mailboxes/oauth-link":{"post":{"description":"Returns a Google or Outlook OAuth URL for connecting a mailbox. After the user authorizes, they are redirected to redirectUrl. The mailbox is auto-provisioned in Warmforge under the matching workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.CreateMailboxOAuthLinkRequest","description":"OAuth link request","summary":"request"}}},"description":"OAuth link request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.MailboxOAuthLinkResponse"}}},"description":"OAuth authorization URL"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create mailbox OAuth link","tags":["mailboxes"]}},"/workspaces/{workspaceID}/mailboxes/{mailboxID}":{"get":{"description":"Get mailbox information.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Mailbox ID","in":"path","name":"mailboxID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.MailboxResponse"}}},"description":"Mailbox"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Mailbox not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get mailbox","tags":["mailboxes"]},"patch":{"description":"Update mailbox operational settings.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Mailbox ID","in":"path","name":"mailboxID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object"},{"$ref":"#/components/schemas/api.UpdateMailboxRequest","description":"Mailbox update request (dailyEmailLimit max: 100)","summary":"request"}]}}},"description":"Mailbox update request (dailyEmailLimit max: 100)","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.MailboxResponse"}}},"description":"Mailbox"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Mailbox not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Update mailbox","tags":["mailboxes"]}},"/workspaces/{workspaceID}/mailboxes/{mailboxID}/emails/{emailID}/attachments":{"get":{"description":"Downloads all attachments of a thread email as a ZIP file.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Mailbox ID","in":"path","name":"mailboxID","required":true,"schema":{"type":"string"}},{"description":"Email ID","in":"path","name":"emailID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/zip":{"schema":{"format":"binary","type":"string"}}},"description":"ZIP file with attachments"},"204":{"description":"No Content when email has no attachments"},"400":{"content":{"application/zip":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Attachments not available"},"404":{"content":{"application/zip":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Email or thread not found"},"500":{"content":{"application/zip":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Download thread email attachments","tags":["email"]}},"/workspaces/{workspaceID}/mailboxes/{mailboxID}/emails/{emailID}/attachments/{contentID}":{"get":{"description":"Streams a single attachment by content ID.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Mailbox ID","in":"path","name":"mailboxID","required":true,"schema":{"type":"string"}},{"description":"Email ID","in":"path","name":"emailID","required":true,"schema":{"type":"string"}},{"description":"Attachment content ID (as returned in email attachments metadata)","in":"path","name":"contentID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"Binary attachment"},"404":{"content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Thread, email or attachment not found"},"500":{"content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Download thread email attachment by content ID","tags":["email"]}},"/workspaces/{workspaceID}/mailboxes/{mailboxID}/emails/{emailID}/reply":{"post":{"description":"Create a new Email Reply.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Mailbox ID","in":"path","name":"mailboxID","required":true,"schema":{"type":"string"}},{"description":"Email ID","in":"path","name":"emailID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.ReplyRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"204":{"description":"No content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create Email Reply","tags":["email"]}},"/workspaces/{workspaceID}/mailboxes/{mailboxID}/threads/{threadID}":{"get":{"deprecated":true,"description":"Get thread information.\nDeprecated: use GET /workspaces/{workspaceID}/threads/{threadID} instead, which also supports mailbox-less (LinkedIn-only) threads.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Mailbox ID","in":"path","name":"mailboxID","required":true,"schema":{"type":"string"}},{"description":"Thread ID","in":"path","name":"threadID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.ThreadResponse"}}},"description":"Thread"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Thread Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get thread","tags":["threads"]}},"/workspaces/{workspaceID}/mailboxes/{mailboxID}/threads/{threadID}/label":{"put":{"description":"Update the label of a thread.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Mailbox ID","in":"path","name":"mailboxID","required":true,"schema":{"type":"string"}},{"description":"Thread ID","in":"path","name":"threadID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object"},{"$ref":"#/components/schemas/api.PublicUpdateThreadLabelRequest","description":"Label update request","summary":"body"}]}}},"description":"Label update request","required":true},"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Update thread label","tags":["threads"]}},"/workspaces/{workspaceID}/primebox-labels":{"get":{"description":"Get a paginated list of primebox labels associated with the workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Limit","in":"query","name":"limit","schema":{"default":10,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.PrimeboxLabelListResponse"}}},"description":"List of labels"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get workspace primebox labels","tags":["threads"]}},"/workspaces/{workspaceID}/products":{"get":{"description":"Get products associated with the workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Limit","in":"query","name":"limit","schema":{"default":10,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}}},"description":"List of products"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get products","tags":["products"]},"post":{"description":"Create a new product.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.CreateProductRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.ProductResponse"}}},"description":"Created product"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create Product","tags":["products"]}},"/workspaces/{workspaceID}/products/{productID}":{"get":{"description":"Get product information.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Product ID","in":"path","name":"productID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.ProductResponse"}}},"description":"Product"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Product Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get product","tags":["products"]}},"/workspaces/{workspaceID}/sending-data":{"get":{"description":"Get sending data for sequences in a workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Limit","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}},{"description":"Filter by sequences","in":"query","name":"sequence_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}}},"description":"List of sequence contact sending data"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get sequence contact sending data","tags":["sequences"]}},"/workspaces/{workspaceID}/sequence-metrics":{"get":{"description":"Get sequence metrics associated with the workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Filter by product ID","in":"query","name":"product_id","schema":{"type":"string"}},{"description":"Filter by sequence IDs","in":"query","name":"sequence_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.WorkspaceSequenceMetricsResponse"}}},"description":"Sequence metrics"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get workspace sequence metrics","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences":{"get":{"description":"Returns every sequence in the workspace. Multichannel sequences are listed first, followed by legacy sequences to fill the requested page size.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Limit","in":"query","name":"limit","schema":{"default":10,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}},{"description":"Filter by status","in":"query","name":"statuses[]","schema":{"items":{"enum":["active","paused","draft","completed"],"type":"string"},"type":"array"},"style":"form"},{"description":"Filter by product ID","in":"query","name":"product_id","schema":{"type":"string"}},{"description":"Filter by sequence IDs","in":"query","name":"sequence_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Filter by sequence type","in":"query","name":"type","schema":{"enum":["legacy","multichannel"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}}},"description":"List of sequences"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get workspace sequences","tags":["sequences"]},"post":{"description":"Create a new sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.CreateSequenceRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.SequenceResponse"}}},"description":"Created sequence"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create sequence","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}":{"delete":{"description":"Delete a sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Sequence deleted successfully"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Delete sequence","tags":["sequences"]},"get":{"description":"Get a specific sequence by ID.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.SequenceResponse"}}},"description":"Sequence"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Sequence Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get sequence by ID","tags":["sequences"]},"put":{"description":"Update an existing sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/models.UpdateSequenceRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.SequenceResponse"}}},"description":"Updated sequence"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Update sequence","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/analytics":{"get":{"description":"Get analytics for a sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}},{"description":"From date","in":"query","name":"from_date","required":true,"schema":{"format":"date","type":"string"}},{"description":"To date","in":"query","name":"to_date","required":true,"schema":{"format":"date","type":"string"}},{"description":"Timezone","in":"query","name":"timezone","schema":{"default":"UTC","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.SequenceAnalyticsResponse"}}},"description":"Sequence analytics"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Sequence Does Not Exist"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get sequence analytics","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/contacts":{"put":{"description":"Assign contacts to a sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.AssignContactsRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"204":{"description":"Contacts assigned successfully"},"402":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"message":{"type":"string"}},"type":"object"}}},"description":"Not Enough Contact Credits"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Insufficient active contact capacity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Assign contacts","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/contacts/count":{"get":{"description":"Get the number of contacts assigned to a sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}},{"description":"Filter by status","in":"query","name":"statuses[]","schema":{"items":{"enum":["ooo","bounced","replied","failed","active","paused","finished","dnc","deleted","unsubscribed"],"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.SequenceContactsCountResponse"}}},"description":"Contacts count"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get sequence contacts count","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/contacts/validation/confirm":{"post":{"description":"Confirm validation results for contacts assigned to a sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.ConfirmSequenceContactValidationResultRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"204":{"description":"Validation results confirmed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Confirm validation results","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/contacts/validation/result":{"get":{"description":"Get sequence contact validation results.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.SequenceContactValidationResultsResponse"}}},"description":"Validation result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"No validation is currently in progress"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get sequence contact validation results","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/contacts/validation/skip":{"post":{"description":"Skip validation results for contacts assigned to a sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Validation results skipped"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Skip validation results","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/contacts/validation/start":{"post":{"description":"Start sequence contact validation.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Validation started"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Nothing to validate"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Not Enough Contact Validation Credits"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Start sequence contact validation","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/contacts/validation/validate":{"post":{"deprecated":true,"description":"Validate contacts assigned to a sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/models.GetValidatedLeadsResponseDTO"}}},"description":"Validation result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Nothing to validate"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Not Enough Contact Validation Credits"},"408":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Request Timeout"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Validate sequence contacts","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/import-lead":{"put":{"description":"Import lead to a sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.CreateSimpleLeadRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"204":{"description":"Lead imported successfully"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Insufficient active contact capacity"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Import lead","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/mailboxes":{"put":{"description":"Assign mailboxes to a sequence.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.AssignMailboxesRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"204":{"description":"Mailboxes assigned successfully"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Assign mailboxes","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/schedules":{"put":{"description":"Update an existing sequence's schedules.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.UpdateSequenceSchedulesRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.SequenceSchedulesResponse"}}},"description":"Updated sequence schedules"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Update sequence schedules","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/status":{"put":{"description":"Update a sequence's status.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.UpdateSequenceStatusRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"204":{"description":"Sequence status updated successfully"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Update sequence status","tags":["sequences"]}},"/workspaces/{workspaceID}/sequences/{sequenceID}/steps":{"put":{"description":"Update an existing sequence's steps.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Sequence ID","in":"path","name":"sequenceID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.UpdateSequenceStepsRequest","description":"Request body","summary":"request"}}},"description":"Request body","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.SequenceStepsResponse"}}},"description":"Updated sequence steps"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Update sequence steps","tags":["sequences"]}},"/workspaces/{workspaceID}/threads":{"get":{"description":"Get a list of threads associated with the workspace.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Limit","in":"query","name":"limit","schema":{"default":10,"type":"integer"}},{"description":"Offset","in":"query","name":"offset","schema":{"default":0,"type":"integer"}},{"description":"Filter by mailboxes","in":"query","name":"mailbox_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Filter by agents","in":"query","name":"agent_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Filter by sequences","in":"query","name":"sequence_ids[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Filter by positive/negative sentiment","in":"query","name":"positive","schema":{"type":"boolean"}},{"description":"Filter criteria (e.g. all, unread, archived)","in":"query","name":"filter","schema":{"type":"string"}},{"description":"Filter by label IDs","in":"query","name":"labels[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Exclude label IDs","in":"query","name":"exclude_labels[]","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Search query","in":"query","name":"q","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/data"}],"properties":{"data":{},"limit":{"type":"integer"},"offset":{"type":"integer"},"total":{"type":"integer"}},"type":"object"}}},"description":"List of threads"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get workspace threads","tags":["threads"]}},"/workspaces/{workspaceID}/threads/{threadID}":{"get":{"description":"Get thread information for a workspace thread. Supports both mailbox (email)\nthreads and mailbox-less (LinkedIn-only) threads created through multichannel\nsequence execution.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Thread ID","in":"path","name":"threadID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.ThreadResponse"}}},"description":"Thread"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Thread Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get thread","tags":["threads"]}},"/workspaces/{workspaceID}/threads/{threadID}/linkedin/messages/{messageID}/attachments":{"get":{"description":"Downloads all attachments for a LinkedIn message as a ZIP archive.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Thread ID","in":"path","name":"threadID","required":true,"schema":{"type":"string"}},{"description":"LinkedIn message ID","in":"path","name":"messageID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/zip":{"schema":{"format":"binary","type":"string"}}},"description":"ZIP file with attachments"},"204":{"description":"No Content when the LinkedIn message has no attachments"},"404":{"content":{"application/zip":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Thread or LinkedIn message not found"},"500":{"content":{"application/zip":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Download LinkedIn message attachments","tags":["linkedin"]}},"/workspaces/{workspaceID}/threads/{threadID}/linkedin/messages/{messageID}/attachments/{attachmentID}":{"get":{"description":"Streams a single LinkedIn attachment by attachment ID.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Thread ID","in":"path","name":"threadID","required":true,"schema":{"type":"string"}},{"description":"LinkedIn message ID","in":"path","name":"messageID","required":true,"schema":{"type":"string"}},{"description":"LinkedIn attachment ID","in":"path","name":"attachmentID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"Binary attachment"},"404":{"content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Thread, LinkedIn message or attachment not found"},"500":{"content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Download LinkedIn message attachment","tags":["linkedin"]}},"/workspaces/{workspaceID}/threads/{threadID}/linkedin/reply":{"post":{"description":"Sends a LinkedIn reply for the contact associated with the thread.","parameters":[{"description":"Workspace ID","in":"path","name":"workspaceID","required":true,"schema":{"type":"string"}},{"description":"Thread ID","in":"path","name":"threadID","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object"},{"$ref":"#/components/schemas/api.ReplyToLinkedinRequest","description":"Reply body","summary":"request"}]}}},"description":"Reply body","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api.ThreadLinkedinMessageResponse"}}},"description":"Created LinkedIn reply"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Thread not found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/errors.Error"}}},"description":"Internal Server Error"}},"security":[{"ApiKeyAuth":[]}],"summary":"Create LinkedIn reply","tags":["linkedin"]}}},"security":[{"ApiKeyAuth":[]}],"servers":[{"url":"https://api.salesforge.ai/public/v2"}]}