{"components":{"headers":{"ChangedSinceSnapshot":{"description":"Items matching the filters that changed after the first page; re-list to see them.","schema":{"type":"integer"}},"NextCursor":{"description":"Cursor for the next page of the same snapshot; empty when complete.","schema":{"type":"string"}},"ResultComplete":{"description":"true when this page ends the result set; false means follow X-Next-Cursor.","schema":{"type":"boolean"}}},"parameters":{"ClientId":{"in":"path","name":"clientId","required":true,"schema":{"type":"string","x-id":"cli"}},"DomainId":{"in":"path","name":"domainId","required":true,"schema":{"type":"string","x-id":"dom"}},"IdempotencyKey":{"description":"Repeat-safe key; the same key with a different request is rejected.","in":"header","name":"Idempotency-Key","schema":{"type":"string"}},"PageCursor":{"description":"Opaque cursor from X-Next-Cursor; continues the same snapshot.","in":"query","name":"cursor","schema":{"type":"string"}},"PageLimit":{"description":"Page size (default 200, at most 500).","in":"query","name":"limit","schema":{"maximum":500,"minimum":1,"type":"integer"}},"PublicIdempotencyKey":{"description":"Repeat-safe key for a public form: a random value of at least 16 characters, kept for retries of one submission. A repeat returns the original response; the same key with a different request is rejected.","in":"header","name":"Idempotency-Key","schema":{"maxLength":200,"minLength":16,"type":"string"}},"WorkspaceId":{"description":"Workspace identifier.","in":"path","name":"workspaceId","required":true,"schema":{"type":"string","x-id":"ws"}}},"responses":{"Error":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"A stable, machine-readable error."}},"schemas":{"AcceptInvitationInput":{"properties":{"display_name":{"type":"string"},"email_code":{"description":"Required when a new account accepts: the code emailed to the invited address. Omit it to receive one.","type":"string"},"password":{"type":"string"},"token":{"type":"string"}},"required":["token"],"type":"object"},"Accepted":{"properties":{"dev_token":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"}},"required":["status"],"type":"object"},"AcceptedInvitation":{"properties":{"invitation":{"$ref":"#/components/schemas/Invitation"},"session":{"$ref":"#/components/schemas/Session"}},"required":["invitation"],"type":"object"},"ActivationResult":{"properties":{"basis":{"type":"string"},"capacity":{"type":"integer"},"counted_domains_after":{"type":"integer"},"domain_id":{"type":"string","x-id":"dom"},"next_step":{"additionalProperties":true,"type":"object"},"reason":{"type":"string"},"services":{"items":{"type":"string"},"type":"array"},"status":{"enum":["activated","already_active","capacity_required","not_ready","blocked","not_found"],"type":"string"}},"required":["domain_id","status","reason","counted_domains_after","capacity"],"type":"object"},"AddDomainResult":{"properties":{"challenge":{"allOf":[{"$ref":"#/components/schemas/Challenge"}],"description":"The added domain's access TXT record, issued with the domain, so the name and value can be published straight away."},"domain":{"$ref":"#/components/schemas/Domain"},"input":{"type":"string"},"main_domain":{"description":"For a subdomain result: the main (registrable) domain to offer instead.","type":"string"},"reason":{"type":"string"},"status":{"description":"added, duplicate, invalid, subdomain (only with offer_main_domain), family_owned_by_other_client or demo_internal_conflict.","type":"string"}},"required":["input","status","reason"],"type":"object"},"AgreementVersion":{"properties":{"kind":{"type":"string"},"status":{"description":"The publication state of this agreement text.","type":"string"},"summary":{"type":"string"},"version":{"type":"string"}},"required":["kind","version","status","summary"],"type":"object"},"Authority":{"properties":{"agreement_ref":{"type":"string"},"basis":{"type":"string"},"client_contact":{"type":"string"},"client_id":{"type":"string","x-id":"cli"},"domains":{"description":"Empty means all of the client's domains.","items":{"type":"string"},"type":"array"},"end_reason":{"nullable":true,"type":"string"},"ended_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"type":"string","x-id":"auth"},"recorded_at":{"format":"date-time","type":"string"},"recorded_by":{"type":"string","x-id":"prn"},"scope":{"items":{"enum":["process_reports","manage_dns","hosted_authentication","historical_import"],"type":"string"},"type":"array"},"status":{"type":"string"}},"required":["id","client_id","basis","scope","domains","client_contact","agreement_ref","status","recorded_by","recorded_at"],"type":"object"},"AuthorityChange":{"properties":{"action":{"enum":["narrow","revoke","dispute"],"type":"string"},"confirmed_with":{"type":"string"},"reason":{"type":"string"},"scope":{"items":{"type":"string"},"type":"array"}},"required":["action","reason"],"type":"object"},"AuthorityInput":{"properties":{"agreement_ref":{"type":"string"},"basis":{"type":"string"},"client_contact":{"type":"string"},"domains":{"items":{"type":"string"},"type":"array"},"scope":{"items":{"type":"string"},"type":"array"}},"required":["basis","scope","client_contact","agreement_ref"],"type":"object"},"AuthorityStatus":{"properties":{"client_authority":{"items":{"$ref":"#/components/schemas/Authority"},"type":"array"},"control_status":{"type":"string"},"domain_id":{"type":"string","x-id":"dom"},"recent_checks":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"recheck_intervals":{"additionalProperties":{"type":"string"},"type":"object"},"write_hold":{"nullable":true,"type":"string"}},"required":["domain_id","control_status","recheck_intervals","recent_checks","client_authority"],"type":"object"},"Batch":{"properties":{"description":{"type":"string"},"id":{"type":"string","x-id":"batch"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"items_outside_your_scope":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"},"total_items":{"type":"integer"}},"required":["id","name","status","items"],"type":"object"},"BillingPortalSession":{"properties":{"expires_at":{"format":"date-time","type":"string"},"notices":{"items":{"type":"string"},"type":"array"},"session":{"type":"string"},"url":{"type":"string"}},"required":["url","session","expires_at","notices"],"type":"object"},"BimiAsset":{"properties":{"checks":{"additionalProperties":true,"description":"The checks it passed; for a certificate its subject, issuer, names and validity.","type":"object"},"created_at":{"format":"date-time","type":"string"},"domain_id":{"type":"string","x-id":"dom"},"id":{"type":"string","x-id":"none"},"kind":{"enum":["logo","certificate"],"type":"string"},"published":{"description":"The file was written to storage and read back, so the CDN serves it. A BIMI change can name the asset only then; the next maintenance pass publishes a new upload.","type":"boolean"},"sha256":{"type":"string"},"size":{"type":"integer"},"status":{"enum":["active","retired"],"type":"string"},"url":{"description":"The file's public URL, served by MailGlo's BIMI CDN from object storage; a BIMI change puts it in l= or a=.","type":"string"}},"required":["id","domain_id","kind","url","sha256","size","checks","status","published","created_at"],"type":"object"},"CancellationPreview":{"properties":{"can_manage":{"description":"Whether the caller may open the billing portal to cancel or keep renewal: an owner or Administrator holding workspace-wide billing.manage. A Billing admin reads renewal but can't change it.","type":"boolean"},"cancel_at_period_end":{"type":"boolean"},"effective_at":{"format":"date-time","nullable":true,"type":"string"},"final_billing_state":{"type":"string"},"hosted_exit_obligations":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"notices":{"items":{"type":"string"},"type":"array"},"report_export_deadline":{"format":"date-time","nullable":true,"type":"string"}},"required":["final_billing_state","hosted_exit_obligations","notices","cancel_at_period_end","can_manage"],"type":"object"},"Case":{"properties":{"assignee":{"nullable":true,"type":"string","x-id":"prn"},"assignee_name":{"nullable":true,"type":"string"},"client_id":{"type":"string","x-id":"cli"},"client_name":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"domain_id":{"nullable":true,"type":"string","x-id":"dom"},"due_at":{"format":"date-time","nullable":true,"type":"string"},"fqdn":{"nullable":true,"type":"string"},"id":{"type":"string","x-id":"case"},"kind":{"type":"string"},"number":{"format":"int64","type":"integer"},"overdue":{"type":"boolean"},"resolution":{"nullable":true,"type":"string"},"sender_id":{"nullable":true,"type":"string","x-id":"snd"},"severity":{"type":"string"},"source":{"type":"string"},"state":{"type":"string"},"title":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"version":{"type":"integer"},"waiting_on":{"nullable":true,"type":"string"},"workspace_id":{"type":"string","x-id":"ws"}},"required":["id","number","workspace_id","client_id","client_name","kind","title","state","severity","source","version","created_at","updated_at","overdue"],"type":"object"},"CatalogVersion":{"properties":{"approval":{"description":"The approval state of these terms; operators only.","type":"string"},"id":{"type":"string","x-id":"cat"},"published_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"type":"string"},"terms":{"additionalProperties":true,"type":"object"},"version":{"type":"string"}},"required":["id","version","status","terms"],"type":"object"},"Challenge":{"properties":{"domain_id":{"type":"string","x-id":"dom"},"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string","x-id":"chk"},"last_checked_at":{"description":"When MailGlo last looked for the record, by a manual or an automatic check.","format":"date-time","nullable":true,"type":"string"},"method":{"type":"string"},"next_check_at":{"description":"When MailGlo next checks automatically. Null when no further check is scheduled.","format":"date-time","nullable":true,"type":"string"},"notice":{"type":"string"},"record_name":{"type":"string"},"record_type":{"type":"string"},"record_value":{"type":"string"},"status":{"type":"string"},"zone":{"description":"On reading the active value: the DNS zone that holds the domain, as the DNS changes session gives it. Absent when it isn't known; then use record_name in full.","type":"string"}},"required":["id","domain_id","method","record_name","record_type","record_value","status","expires_at","notice"],"type":"object"},"ChangePlan":{"properties":{"affected_senders":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"after":{"additionalProperties":true,"type":"object"},"applied_at":{"format":"date-time","nullable":true,"type":"string"},"approvals":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"authority_version":{"format":"int64","type":"integer"},"base_fingerprint":{"type":"string"},"base_version":{"type":"integer"},"batch_id":{"nullable":true,"type":"string","x-id":"batch"},"before":{"additionalProperties":true,"type":"object"},"case_id":{"nullable":true,"type":"string","x-id":"case"},"check":{"additionalProperties":true,"nullable":true,"type":"object"},"client_id":{"type":"string","x-id":"cli"},"client_name":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"created_by":{"type":"string","x-id":"prn"},"domain_id":{"type":"string","x-id":"dom"},"evidence":{"additionalProperties":true,"type":"object"},"execution_mode":{"type":"string"},"external_tasks":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"fqdn":{"type":"string"},"id":{"type":"string","x-id":"plan"},"kind":{"type":"string"},"observation_steps":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"operations":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"plan_version":{"type":"integer"},"prerequisites":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"proposed":{"additionalProperties":true,"type":"object"},"purpose":{"type":"string"},"restoration":{"additionalProperties":true,"type":"object"},"restores_plan":{"nullable":true,"type":"string","x-id":"plan"},"review":{"description":"The change page's before and after: what the change means for mail, each fact before and after, and each record it writes as a line-by-line difference. Built from the plan's stored states.","properties":{"copy":{"description":"The full new value to publish, when the record difference shortens it.","type":"string"},"facts":{"items":{"$ref":"#/components/schemas/PlanFact"},"type":"array"},"meaning":{"type":"string"},"notes":{"description":"What to read before approving.","items":{"type":"string"},"type":"array"},"records":{"items":{"properties":{"label":{"type":"string"},"lines":{"description":"One part of the record per line: op \"-\" removed, \"+\" added, \" \" kept.","items":{"properties":{"op":{"enum":["-","+"," "],"type":"string"},"text":{"type":"string"}},"required":["op","text"],"type":"object"},"type":"array"},"name":{"type":"string"}},"required":["label","name","lines"],"type":"object"},"type":"array"},"technical":{"description":"Rows shown on request: what an evaluation counted, what undoing the change does, the version. Only label and after are set.","items":{"$ref":"#/components/schemas/PlanFact"},"type":"array"}},"required":["meaning","facts","records","notes","technical"],"type":"object"},"risk_acceptance":{"additionalProperties":true,"nullable":true,"type":"object"},"standing_policy_id":{"nullable":true,"type":"string","x-id":"pol"},"standing_policy_version":{"nullable":true,"type":"integer"},"status":{"type":"string"},"summary":{"description":"One line per record the change writes, for its review: what DNS holds now, what it will hold and what that means for mail.","items":{"properties":{"after":{"type":"string"},"meaning":{"type":"string"},"name":{"type":"string"},"notes":{"description":"What to read before approving: warnings, entries kept or rewritten, and the order of a hosted cutover. The first line carries them.","items":{"type":"string"},"type":"array"},"now":{"type":"string"},"record":{"type":"string"}},"required":["record","name","now","after","meaning","notes"],"type":"object"},"type":"array"},"target_name":{"type":"string"},"uncertainty":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"verifications":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"viewer_rights":{"description":"Change rights the reader holds on this plan now, within any share scope; every action checks them again.","items":{"type":"string"},"type":"array"},"workspace_id":{"type":"string","x-id":"ws"}},"required":["id","workspace_id","client_id","client_name","domain_id","fqdn","kind","target_name","purpose","execution_mode","plan_version","base_version","base_fingerprint","authority_version","proposed","before","after","affected_senders","prerequisites","uncertainty","observation_steps","restoration","evidence","status","created_by","created_at","updated_at","approvals","operations","verifications","external_tasks","summary","review"],"type":"object"},"ChatChannel":{"properties":{"address_hint":{"description":"The address's host and last four characters.","type":"string","x-id":"none"},"categories":{"items":{"type":"string"},"type":"array"},"client_id":{"nullable":true,"type":"string","x-id":"cli"},"client_name":{"nullable":true,"type":"string"},"created_at":{"format":"date-time","type":"string"},"disabled_reason":{"nullable":true,"type":"string"},"failing_since":{"format":"date-time","nullable":true,"type":"string"},"id":{"type":"string","x-id":"whk"},"last_success_at":{"format":"date-time","nullable":true,"type":"string"},"last_test_error":{"description":"Why the latest test message didn't arrive.","nullable":true,"type":"string"},"name":{"type":"string"},"quiet_end":{"nullable":true,"type":"integer"},"quiet_start":{"nullable":true,"type":"integer"},"service":{"enum":["slack","teams"],"type":"string"},"status":{"description":"pending_verification: waiting for someone to confirm the test arrived.","enum":["pending_verification","active","disabled"],"type":"string"},"test_delivered":{"description":"The latest test message reached the channel.","type":"boolean"},"timezone":{"nullable":true,"type":"string"},"verified_at":{"format":"date-time","nullable":true,"type":"string"}},"required":["id","service","name","address_hint","categories","client_id","client_name","status","created_at","verified_at","last_success_at","failing_since","disabled_reason","test_delivered","last_test_error","quiet_start","quiet_end","timezone"],"type":"object"},"ChatChannelList":{"properties":{"categories":{"items":{"type":"string"},"type":"array"},"channels":{"items":{"$ref":"#/components/schemas/ChatChannel"},"type":"array"},"included":{"description":"The plan includes real-time alerts, which team chat needs.","type":"boolean"},"limit":{"type":"integer"}},"required":["channels","categories","included","limit"],"type":"object"},"Checkout":{"properties":{"founding_slot":{"type":"string"},"id":{"type":"string","x-id":"co"},"notice":{"type":"string"},"payment_url":{"type":"string"},"provider_session":{"type":"string"},"quote_id":{"type":"string","x-id":"quote"},"status":{"type":"string"},"summary":{"additionalProperties":true,"type":"object"}},"required":["quote_id","status","summary","notice"],"type":"object"},"Client":{"properties":{"contact_email":{"nullable":true,"type":"string"},"created_at":{"format":"date-time","type":"string"},"domain_count":{"type":"integer"},"id":{"type":"string","x-id":"cli"},"kind":{"enum":["client","internal","demo"],"type":"string"},"monitored_count":{"description":"The client's domains MailGlo monitors: active, paused or leaving.","type":"integer"},"name":{"type":"string"},"setup_count":{"description":"The client's domains still being set up. Exited domains are in neither count.","type":"integer"},"setup_step":{"description":"In the client list, the client's next setup step: 1 record their permission, 2 add their domains, 3 share a report. Absent once all three are done, for your own domains, and when you may not read the client's configuration.","maximum":3,"minimum":1,"type":"integer"},"status":{"type":"string"},"technician_principal_ids":{"items":{"type":"string","x-id":"prn"},"type":"array"},"workspace_id":{"type":"string","x-id":"ws"}},"required":["id","workspace_id","name","kind","status","technician_principal_ids","domain_count","monitored_count","setup_count","created_at"],"type":"object"},"ClientAlertRoute":{"properties":{"audience":{"enum":["both","team","client"],"type":"string"},"category":{"enum":["approval_requests","coverage","automatic_fixes"],"type":"string"},"label":{"type":"string"}},"required":["category","label","audience"],"type":"object"},"ClientInput":{"properties":{"contact_email":{"type":"string"},"name":{"type":"string"},"technician_principal_ids":{"items":{"type":"string","x-id":"prn"},"type":"array"}},"required":["name"],"type":"object"},"ConfigImport":{"properties":{"created_at":{"format":"date-time","type":"string"},"customer_supplied":{"additionalProperties":{"type":"string"},"type":"object"},"dkim_selectors":{"items":{"type":"string"},"type":"array"},"domain_id":{"type":"string","x-id":"dom"},"gaps":{"items":{"$ref":"#/components/schemas/ImportGap"},"type":"array"},"id":{"type":"string","x-id":"cfgimp"},"observed":{"$ref":"#/components/schemas/Inspection"},"preserve_plan":{"additionalProperties":true,"type":"object"},"restoration_plan":{"additionalProperties":true,"type":"object"},"reviewed_at":{"format":"date-time","nullable":true,"type":"string"}},"required":["id","domain_id","customer_supplied","dkim_selectors","gaps","preserve_plan","restoration_plan","created_at"],"type":"object"},"ContractSummary":{"properties":{"domains":{"type":"integer"},"ends_on":{"description":"The last day in force (UTC).","format":"date","type":"string"},"history_days":{"type":"integer"},"hosted_spf_senders":{"description":"0 is unlimited.","type":"integer"},"invoice_interval":{"enum":["month","quarter","year","term"],"type":"string"},"invoice_interval_label":{"type":"string"},"invoice_reference":{"type":"string"},"kind":{"enum":["enterprise"],"type":"string"},"note":{"type":"string"},"plan":{"type":"string"},"starts_on":{"format":"date","type":"string"},"users":{"description":"0 is unlimited.","type":"integer"}},"required":["plan","kind","domains","users","history_days","hosted_spf_senders","invoice_interval","invoice_interval_label","starts_on","ends_on","invoice_reference","note"],"type":"object"},"Coverage":{"properties":{"conflicts_in_review":{"type":"integer"},"domain_id":{"type":"string","x-id":"dom"},"evaluated_at":{"format":"date-time","type":"string"},"expected_reporting_delay_hours":{"type":"integer"},"failing_messages":{"format":"int64","type":"integer"},"freshness_threshold_hours":{"type":"integer"},"gaps":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"latest_receipt":{"format":"date-time","nullable":true,"type":"string"},"messages":{"format":"int64","type":"integer"},"observed_from":{"format":"date-time","nullable":true,"type":"string"},"observed_to":{"format":"date-time","nullable":true,"type":"string"},"overlapping_reports":{"type":"integer"},"quarantined_items":{"type":"integer"},"rejected_items":{"type":"integer"},"rejected_reasons":{"additionalProperties":{"type":"integer"},"description":"Rejected item counts by reason; refused content is never shown.","type":"object"},"reporters":{"items":{"type":"string"},"type":"array"},"state":{"type":"string"},"state_label":{"type":"string"},"tls_transport":{"additionalProperties":true,"description":"TLS report state apart from DMARC coverage: unknown, receiving or stale; missing reports are never success.","type":"object"},"unauthenticated_messages":{"description":"Messages in unauthenticated reports. Never part of messages or any other total.","format":"int64","type":"integer"},"unauthenticated_reports":{"description":"Aggregate reports from senders MailGlo could not authenticate, inside the visible history. They are kept and shown separately, never counted in totals.","type":"integer"},"visible_from":{"description":"Start of the processed-report history this plan shows; message counts and content start here. Older history is not deleted.","format":"date-time","nullable":true,"type":"string"},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["domain_id","state","state_label","reporters","gaps","quarantined_items","rejected_items","rejected_reasons","conflicts_in_review","unauthenticated_reports","unauthenticated_messages","overlapping_reports","messages","failing_messages","freshness_threshold_hours","expected_reporting_delay_hours","warnings","evaluated_at"],"type":"object"},"Dispute":{"properties":{"created_at":{"format":"date-time","type":"string"},"evidence":{"items":{"type":"object"},"type":"array"},"fqdn":{"type":"string"},"id":{"type":"string","x-id":"ddsp"},"resolution_note":{"nullable":true,"type":"string"},"resolved_at":{"format":"date-time","nullable":true,"type":"string"},"status":{"type":"string"}},"required":["id","fqdn","status","evidence","created_at"],"type":"object"},"DmarcSwitch":{"properties":{"can_prepare":{"description":"Whether the reader may prepare that change.","type":"boolean"},"checked_at":{"format":"date-time","type":"string"},"days_needed":{"type":"integer"},"days_reported":{"description":"How far the steady reports have got, in days. Uploaded history does not count.","type":"integer"},"domain_id":{"type":"string","x-id":"dom"},"first_report":{"description":"When the first report reached MailGlo's reporting address once the record listed both. Uploaded history does not count.","format":"date-time","nullable":true,"type":"string"},"policy":{"description":"The policy (p) the record has now. Empty when the record is in testing mode (t=y) or has pct below 100, where receivers apply it less strictly; the screen then names no policy.","type":"string"},"proposal":{"additionalProperties":true,"description":"Only when ready, and only for a reader who may prepare it: the DMARC change that stops the other service's reports and keeps the policy, MailGlo's address and every other recipient. Pass it unchanged to preparePlan with kind dmarc. Preparing refuses it with switch_changed when a fresh read or the live record differs (any tag), with switch_edited when the proposal was changed, with switch_pending when a change from the same offer already waits or is applied, and with mailglo_reporting_missing if the record no longer sends reports to MailGlo.","nullable":true,"type":"object"},"ready_at":{"description":"The UTC day the switch is ready if reports keep arriving. Null while waiting.","format":"date-time","nullable":true,"type":"string"},"snoozed_until":{"description":"Set by snoozeDmarcSwitch (Not yet on To do): until then To do leaves the offer out.","format":"date-time","nullable":true,"type":"string"},"started_at":{"description":"The first DNS check that found the record naming both MailGlo and the other tool.","format":"date-time","nullable":true,"type":"string"},"state":{"description":"none: the record does not list both MailGlo and one DMARC service MailGlo knows by name. waiting: it does, and no report reached MailGlo's reporting address yet. receiving: reports reach MailGlo, but not steadily for long enough yet. ready: reports have reached MailGlo steadily for about a month; To do then offers to stop the other service's reports.","enum":["none","waiting","receiving","ready"],"type":"string"},"tool":{"allOf":[{"$ref":"#/components/schemas/DmarcSwitchTool"}],"nullable":true}},"required":["domain_id","state","tool","policy","started_at","first_report","ready_at","days_reported","days_needed","snoozed_until","proposal","can_prepare","checked_at"],"type":"object"},"DmarcSwitchTool":{"description":"The other DMARC service the record sends daily reports to.","properties":{"name":{"description":"The service, such as dmarcian: always one MailGlo knows by name. Other outside addresses stay in the record and out of the change.","type":"string"},"rua":{"description":"Its daily-report (rua) addresses; empty for a reader who may not prepare the change.","items":{"type":"string"},"type":"array"},"ruf":{"description":"Its failure-report (ruf) addresses; empty for a reader who may not prepare the change.","items":{"type":"string"},"type":"array"}},"required":["name","rua","ruf"],"type":"object"},"DnsAnswer":{"properties":{"answers":{"items":{"type":"string"},"type":"array"},"detail":{"description":"How a live lookup went, such as how many nameservers return the record.","type":"string"},"observed_at":{"format":"date-time","type":"string"},"outcome":{"enum":["answer","nxdomain","empty","servfail","timeout"],"type":"string"},"partial":{"description":"True when part of a live lookup could not be read, such as one alias target; a value missing from the answers is then not proved absent.","type":"boolean"},"query_name":{"type":"string"},"resolver":{"type":"string"},"rrtype":{"type":"string"}},"required":["query_name","rrtype","outcome","answers","resolver","observed_at"],"type":"object"},"DnsChange":{"properties":{"action":{"enum":["create","update","replace","no_change","remove_duplicate","cannot_read","parent_unread","inherited","from_provider","not_now","wait","review","recommended"],"type":"string"},"action_label":{"type":"string"},"current":{"$ref":"#/components/schemas/DnsCurrent"},"diff":{"items":{"$ref":"#/components/schemas/TagChange"},"type":"array"},"explanation":{"type":"string"},"hosted_spf":{"$ref":"#/components/schemas/HostedSPFOffer"},"key":{"description":"verification, dmarc, spf, dkim:\u003cselector\u003e or hosted:\u003ckind\u003e.","type":"string"},"managed_by":{"enum":["customer","mailglo"],"type":"string","x-id":"none"},"name":{"type":"string"},"notes":{"items":{"type":"string"},"type":"array"},"pending":{"description":"On a hosted row: the name already points at MailGlo, ahead of the change that has MailGlo serve the hosted record there. Until that change runs, receivers may find no record.","type":"boolean"},"plan_id":{"type":"string","x-id":"plan"},"proposed":{"description":"The complete value to publish; empty when MailGlo has none to offer.","type":"string"},"purpose":{"type":"string"},"recipients":{"items":{"$ref":"#/components/schemas/Recipient"},"type":"array"},"record":{"type":"string"},"type":{"type":"string"}},"required":["key","record","purpose","name","type","current","proposed","action","action_label","explanation","managed_by"],"type":"object"},"DnsCurrent":{"properties":{"detail":{"type":"string"},"outcome":{"enum":["answer","nxdomain","empty","servfail","timeout"],"type":"string"},"readable":{"type":"boolean"},"summary":{"type":"string"},"type":{"type":"string"},"values":{"items":{"type":"string"},"type":"array"}},"required":["outcome","readable","type","values","summary"],"type":"object"},"DnsObservation":{"properties":{"answers":{"items":{"type":"string"},"type":"array"},"evidence_id":{"description":"What a case result cites for this lookup.","type":"string","x-id":"obs"},"observed_at":{"format":"date-time","type":"string"},"outcome":{"enum":["answer","nxdomain","empty","servfail","timeout"],"type":"string"},"purpose":{"description":"The check that recorded it, such as domain_added, scheduled, control_verification or dns_session.","type":"string"},"query_name":{"type":"string"},"rrtype":{"type":"string"}},"required":["evidence_id","query_name","rrtype","outcome","answers","observed_at","purpose"],"type":"object"},"DnsRecordChanges":{"description":"What one scheduled check found changed since the check before it.","properties":{"changes":{"items":{"properties":{"after":{"description":"Published values now; empty when none is published.","items":{"type":"string"},"type":"array"},"before":{"description":"Published values before; empty when none was published.","items":{"type":"string"},"type":"array"},"label":{"type":"string"},"record":{"description":"spf, dmarc, mx, mta_sts, tls_rpt, bimi or dkim:\u003cselector\u003e.","type":"string"}},"required":["record","label","before","after"],"type":"object"},"type":"array"},"detected_at":{"format":"date-time","type":"string"},"previous_snapshot_id":{"type":"string","x-id":"snap"},"snapshot_id":{"type":"string","x-id":"snap"}},"required":["detected_at","snapshot_id","previous_snapshot_id","changes"],"type":"object"},"DnsSession":{"properties":{"challenge":{"$ref":"#/components/schemas/SessionChallenge"},"changes":{"items":{"$ref":"#/components/schemas/DnsChange"},"type":"array"},"checked":{"type":"boolean"},"dkim_note":{"type":"string"},"dns_host":{"description":"Where the domain's DNS is managed, named from its nameservers when MailGlo knows them, with a link to its DNS settings.","properties":{"name":{"type":"string"},"url":{"type":"string"}},"required":["name","url"],"type":"object"},"domain_id":{"type":"string","x-id":"dom"},"fqdn":{"type":"string"},"hosted":{"$ref":"#/components/schemas/HostedChoice"},"next_steps":{"items":{"$ref":"#/components/schemas/SessionStep"},"type":"array"},"notes":{"items":{"type":"string"},"type":"array"},"observed_at":{"format":"date-time","type":"string"},"one_click":{"description":"Present when the domain's DNS host adds setup's records in one step (Domain Connect, at a host MailGlo has turned on that lists MailGlo's template). Keys are the rows it adds; every other row is still added by hand.","properties":{"adds_beside":{"description":"True when the host adds a TXT record beside one already published instead of replacing it (Cloudflare). Its SPF and DMARC rows are offered only while the domain has none.","type":"boolean"},"host":{"type":"string"},"keys":{"items":{"type":"string"},"type":"array"}},"required":["host","keys","adds_beside"],"type":"object"},"sample":{"description":"True when the observations come from test fixtures, not published records.","type":"boolean"},"snapshot_id":{"description":"Identifier of the observations a check recorded.","type":"string","x-id":"snap"},"summary":{"$ref":"#/components/schemas/DnsSessionSummary"},"verification":{"$ref":"#/components/schemas/VerificationResult"},"zone":{"description":"The DNS zone that holds the domain, from its nameservers when they answer, otherwise the registrable domain. Record names are written relative to it at the DNS host; a subdomain without its own nameservers lives in its parent's zone. Absent when DNS could not be read, or when the zone can't be told apart from a provider's (a name under a private suffix such as duckdns.org); then names are given in full.","type":"string"}},"required":["domain_id","fqdn","observed_at","sample","checked","changes","summary","challenge","hosted","notes","next_steps"],"type":"object"},"DnsSessionSummary":{"properties":{"done":{"type":"integer"},"info":{"type":"integer"},"to_change":{"type":"integer"},"total":{"type":"integer"},"unreadable":{"type":"integer"},"waiting":{"type":"integer"}},"required":["total","to_change","done","unreadable","waiting","info"],"type":"object"},"Domain":{"properties":{"activated_at":{"format":"date-time","nullable":true,"type":"string"},"can_add_sender":{"description":"Single-domain reads: the reader may add a sending service on Senders, by the check deciding about one uses.","type":"boolean"},"can_prepare":{"description":"Single-domain reads: the reader may prepare a DNS change for this domain.","type":"boolean"},"can_read_rows":{"description":"Single-domain reads: the reader may list the domain's reported mail.","type":"boolean"},"client_id":{"type":"string","x-id":"cli"},"client_kind":{"description":"The domain's client: client, internal (the workspace's own domains) or demo. Empty for a domain shared with you.","type":"string"},"client_name":{"type":"string"},"control_auto_check":{"description":"MailGlo is checking for this domain's ownership TXT record automatically; another check is scheduled.","type":"boolean"},"control_checked_at":{"format":"date-time","nullable":true,"type":"string"},"control_method":{"nullable":true,"type":"string"},"control_status":{"type":"string"},"control_verified_at":{"format":"date-time","nullable":true,"type":"string"},"created_at":{"format":"date-time","type":"string"},"demo":{"description":"A demo client's domain; it counts toward no plan's domain allowance.","type":"boolean"},"family":{"description":"Commercial billing family (registrable domain). Not the DMARC Organizational Domain.","type":"string"},"family_id":{"type":"string","x-id":"fam"},"forwarding":{"description":"Single-domain reads, for a reader who may prepare DNS changes across the workspace, when this deployment takes report mail: the workspace's private address. A mailbox that already gets DMARC aggregate reports forwards them there, with no DNS change. Each report is filed under the workspace domain it is about. A report counts only when the reporter's signature survived the forward. Before domain access is proven, a domain another workspace has proven access to is set aside.","properties":{"address":{"description":"fwd+\u003cprivate code\u003e@ the reporting domain; one address for every domain in the workspace.","type":"string"},"problem":{"description":"unverified: this domain's latest forwarded report was set aside because the reporter's signature didn't survive the forward. Outlook's Redirect keeps it.","enum":["unverified"],"type":"string"}},"required":["address"],"type":"object"},"fqdn":{"description":"Operated hostname in canonical ASCII form.","type":"string"},"health_note":{"type":"string"},"id":{"type":"string","x-id":"dom"},"internal":{"description":"The workspace's one free own-domain family.","type":"boolean"},"managed_dns":{"description":"Which records this domain can let MailGlo host now, per record kind, from the workspace's plan and the domain's service basis; the same decision the server enforces. Managed hosts every kind; Free and a domain watched for free host none.","properties":{"available":{"description":"Whether any record kind can be hosted now.","type":"boolean"},"hosted_spf":{"description":"The hosted SPF sender allowance, so the limit shows before it is reached. Each sending service counts once; all of the domain's own ip4 and ip6 addresses count as one.","properties":{"adjusted_at":{"description":"When hosted SPF last served a new record; absent while it serves none.","format":"date-time","type":"string"},"limit":{"description":"The plan's cap; 0 is unlimited.","type":"integer"},"macro":{"description":"Whether per-server answers (method macro) can be chosen now, and why not.","properties":{"available":{"type":"boolean"},"reason":{"type":"string"}},"required":["available"],"type":"object"},"macro_warning":{"description":"What per-server answers cost, to show with the choice.","type":"string"},"method":{"description":"How the domain chose to have hosted SPF answer. managed (the default): MailGlo lists each service's include and serves the addresses they resolve to when the record nears the DNS lookup limit. includes: each service's include. flatten: the addresses the includes resolve to, kept current. macro: one answer per sending server. An approved SPF change with method sets it.","enum":["managed","includes","flatten","macro"],"type":"string"},"paused":{"description":"Sending services MailGlo took out of hosted SPF because receivers can't read their record; each goes back once it reads well again.","items":{"properties":{"include":{"type":"string"},"paused_at":{"format":"date-time","type":"string"},"problem":{"type":"string"}},"required":["include","problem","paused_at"],"type":"object"},"type":"array"},"senders":{"description":"Sending services hosted SPF serves now; 0 when SPF is not hosted.","type":"integer"},"served_as":{"description":"How hosted SPF answers now; empty when SPF is not hosted.","enum":["","includes","flatten","macro"],"type":"string"}},"required":["senders","limit","method","served_as","macro","macro_warning"],"type":"object"},"kinds":{"additionalProperties":{"properties":{"available":{"type":"boolean"},"reason":{"type":"string"}},"required":["available"],"type":"object"},"description":"One entry per hosted record kind: dmarc, spf, tls_rpt, mta_sts and bimi.","type":"object"},"reason":{"description":"Why none can, with the next step.","type":"string"}},"required":["available","kinds","hosted_spf"],"type":"object"},"mode":{"enum":["observe","historical_upload","hosted"],"type":"string"},"provider_hostname":{"nullable":true,"type":"string"},"report_address":{"type":"string"},"reporting_status":{"type":"string"},"service_basis":{"description":"How the domain is served once monitored: paid, free, watch (watched for free) and so on; null before monitoring starts.","nullable":true,"type":"string"},"setup":{"description":"Where the domain's setup stands. Setup is complete once access is verified, the DMARC record names MailGlo (or the domain follows a stricter parent policy) and monitoring is on; the first report is tracked apart and never holds setup open.","properties":{"access":{"description":"The domain-access TXT record is verified.","enum":["done","todo"],"type":"string"},"complete":{"type":"boolean"},"first_report":{"description":"none: no report of this domain's own comes (reports parent).","enum":["received","waiting","none"],"type":"string"},"monitoring":{"description":"done once monitoring is on, which MailGlo starts as soon as access is verified; waiting for a client's authorization; needs_plan when the plan has no room.","enum":["done","todo","waiting","needs_plan"],"type":"string"},"parent":{"description":"With reports parent: the parent domain whose DMARC policy this domain follows.","type":"string"},"preparation":{"description":"After an add with prepare_in_background: reading while MailGlo reads the domain's DNS, preparing while it prepares setup's hosted SPF record, then done. Every other domain is done.","enum":["reading","preparing","done"],"type":"string"},"reports":{"description":"done once the DMARC record names MailGlo; parent while the domain has no record of its own and follows a stricter parent policy, so receivers report on the parent, not on this domain.","enum":["done","todo","parent"],"type":"string"}},"required":["complete","access","reports","monitoring","first_report","preparation"],"type":"object"},"status":{"enum":["staged","awaiting_authority","confirmed","active","paused","exit_pending","exited","archived"],"type":"string"},"unicode_name":{"type":"string"},"workspace_id":{"type":"string","x-id":"ws"},"write_hold":{"nullable":true,"type":"string"}},"required":["id","workspace_id","client_id","client_name","family_id","family","fqdn","unicode_name","status","mode","control_status","reporting_status","report_address","internal","demo","created_at","health_note","control_auto_check","client_kind","setup"],"type":"object"},"DomainDay":{"properties":{"date":{"description":"UTC day.","format":"date","type":"string"},"messages":{"format":"int64","type":"integer"},"reported":{"description":"A report was counted for this day, so its counts were measured, zero included.","type":"boolean"},"reported_fail_messages":{"description":"The receiver evaluated both as failing.","format":"int64","type":"integer"},"reported_pass_messages":{"description":"The receiver evaluated DKIM or SPF as aligned and passing.","format":"int64","type":"integer"},"reported_unknown_messages":{"description":"Anything else: no DMARC result in the report.","format":"int64","type":"integer"},"state":{"description":"complete: a report was counted and the day ended more than 72 hours ago. partial: the day ended less than 72 hours ago, so reports may still arrive. missing: no report was counted; the counts are zero but were not measured.","enum":["complete","partial","missing"],"type":"string"}},"required":["date","state","reported","messages","reported_pass_messages","reported_fail_messages","reported_unknown_messages"],"type":"object"},"DomainScore":{"properties":{"basis":{"properties":{"coverage":{"type":"string"},"dns_checked_at":{"format":"date-time","nullable":true,"type":"string"},"dns_snapshot_id":{"nullable":true,"type":"string","x-id":"snap"},"report_window_days":{"type":"integer"},"reported_messages":{"format":"int64","type":"integer"},"reports_from":{"format":"date-time","type":"string"},"reports_to":{"format":"date-time","type":"string"},"resolver":{"type":"string"}},"required":["dns_snapshot_id","dns_checked_at","resolver","reports_from","reports_to","report_window_days","reported_messages","coverage"],"type":"object"},"checks":{"items":{"$ref":"#/components/schemas/ScoreCheck"},"type":"array"},"client_id":{"type":"string","x-id":"cli"},"client_name":{"type":"string"},"counts":{"additionalProperties":{"type":"integer"},"description":"Checks per status.","type":"object"},"domain_id":{"type":"string","x-id":"dom"},"evaluated_at":{"format":"date-time","type":"string"},"fqdn":{"type":"string"},"internal":{"type":"boolean"},"not_read":{"description":"Why the DMARC and SPF checks have no result yet, with the next step. Empty once both records have been read.","type":"string"},"notice":{"type":"string"}},"required":["domain_id","fqdn","client_id","client_name","internal","evaluated_at","not_read","counts","checks","basis","notice"],"type":"object"},"DomainShare":{"properties":{"change_scope":{"items":{"type":"string"},"type":"array"},"created_at":{"format":"date-time","type":"string"},"domain":{"type":"string"},"domain_id":{"type":"string","x-id":"dom"},"effect":{"description":"What the action means for recipient teams and agents.","type":"string"},"history":{"items":{"properties":{"action":{"type":"string"},"actor":{"type":"string","x-id":"prn"},"at":{"format":"date-time","type":"string"},"details":{"additionalProperties":true,"type":"object"}},"required":["action","actor","details","at"],"type":"object"},"type":"array"},"id":{"type":"string","x-id":"shr"},"owner_state":{"enum":["active","disabled"],"type":"string"},"owner_workspace_id":{"type":"string","x-id":"ws"},"recipient_name":{"type":"string"},"recipient_workspace_id":{"type":"string","x-id":"ws"},"revoked_at":{"format":"date-time","nullable":true,"type":"string"},"role":{"enum":["viewer","manager"],"type":"string"},"state":{"description":"Paused is derived from the owner's paid access when read; it is never stored.","enum":["active","disabled","paused","revoked"],"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","domain_id","domain","owner_workspace_id","recipient_workspace_id","recipient_name","role","change_scope","owner_state","state","revoked_at","created_at","updated_at","history"],"type":"object"},"ErrorBody":{"properties":{"error":{"properties":{"category":{"description":"invalid_input, missing_authority, not_found, unavailable_evidence, unsupported, not_purchased, rate_limit, provider_outage, stale_state, conflict or expired.","type":"string"},"code":{"description":"Stable code, for example not_found, forbidden, conflict, invalid_request, owner_required, budget_exhausted, paused.","type":"string"},"details":{"additionalProperties":true,"type":"object"},"message":{"type":"string"},"next_step":{"description":"A safe next step; never a way around a control.","type":"string"},"request_id":{"type":"string","x-id":"none"},"retry":{"enum":["safe","safe_later","needs_new_evidence","needs_human_approval","not_safe"],"type":"string"},"retryable":{"type":"boolean"}},"required":["code","message"],"type":"object"}},"required":["error"],"type":"object"},"FailureReport":{"description":"One DMARC failure report: the reporter, times, sending IP address, failure type, delivery result and the domains involved.","properties":{"arrival_at":{"description":"When the receiver says the failing message arrived; the receipt time when it does not say.","format":"date-time","type":"string"},"delivery_result":{"description":"Reported Delivery-Result, for example delivered, spam, policy or reject.","nullable":true,"type":"string"},"dkim_domain":{"nullable":true,"type":"string"},"dkim_selector":{"nullable":true,"type":"string"},"envelope_from_domain":{"nullable":true,"type":"string"},"failure_type":{"description":"Reported Auth-Failure, for example dmarc, spf, signature or bodyhash.","type":"string"},"header_from_domain":{"nullable":true,"type":"string"},"id":{"type":"string","x-id":"flr"},"received_at":{"description":"When MailGlo received the report.","format":"date-time","type":"string"},"reported_domain":{"type":"string"},"reporter":{"description":"Domain of the reporting organization.","type":"string"},"reporter_authentication":{"description":"Whether the mail carrying the report passed DMARC for its From domain: verified, failed or unknown. Only verified reports come from an authenticated sender; the others are listed apart.","enum":["verified","failed","unknown"],"type":"string"},"source_ip":{"nullable":true,"type":"string"},"spf_domain":{"nullable":true,"type":"string"}},"required":["id","received_at","arrival_at","reporter","failure_type","reported_domain","reporter_authentication"],"type":"object"},"FailureReportPage":{"properties":{"address":{"description":"The failure-report (ruf) address a DMARC change adds; empty when read through a domain share.","type":"string"},"complete":{"type":"boolean"},"enabled":{"description":"Whether MailGlo receives failure reports now: the switch is on and a DMARC record with MailGlo's failure-report address was served or detected, and none without it since. Reports are kept only for mail that arrived while they were received.","type":"boolean"},"enabled_since":{"format":"date-time","nullable":true,"type":"string"},"next_cursor":{"type":"string"},"notice":{"type":"string"},"on":{"description":"The domain's failure-report switch; on by default on every plan. Off, DMARC proposals drop MailGlo's failure-report address and intake stops.","type":"boolean"},"reports":{"items":{"$ref":"#/components/schemas/FailureReport"},"type":"array"}},"required":["on","enabled","address","notice","reports","complete"],"type":"object"},"FailureReportSetting":{"properties":{"enabled":{"description":"Whether MailGlo receives failure reports now: the switch is on and a DMARC record with MailGlo's failure-report address was served or detected.","type":"boolean"},"enabled_since":{"format":"date-time","nullable":true,"type":"string"},"on":{"description":"The domain's switch; on by default on every plan.","type":"boolean"}},"required":["on","enabled"],"type":"object"},"Finding":{"properties":{"code":{"type":"string"},"message":{"type":"string"},"record":{"type":"string"},"severity":{"type":"string"}},"required":["code","severity","message","record"],"type":"object"},"Grant":{"properties":{"action":{"type":"string"},"client_id":{"nullable":true,"type":"string","x-id":"cli"},"created_at":{"format":"date-time","type":"string"},"domain_id":{"nullable":true,"type":"string","x-id":"dom"},"effective":{"description":"True while authorization would honor the grant, by the server's clock. The grant, its membership and the person or agent holding it must all be active and inside their validity dates.","type":"boolean"},"id":{"type":"string","x-id":"grt"},"membership_id":{"type":"string","x-id":"mem"},"principal_id":{"type":"string","x-id":"prn"},"provenance":{"type":"string"},"status":{"type":"string"},"valid_until":{"format":"date-time","nullable":true,"type":"string"}},"required":["id","membership_id","principal_id","action","status","provenance","created_at","effective"],"type":"object"},"GrantInput":{"properties":{"action":{"type":"string"},"client_id":{"type":"string","x-id":"cli"},"data_categories":{"items":{"type":"string"},"type":"array"},"domain_id":{"type":"string","x-id":"dom"},"membership_id":{"type":"string","x-id":"mem"},"valid_days":{"type":"integer"}},"required":["membership_id","action"],"type":"object"},"Health":{"properties":{"accounts_open":{"description":"Whether signup, sign-in and customer operations are served.","type":"boolean"},"database":{"type":"string"},"environment":{"type":"string"},"missing_prices":{"description":"The `billing.prices` keys of the hidden prices. Each key names a plan and billing interval, such as `managed_year`. The list is empty unless `pricing` is `degraded`.","items":{"type":"string"},"type":"array"},"pricing":{"description":"`ok`: we aren't hiding any price for lack of a Stripe price. `degraded`: a missing Stripe price hides a catalog price. `unknown`: we could not read the catalog.","enum":["ok","degraded","unknown"],"type":"string"},"sign_in_providers":{"description":"The providers people can sign up and sign in with here, besides email and password: google, microsoft, both or none.","items":{"enum":["google","microsoft"],"type":"string"},"type":"array"},"status":{"type":"string"},"synthetic_only":{"type":"boolean"},"test_payments":{"description":"Whether the test card and test billing portal pages work here: a test environment without Stripe. Elsewhere Update payment method opens the processor and test cards are refused.","type":"boolean"}},"required":["status","database","environment"],"type":"object"},"HistoryWindow":{"properties":{"allowance":{"type":"string"},"effective_from":{"format":"date-time","type":"string"},"history_omitted":{"type":"boolean"},"reason":{"type":"string"},"requested_from":{"format":"date-time","type":"string"},"visible_from":{"format":"date-time","type":"string"}},"required":["requested_from","effective_from","visible_from","allowance","history_omitted"],"type":"object"},"HostedChoice":{"properties":{"note":{"type":"string"},"offered":{"type":"boolean"},"options":{"items":{"$ref":"#/components/schemas/HostedOption"},"type":"array"},"plan_id":{"type":"string","x-id":"plan"},"plan_status":{"type":"string"},"reason":{"type":"string"},"upgrade":{"description":"The plan that hosts these records when the current plan hosts none, so setup offers it (Managed).","type":"string"}},"required":["offered","options","note"],"type":"object"},"HostedOption":{"properties":{"blocker":{"type":"string"},"kind":{"type":"string"},"label":{"type":"string"},"purpose":{"type":"string"},"state":{"enum":["available","chosen","serving","blocked"],"type":"string"}},"required":["kind","label","purpose","state"],"type":"object"},"HostedSPFOffer":{"description":"On the SPF row: setup's recommendation to let MailGlo host SPF, with the sending services kept and the plan's sender allowance. Over the allowance (over_limit) no value is shown.","properties":{"count":{"type":"integer"},"limit":{"description":"The plan's hosted SPF sender cap; 0 is unlimited.","type":"integer"},"message":{"type":"string"},"plan":{"description":"The plan kind: free, managed or enterprise.","type":"string"},"senders":{"description":"The sending services the published record lists; all of the domain's own ip4 and ip6 addresses are one.","items":{"type":"string"},"type":"array"},"state":{"description":"ready: MailGlo serves hosted SPF now, and value is the exact record for the SPF row.","enum":["offered","over_limit","ready"],"type":"string"},"value":{"description":"The shape of the record to publish once MailGlo serves hosted SPF, with \u003cyour hosted SPF name\u003e in place of the name; the hosted SPF row shows the exact value once it is served.","type":"string"}},"required":["state","senders","count","limit","plan","message"],"type":"object"},"ImportCheckRow":{"properties":{"client_line":{"description":"The first row with this row's client; rows with the same client_line go to one client.","type":"integer"},"client_new":{"description":"The row names a new client the import would create: no client you can read has the name, you may create clients and one of its rows is ok. The plan includes client management; without it the rows are plan_required.","type":"boolean"},"line":{"description":"The row's position in the request, from 1.","type":"integer"},"other_line":{"description":"For repeat: the earlier row of the same client with the same domain. For other_client: the row with the same domain in the client group the import reaches first, which may come later in the list; which client gets the domain depends on what each already holds and what you may change.","type":"integer"},"reason":{"description":"Why the row is not ok.","type":"string"},"status":{"description":"not_allowed: you may not add domains to the row's client, or create it. plan_required: the row names a new client and the plan doesn't include client management. family_other_client: another client takes the domain's family, an earlier one in this list (other_line names its row) or one that holds it already, named or not (no other_line); one family has one client.","enum":["ok","invalid","client_ambiguous","repeat","other_client","family_other_client","not_allowed","plan_required"],"type":"string"}},"required":["line","status","client_new","client_line"],"type":"object"},"ImportDomainResult":{"properties":{"challenge":{"allOf":[{"$ref":"#/components/schemas/Challenge"}],"description":"The added domain's access TXT record, ready to publish."},"client":{"description":"The client name as sent, with spacing tidied; empty for your own domains.","type":"string"},"client_created":{"description":"This import created the client.","type":"boolean"},"client_id":{"description":"The client the domain was added to; set only on added rows.","nullable":true,"type":"string","x-id":"cli"},"code":{"description":"For not_added: the refusal's error code, such as paid_feature_required or client_ambiguous. For a duplicate already in the workspace: already_under_client when it is under the row's client, under_other_client when it is under another.","type":"string"},"dns_host":{"description":"Where the added domain's DNS is managed, such as Cloudflare, when MailGlo recognizes it from the nameservers.","type":"string"},"domain":{"$ref":"#/components/schemas/Domain"},"input":{"type":"string"},"line":{"description":"The row's position in the request, from 1.","type":"integer"},"reason":{"type":"string"},"status":{"description":"added, duplicate, invalid, family_owned_by_other_client, or not_added when the row's client could not be created or written to (code says why).","type":"string"}},"required":["line","client","client_id","client_created","input","status","reason"],"type":"object"},"ImportGap":{"properties":{"code":{"type":"string"},"excluded":{"type":"boolean"},"message":{"type":"string"},"resolved":{"type":"boolean"}},"required":["code","message","resolved","excluded"],"type":"object"},"ImportJob":{"properties":{"created_at":{"format":"date-time","type":"string"},"id":{"type":"string","x-id":"imp"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"status":{"type":"string"},"summary":{"additionalProperties":{"type":"integer"},"type":"object"},"terms":{"items":{"type":"string"},"type":"array"}},"required":["id","status","summary","items","terms","created_at"],"type":"object"},"Inspection":{"properties":{"domain_id":{"type":"string","x-id":"dom"},"findings":{"items":{"$ref":"#/components/schemas/Finding"},"type":"array"},"fqdn":{"type":"string"},"mail_security":{"$ref":"#/components/schemas/MailSecurity"},"mail_security_rating":{"$ref":"#/components/schemas/MailSecurityRating"},"notice":{"type":"string"},"observed_at":{"format":"date-time","type":"string"},"ownership":{"additionalProperties":{"type":"string"},"description":"served_by_mailglo, customer_managed, or unknown when whether MailGlo serves the record could not be read; per record.","type":"object"},"policy_discovery":{"additionalProperties":{"additionalProperties":true,"type":"object"},"description":"DMARC policy discovery under each supported profile (current tree walk and legacy PSL).","type":"object"},"records":{"additionalProperties":{"$ref":"#/components/schemas/DnsAnswer"},"type":"object"},"resolver":{"type":"string"},"snapshot_id":{"description":"Identifier of this recorded set of observations.","type":"string","x-id":"snap"}},"required":["domain_id","fqdn","observed_at","resolver","records","findings","notice"],"type":"object"},"IntakeResult":{"properties":{"reason":{"type":"string"},"report_id":{"type":"string","x-id":"rpt"},"state":{"type":"string"}},"required":["state"],"type":"object"},"Invitation":{"properties":{"client_ids":{"items":{"type":"string","x-id":"cli"},"type":"array"},"created_at":{"format":"date-time","type":"string"},"dev_token":{"type":"string"},"domain_ids":{"items":{"type":"string","x-id":"dom"},"type":"array"},"email":{"type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string","x-id":"invite"},"role":{"type":"string"},"status":{"type":"string"},"workspace_id":{"type":"string","x-id":"ws"}},"required":["id","workspace_id","email","role","client_ids","domain_ids","status","expires_at","created_at"],"type":"object"},"InvitationInput":{"properties":{"client_ids":{"items":{"type":"string","x-id":"cli"},"type":"array"},"domain_ids":{"description":"For a viewer only: the exact domains it reads. Empty means the whole workspace.","items":{"type":"string","x-id":"dom"},"type":"array"},"email":{"type":"string"},"role":{"enum":["admin","viewer","technician","billing_admin","client_approver","client_viewer"],"type":"string"}},"required":["email","role"],"type":"object"},"Invoice":{"properties":{"created_at":{"format":"date-time","type":"string"},"currency":{"type":"string"},"id":{"type":"string","x-id":"invoice"},"kind":{"type":"string"},"lines":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"number":{"format":"int64","type":"integer"},"paid_at":{"format":"date-time","nullable":true,"type":"string"},"period_end":{"format":"date-time","nullable":true,"type":"string"},"period_start":{"format":"date-time","nullable":true,"type":"string"},"status":{"type":"string"},"subtotal_cents":{"type":"integer"},"sync_status":{"type":"string"},"tax_cents":{"type":"integer"},"tax_treatment":{"type":"string"},"total_cents":{"type":"integer"}},"required":["id","number","kind","status","currency","subtotal_cents","tax_cents","tax_treatment","total_cents","lines","sync_status","created_at"],"type":"object"},"LatestInspection":{"properties":{"automatic":{"description":"True when MailGlo checks this domain on its own schedule: it is monitored and DNS can be read here.","type":"boolean"},"change":{"$ref":"#/components/schemas/DnsRecordChanges"},"inspection":{"allOf":[{"$ref":"#/components/schemas/Inspection"}],"description":"The latest complete DNS check, or null before the first.","nullable":true},"interval_hours":{"description":"Hours between scheduled checks of a monitored domain.","type":"integer"}},"required":["inspection","automatic","interval_hours"],"type":"object"},"LimitChoice":{"properties":{"action":{"enum":["choose_plan","contact_sales","open_billing"],"type":"string"},"allowed":{"description":"Whether the person asking may take this choice; choosing a plan needs billing rights.","type":"boolean"},"change":{"description":"For choose_plan, the quote kind.","enum":["new_subscription","upgrade","reactivation"],"type":"string"},"detail":{"type":"string"},"interval":{"description":"For choose_plan, the billing interval to quote.","enum":["month","year"],"type":"string"},"label":{"type":"string"},"plan":{"description":"For choose_plan, the plan code to quote.","type":"string"},"units":{"description":"For choose_plan on a plan priced per domain, the billable domains to quote.","type":"integer"}},"required":["action","label","detail","allowed"],"type":"object"},"LoginInput":{"properties":{"email":{"type":"string"},"password":{"type":"string"},"totp_code":{"type":"string"}},"required":["email","password"],"type":"object"},"MailSecurity":{"description":"The domain's DNSSEC status and the DANE (TLSA) records of the mail servers MailGlo could check; unknown when none could be asked. Sample checks usually have none.","properties":{"dane":{"description":"One entry per mail server MailGlo could check. Empty when no validating resolver could be asked.","items":{"properties":{"detail":{"type":"string"},"host":{"type":"string"},"mx":{"description":"Whether the domain's validated MX answer names this host. signed: it does, so the MX mapping to this host is authenticated; status says whether the host's TLSA records are usable. unsigned: the MX answer is not signed, so the host's TLSA records don't prove it serves this domain. unknown: not validated, or the validated answer doesn't name the host. broken: the MX answer's DNSSEC signatures don't validate, so senders that validate delay mail to the domain.","enum":["signed","unsigned","unknown","broken"],"type":"string"},"records":{"description":"TLSA values as \"usage selector type data\".","items":{"type":"string"},"type":"array"},"status":{"description":"The host's own TLSA records. valid: signed, at least one that SMTP senders can use (RFC 7672); this checks the records only, not the server certificate or the host's address records. unusable: signed, but none that SMTP senders can use. unsigned: not signed, so senders ignore them. none: no TLSA record. broken: validation fails, so senders that use DANE for this host hold mail for it. unknown: could not be read.","enum":["valid","unusable","unsigned","none","broken","unknown"],"type":"string"},"zone":{"description":"The zone that holds the host's TLSA name, read only when that answer failed with the domain's chain. Absent otherwise.","type":"string"}},"required":["host","status","mx"],"type":"object"},"type":"array"},"dnssec":{"description":"signed: validates. broken: signed, but validation fails, so validating resolvers cannot read the domain. unsigned: no DNSSEC. unknown: could not be read, or the domain does not exist.","enum":["signed","broken","unsigned","unknown"],"type":"string"},"dnssec_detail":{"description":"Why the status is broken or unknown.","type":"string"},"mx_dnssec":{"description":"The MX answer, or its proof that there is none, as a validating resolver reads it. signed: validates, a null MX included. unsigned: reads without signatures. broken: fails DNSSEC validation, so senders that validate delay mail to the domain. unknown: could not be read.","enum":["signed","unsigned","broken","unknown"],"type":"string"},"mx_named":{"description":"How many hosts the validated MX answer names.","type":"integer"},"mx_only":{"description":"Hosts the validated MX answer names that the ordinary MX read does not, as during an MX change; dane reads them too.","items":{"type":"string"},"type":"array"},"mx_route":{"description":"The validated MX answer's route when it read: hosts, a null MX, or no MX record. Absent when it did not read.","enum":["hosts","null","none"],"type":"string"},"zone":{"description":"The zone that holds the domain, from its SOA answer. Absent when the answer named none.","type":"string"}},"required":["dnssec","dane"],"type":"object"},"MailSecurityRating":{"description":"How the DNS records list rates mail_security's DNSSEC signing and Secure delivery (DANE) rows, by the same rules as the health check's DANE check. Absent without mail_security.","properties":{"dane":{"description":"The worst DANE state. broken: holds mail. domain: fails with the domain's own signatures, which dnssec names. unconfirmed: fails on a host while the validated MX answer could not be read. implicit: there is no MX record, so senders try the domain's own name, whose record fails. stray: fails on a host the validated MX answer does not name. valid: at least one host read publishes a usable signed record. none: no host read publishes one. no_mail: a null MX, so the domain takes no mail. no_mx: no MX record; delivery to the domain's own address is not checked.","enum":["broken","domain","unconfirmed","implicit","stray","unsigned","unusable","unknown","valid","none","no_mail","no_mx"],"type":"string"},"dnssec":{"description":"broken: the domain's signatures fail, so senders that validate DNSSEC hold mail to it. unconfirmed: they fail, and the MX answer could not be read, so whether mail is held is unknown. records: they fail, but MailGlo could read its MX answer with DNSSEC. mx_broken: the MX answer's signatures fail, so senders that validate DNSSEC hold mail to it. mx_unknown: the domain's signatures were read, but its MX answer could not be validated.","enum":["signed","unsigned","broken","records","unconfirmed","mx_broken","mx_unknown","unknown"],"type":"string"},"host":{"description":"The host the dane state is about, when one is.","type":"string"},"hosts":{"description":"Each read host's state, in the order of mail_security.dane. unnamed: the validated MX answer does not name it, so valid, read and the summary leave it out. off_route: its record fails, but the validated MX answer is a null MX or no MX that does not route to it, so it sets no summary. implicit: there is no MX record, so senders try the domain's own name, whose record fails.","items":{"enum":["broken","domain","unconfirmed","implicit","stray","off_route","unnamed","unsigned","unusable","unknown","valid","none"],"type":"string"},"type":"array"},"mx_unread":{"description":"True when the domain's MX answer could not be read with DNSSEC, whatever its own signatures show.","type":"boolean"},"named":{"description":"Hosts the domain's MX answer names.","type":"integer"},"read":{"description":"Hosts read.","type":"integer"},"unread":{"description":"True when a result MailGlo could not read sits beside a worse one.","type":"boolean"},"valid":{"description":"Hosts read with a usable signed record.","type":"integer"}},"required":["dnssec","dane","valid","read","named","hosts","unread","mx_unread"],"type":"object"},"MailTest":{"properties":{"address":{"description":"The address to send the test email to, while it takes mail.","type":"string"},"expires_at":{"format":"date-time","type":"string"},"from":{"description":"The From address of the latest message checked.","type":"string"},"offered":{"description":"False where MailGlo takes no report mail; no test is offered.","type":"boolean"},"received_at":{"format":"date-time","type":"string"},"result":{"$ref":"#/components/schemas/MailTestResult"},"state":{"enum":["none","waiting","received","expired"],"type":"string"}},"required":["offered","state"],"type":"object"},"MailTestResult":{"properties":{"dkim":{"enum":["pass","fail","none","temperror"],"type":"string"},"dkim_aligned":{"type":"boolean"},"dkim_domain":{"type":"string"},"dmarc":{"enum":["pass","fail","none","temperror","permerror"],"type":"string"},"from_domain":{"type":"string"},"own_domain":{"description":"The From domain is the domain under test.","type":"boolean"},"policy":{"description":"What the domain's DMARC record asks receivers to do with mail that fails.","enum":["none","quarantine","reject"],"type":"string"},"spf":{"type":"string"},"spf_aligned":{"description":"The SPF domain counts for DMARC under the From domain.","type":"boolean"},"spf_domain":{"type":"string"}},"required":["from_domain","own_domain","dmarc","spf","spf_aligned","dkim","dkim_aligned"],"type":"object"},"Me":{"properties":{"agent_guide_dismissed":{"description":"The person put the \"Connect your AI assistant\" guide away; the app no longer offers it on its own.","type":"boolean"},"csrf_token":{"description":"The current cookie session's CSRF token (same-origin only).","type":"string"},"email":{"type":"string"},"has_password":{"description":"The person can sign in with a password. False for an account made with Google or Microsoft until it sets one; two-step sign-in needs one first.","type":"boolean"},"kind":{"type":"string"},"memberships":{"items":{"$ref":"#/components/schemas/MembershipSummary"},"type":"array"},"mfa_enrolled":{"description":"Two-factor authentication is on: every sign-in asks for the authenticator code.","type":"boolean"},"mfa_proved":{"description":"This request proved two-factor authentication: its session proved a code at sign-in or at enrollment, or, for a token, its person is enrolled. Workspaces that require it read this.","type":"boolean"},"name":{"type":"string"},"principal_id":{"type":"string","x-id":"prn"},"sso_only":{"description":"On a single sign-on session: a password sign-in can't follow, because the workspace requires single sign-on or the person has no MailGlo password.","type":"boolean"},"sso_session":{"description":"This session signed in through a workspace's single sign-on. It can't turn two-step sign-in on or off; the person signs in with their password for that.","type":"boolean"},"support_session":{"description":"Set when MailGlo support signed in as this person to help. The session reaches this workspace only and ends at ends_at.","properties":{"ends_at":{"format":"date-time","type":"string"},"operator":{"description":"The MailGlo operator's name.","type":"string"},"workspace_id":{"type":"string","x-id":"ws"}},"required":["operator","ends_at","workspace_id"],"type":"object"},"work_domain":{"description":"The main domain of the person's email address, unless it is a personal mailbox provider such as gmail.com. The first-domain screen fills it in.","type":"string"}},"required":["principal_id","kind","name","mfa_enrolled","mfa_proved","memberships"],"type":"object"},"Member":{"properties":{"client_ids":{"items":{"type":"string","x-id":"cli"},"type":"array"},"email":{"type":"string"},"kind":{"type":"string"},"membership_id":{"type":"string","x-id":"mem"},"mfa_enrolled":{"type":"boolean"},"name":{"type":"string"},"principal_id":{"type":"string","x-id":"prn"},"role":{"type":"string"},"since":{"format":"date-time","type":"string"}},"required":["membership_id","principal_id","kind","name","email","role","client_ids","mfa_enrolled","since"],"type":"object"},"MembershipSummary":{"properties":{"client_ids":{"items":{"type":"string","x-id":"cli"},"type":"array"},"client_mode":{"description":"Whether the workspace manages domains for clients: it turned client management on, or it has a client. It decides what the app shows, never who may do what.","type":"boolean"},"owner_name":{"description":"The name of the workspace's first owner, so a page someone's role can't use says whom to ask. Empty for a client contact, and when the workspace has no active owner.","type":"string"},"require_mfa":{"description":"The workspace requires two-factor authentication: a person reaches it only from a session that proved a code, or with their own token while enrolled.","type":"boolean"},"role":{"type":"string"},"sso_required":{"description":"This sign-in must go through the workspace's single sign-on to open it.","type":"boolean"},"workspace_id":{"type":"string","x-id":"ws"},"workspace_name":{"type":"string"}},"required":["workspace_id","workspace_name","role","client_ids","client_mode","require_mfa","owner_name"],"type":"object"},"MfaEnrollment":{"properties":{"otpauth_url":{"type":"string"},"qr_code":{"description":"The otpauth URL as a QR code, a PNG data URL (data:image/png;base64,...).","type":"string"},"secret":{"type":"string"}},"required":["secret","otpauth_url","qr_code"],"type":"object"},"MfaRequirement":{"properties":{"members_without_mfa":{"description":"People in the workspace who have not set up two-factor authentication. While it is required they reach the workspace only after they do.","type":"integer"},"on":{"type":"boolean"}},"required":["on","members_without_mfa"],"type":"object"},"ModePlan":{"properties":{"applied":{"type":"boolean"},"blockers":{"items":{"type":"string"},"type":"array"},"changes":{"items":{"type":"string"},"type":"array"},"client_approval_required":{"items":{"type":"string"},"type":"array"},"domain_id":{"type":"string","x-id":"dom"},"from":{"type":"string"},"stays_at_provider":{"items":{"type":"string"},"type":"array"},"to":{"type":"string"}},"required":["domain_id","from","to","changes","stays_at_provider","client_approval_required","blockers","applied"],"type":"object"},"Payment":{"properties":{"amount_cents":{"type":"integer"},"created_at":{"format":"date-time","type":"string"},"first_charge":{"type":"boolean"},"id":{"type":"string","x-id":"pay"},"instrument":{"type":"string"},"provider_reference":{"description":"Processor payment or session reference.","type":"string"},"refunded_cents":{"type":"integer"},"status":{"type":"string"},"sync":{"description":"Whether the amount is confirmed by a processor event or still awaiting confirmation.","type":"string"}},"required":["id","amount_cents","refunded_cents","instrument","status","first_charge","created_at"],"type":"object"},"Plan":{"description":"One catalog plan.","properties":{"allowance":{"properties":{"domains":{"type":"integer"},"history_days":{"type":"integer"},"hosted_spf_senders":{"description":"0 is unlimited.","type":"integer"},"users":{"description":"0 is unlimited.","type":"integer"}},"required":["domains","users","history_days","hosted_spf_senders"],"type":"object"},"code":{"type":"string"},"features":{"items":{"type":"string"},"type":"array"},"kind":{"enum":["free","managed","enterprise"],"type":"string"},"prices":{"items":{"properties":{"cents":{"description":"The price for the first domain.","type":"integer"},"further_cents":{"description":"The price for each further domain; absent when the plan states none. Checkout charges it for each billable unit after the first.","type":"integer"},"interval":{"enum":["month","year"],"type":"string"}},"required":["interval","cents"],"type":"object"},"type":"array"},"self_serve":{"type":"boolean"}},"required":["code","kind","self_serve","prices","allowance","features"],"type":"object"},"PlanFact":{"properties":{"after":{"type":"string"},"before":{"type":"string"},"changed":{"type":"boolean"},"label":{"type":"string"}},"required":["label","before","after","changed"],"type":"object"},"PlanLimit":{"properties":{"at_limit":{"description":"The action cannot be taken now.","type":"boolean"},"choices":{"description":"The ways forward, the most direct first.","items":{"$ref":"#/components/schemas/LimitChoice"},"type":"array"},"limit":{"description":"The allowance now; 0 is unlimited, and 0 for an included feature such as sharing.","type":"integer"},"message":{"description":"Why, in plain words, when at_limit is set.","type":"string"},"used":{"description":"What counts toward the limit now: monitored domains (each main domain with up to 5 of its hostnames), or team members and pending invitations.","type":"integer"}},"required":["used","limit","at_limit","choices"],"type":"object"},"PlanLimits":{"description":"The workspace's plan-limited actions now. investigations is opening cases by hand, assigning them, asking for information, client-visible case notes, investigation summaries and automated investigation; cases MailGlo opens stay open and resolvable on every plan. client_management is separate clients, client portal invitations, the client approval inbox and client-level work queues; your own domains work on every plan. client_reports is generating, sharing and scheduling client-ready reports; report CSV exports stay on every plan.","properties":{"client_management":{"$ref":"#/components/schemas/PlanLimit"},"client_reports":{"$ref":"#/components/schemas/PlanLimit"},"domains":{"$ref":"#/components/schemas/PlanLimit"},"investigations":{"$ref":"#/components/schemas/PlanLimit"},"plan_kind":{"description":"The kind of plan these limits come from, so a screen can name it.","enum":["free","managed","enterprise"],"type":"string"},"realtime_alerts":{"description":"Whether investigation and coverage alerts can be emailed as they happen. Without it they arrive in the daily digest.","type":"boolean"},"sharing":{"$ref":"#/components/schemas/PlanLimit"},"users":{"$ref":"#/components/schemas/PlanLimit"},"watched":{"allOf":[{"$ref":"#/components/schemas/PlanLimit"}],"description":"Domains watched for free: reports, DNS checks and the daily digest, no hosted records or real-time alerts. limit is the plan's allowance, 0 when it includes none."}},"required":["plan_kind","domains","watched","realtime_alerts","users","sharing","investigations","client_management","client_reports"],"type":"object"},"PlanOffer":{"properties":{"change":{"description":"The quote kind that chooses this plan and interval.","enum":["new_subscription","reactivation","upgrade","downgrade"],"type":"string"},"interval":{"description":"The billing interval offered.","enum":["month","year"],"type":"string"},"plan":{"$ref":"#/components/schemas/Plan"},"price_cents":{"description":"The plan's catalog price for the interval.","type":"integer"},"refusal":{"description":"Why a quote for this offer is refused now, as the quote would answer; absent when it can be quoted.","type":"string"}},"required":["change","plan","interval","price_cents"],"type":"object"},"PlanOptions":{"description":"The plans the workspace can choose now.","properties":{"above_largest":{"description":"No self-serve plan holds the served domains; contact sales.","type":"boolean"},"catalog_version":{"description":"The catalog the offers are priced from.","type":"string"},"current":{"allOf":[{"$ref":"#/components/schemas/Plan"}],"description":"The running plan with the allowance it was sold with.","nullable":true},"interval":{"description":"The running subscription's billing interval; absent when none runs.","enum":["month","year"],"type":"string"},"largest_domains":{"type":"integer"},"offers":{"items":{"$ref":"#/components/schemas/PlanOffer"},"type":"array"},"purchase":{"description":"The quote kind that buys a plan; absent while a subscription runs.","enum":["new_subscription","reactivation"],"type":"string"},"served_domains":{"description":"Domains a purchased or upgraded plan must hold, kept domains included.","type":"integer"}},"required":["catalog_version","current","served_domains","largest_domains","above_largest","offers"],"type":"object"},"Portfolio":{"properties":{"applied_filters":{"additionalProperties":true,"type":"object"},"assignees":{"description":"The people the assignee filter can name, those an open item the reader sees is assigned to.","items":{"properties":{"id":{"type":"string","x-id":"prn"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"type":"array"},"counts":{"additionalProperties":{"type":"integer"},"type":"object"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"notice":{"type":"string"}},"required":["items","counts","applied_filters","notice","assignees"],"type":"object"},"PortfolioScore":{"properties":{"client_id":{"type":"string","x-id":"cli"},"domains":{"items":{"$ref":"#/components/schemas/PortfolioScoreItem"},"type":"array"},"domains_with_red_checks":{"type":"integer"},"evaluated_at":{"format":"date-time","type":"string"},"notice":{"type":"string"},"total":{"type":"integer"}},"required":["evaluated_at","total","domains_with_red_checks","domains","notice"],"type":"object"},"PortfolioScoreItem":{"properties":{"attention":{"description":"Red and yellow checks, red first; a yellow DANE check, an optional extra, is left out.","items":{"$ref":"#/components/schemas/ScoreLowered"},"type":"array"},"client_id":{"type":"string","x-id":"cli"},"client_name":{"type":"string"},"counts":{"additionalProperties":{"type":"integer"},"description":"Checks per status.","type":"object"},"days":{"description":"The last 30 UTC days, today included, oldest first: the messages receivers reported, by the day each report's window ends.","items":{"$ref":"#/components/schemas/DomainDay"},"type":"array"},"dmarc_policy":{"description":"The state of the domain's DMARC policy check: green when the policy that applies asks receivers to quarantine or reject mail that fails DMARC, outside testing mode and with subdomains covered.","enum":["green","yellow","red","unknown"],"type":"string"},"domain_id":{"type":"string","x-id":"dom"},"fqdn":{"type":"string"},"internal":{"type":"boolean"},"messages_7d":{"description":"Messages receivers reported for this domain in counted reported mail whose window ended in the last 7 days, within the plan's visible history.","format":"int64","type":"integer"},"monitored":{"description":"MailGlo watches the domain: active, paused or leaving.","type":"boolean"}},"required":["domain_id","fqdn","client_id","client_name","internal","counts","attention","messages_7d","dmarc_policy","monitored","days"],"type":"object"},"ProviderEvent":{"properties":{"id":{"type":"string","x-id":"none"},"kind":{"type":"string"},"occurred_at":{"format":"date-time","type":"string"},"payload":{"additionalProperties":true,"type":"object"}},"required":["id","kind","occurred_at","payload"],"type":"object"},"Quote":{"properties":{"catalog_version":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"detail":{"additionalProperties":true,"description":"The quoted change. An upgrade with Stripe adds `confirm_terms`, the disclosures to show beside the amount when the change is confirmed in place: what Stripe collects now and any scheduled change the payment removes.","type":"object"},"disclosures":{"items":{"type":"string"},"type":"array"},"due_now_cents":{"type":"integer"},"expires_at":{"format":"date-time","type":"string"},"handoff":{"additionalProperties":true,"description":"Where a person continues: review and accept on the billing page, then pay on the processor page.","type":"object"},"id":{"type":"string","x-id":"quote"},"kind":{"type":"string"},"renewal_cents":{"type":"integer"},"status":{"type":"string"},"workspace_id":{"type":"string","x-id":"ws"}},"required":["id","workspace_id","kind","catalog_version","detail","due_now_cents","renewal_cents","status","expires_at","created_at","disclosures"],"type":"object"},"QuoteInput":{"properties":{"interval":{"description":"The billing interval, from plan-options. Omitted, a purchase is monthly and a change keeps the current interval.","enum":["month","year"],"type":"string"},"kind":{"description":"Above the largest self-serve plan the quote answers contact_sales; there is no overage quote.","enum":["new_subscription","reactivation","upgrade","downgrade"],"type":"string"},"plan":{"description":"The catalog plan code, from plan-options.","type":"string"},"units":{"description":"Billable domains to pay for on a plan priced per domain. Never fewer than the workspace already uses. An upgrade on the same plan and interval with more units than are paid for adds them, with a prorated charge now. Omitted, a purchase pays for the domains in use.","minimum":1,"type":"integer"}},"required":["kind","plan"],"type":"object"},"QuoteState":{"properties":{"id":{"type":"string","x-id":"quote"},"notice":{"description":"What to tell the customer for review and failed; empty otherwise.","type":"string"},"outcome":{"description":"waiting until the processor answers; applied once the change is in force or scheduled; review when the processor charged an amount finance must check; failed when the change was refused or withdrawn.","enum":["waiting","applied","review","failed"],"type":"string"}},"required":["id","outcome","notice"],"type":"object"},"Recipient":{"properties":{"address":{"type":"string"},"change":{"enum":["kept","added","replaced"],"type":"string"},"mailglo":{"type":"boolean"}},"required":["address","change","mailglo"],"type":"object"},"RefundPreview":{"properties":{"amount_cents":{"type":"integer"},"effects":{"additionalProperties":true,"type":"object"},"eligible":{"type":"boolean"},"instrument":{"type":"string"},"message":{"type":"string"},"preview_expires_at":{"format":"date-time","type":"string"},"preview_id":{"type":"string","x-id":"rfp"},"reason":{"type":"string"},"refund_id":{"type":"string","x-id":"refund"},"status":{"type":"string"}},"required":["eligible","reason","amount_cents","instrument","effects","status","message"],"type":"object"},"Report":{"properties":{"claimed_reporter":{"nullable":true,"type":"string"},"conflict_with":{"nullable":true,"type":"string","x-id":"rpt"},"external_report_id":{"nullable":true,"type":"string","x-id":"none"},"extra_contact_info":{"description":"Extra contact information from the reporter, as reported.","nullable":true,"type":"string"},"generator":{"description":"The name and version of the software that wrote the report, as reported (RFC 9990 Section 3.1.1.3).","nullable":true,"type":"string"},"id":{"type":"string","x-id":"rpt"},"intake_route":{"type":"string"},"kind":{"type":"string"},"message_count":{"format":"int64","type":"integer"},"overlap_uncertain":{"type":"boolean"},"parser_version":{"type":"string"},"policy_domain":{"nullable":true,"type":"string"},"policy_published":{"additionalProperties":true,"nullable":true,"type":"object"},"profile":{"type":"string"},"provenance_warnings":{"items":{"type":"string"},"type":"array"},"received_at":{"format":"date-time","type":"string"},"record_count":{"type":"integer"},"reported_by":{"description":"The mail provider that sent the report by its everyday name, such as Google for google.com; the reporter as it named itself when MailGlo knows no other name.","nullable":true,"type":"string","x-id":"none"},"reporter_authentication":{"type":"string"},"state":{"type":"string"},"state_history":{"description":"Each state with its time: received, the intake decision, parsed and any later change.","items":{"properties":{"at":{"format":"date-time","type":"string"},"reason":{"nullable":true,"type":"string"},"state":{"type":"string"}},"type":"object"},"type":"array"},"state_reason":{"nullable":true,"type":"string"},"window_begin":{"format":"date-time","nullable":true,"type":"string"},"window_end":{"format":"date-time","nullable":true,"type":"string"}},"required":["id","kind","intake_route","reporter_authentication","profile","received_at","state","record_count","message_count","overlap_uncertain","parser_version","provenance_warnings"],"type":"object"},"ReportSubdomains":{"properties":{"at_allowance":{"description":"True when monitoring another hostname of this main domain would put the workspace over its plan limit.","type":"boolean"},"included":{"description":"How many hostnames of a main domain one domain includes.","type":"integer"},"main_domain":{"type":"string"},"subdomains":{"items":{"properties":{"messages":{"description":"Messages from this subdomain in the last 30 days.","format":"int64","type":"integer"},"name":{"type":"string"}},"required":["name","messages"],"type":"object"},"type":"array"}},"required":["subdomains","at_allowance","included","main_domain"],"type":"object"},"SaveAndApplyResult":{"properties":{"message":{"type":"string"},"operation":{"additionalProperties":true,"type":"object"},"outcome":{"description":"published means the provider accepted the records; DNS verification and new reports follow. unknown needs reconciliation and never counts as applied.","enum":["published","awaiting_customer","failed","partial","unknown"],"type":"string"},"plan_id":{"type":"string","x-id":"plan"},"plan_version":{"type":"integer"},"replayed":{"description":"true when the plan had already run; nothing was applied again.","type":"boolean"}},"required":["plan_id","plan_version","outcome","message","replayed","operation"],"type":"object"},"SavedView":{"properties":{"created_at":{"format":"date-time","type":"string"},"filters":{"additionalProperties":true,"description":"Portfolio filter values by name (client_id, technician, assignee, severity, sender_id, state, category, window_days).","type":"object"},"id":{"type":"string","x-id":"view"},"name":{"type":"string"}},"required":["id","name","filters","created_at"],"type":"object"},"ScoreCheck":{"properties":{"fix":{"allOf":[{"$ref":"#/components/schemas/ScoreFix"}],"description":"Null for a green check.","nullable":true},"id":{"enum":["dmarc_record","dmarc_policy","reporting","spf","dkim","alignment","unknown_senders","mta_sts","tls_rpt","bimi","dane"],"type":"string","x-id":"none"},"name":{"type":"string"},"optional":{"description":"An optional extra, such as BIMI, or DANE until a DANE problem holds mail.","type":"boolean"},"reason":{"type":"string"},"recommendation":{"type":"string"},"status":{"description":"green: good; yellow: works, but could be better; red: broken or risky; unknown: not enough data, never counted as a failure.","enum":["green","yellow","red","unknown"],"type":"string"},"status_label":{"type":"string"}},"required":["id","name","status","status_label","optional","reason","recommendation","fix"],"type":"object"},"ScoreFix":{"description":"A check's next step. prepare_plan: prepare a change plan of plan_kind with this purpose and proposal (preparing changes nothing). open_page: open a page of the domain (senders, reports, dns, settings) or the guide doc. check_dns: read the published records now.","properties":{"action":{"enum":["prepare_plan","open_page","check_dns"],"type":"string"},"doc":{"description":"Public documentation slug.","type":"string"},"label":{"type":"string"},"page":{"enum":["senders","reports","dns","settings"],"type":"string"},"plan_kind":{"enum":["dmarc","spf","dkim","mta_sts","tls_rpt","bimi","delegation"],"type":"string"},"proposal":{"additionalProperties":true,"type":"object"},"purpose":{"type":"string"},"record":{"description":"With page dns: the DNS records row to open, its details shown; served opens the records MailGlo serves.","enum":["dnssec","dane","served"],"type":"string"},"target_name":{"type":"string"}},"required":["action","label"],"type":"object"},"ScoreLowered":{"properties":{"check":{"type":"string"},"name":{"type":"string"},"status":{"enum":["green","yellow","red","unknown"],"type":"string"}},"required":["check","name","status"],"type":"object"},"Sender":{"properties":{"attribution":{"type":"string"},"authorization":{"additionalProperties":true,"type":"object"},"baseline":{"additionalProperties":true,"description":"What this sender usually sends.","type":"object"},"can_decide":{"description":"Whether you may record a decision on this sender now (Yes, allow it or Not mine): a person with the senders.confirm right and, in a workspace role, the client's recorded authority. Only the senders list includes it; other answers leave it out.","type":"boolean"},"can_disable":{"description":"Whether Stop allowing is offered on this service: you are a signed-in person with approval authority, it isn't disabled yet, and it passes the domain's SPF now (or MailGlo can't read the SPF to tell). Only the senders list includes it.","type":"boolean"},"can_protect":{"description":"Whether Senders offers stronger protection after Not mine: you may prepare a DMARC change for this domain and its policy isn't p=reject yet. Only the senders list includes it.","type":"boolean"},"cannot_decide":{"description":"When can_decide is false, the first thing missing: not_a_person (an agent, or a call through an AI client), right (no senders.confirm for this domain) or client_permission (the client's recorded permission doesn't cover reports). Only the senders list includes it.","enum":["not_a_person","right","client_permission"],"type":"string"},"change":{"description":"The service's DNS change from Allow or Add that isn't done yet. Only the senders list includes it.","properties":{"external_task_id":{"type":"string","x-id":"task"},"plan_id":{"type":"string","x-id":"plan"},"record":{"type":"string"},"record_name":{"type":"string"},"replaces":{"description":"The record of the same kind DNS serves now. Replace it; a second one breaks both.","type":"string"},"status":{"description":"awaiting_customer: the person publishes record; otherwise someone with change rights applies it.","type":"string"}},"required":["plan_id","status"],"type":"object"},"client_id":{"type":"string","x-id":"cli"},"disable":{"description":"Set once the service is disabled.","properties":{"corrected_record":{"description":"The SPF record to publish, when you publish it yourself. It leaves out every disabled service of the domain.","type":"string"},"disabled_at":{"format":"date-time","type":"string"},"disabled_by":{"description":"The name of the person who disabled it.","type":"string","x-id":"none"},"mode":{"enum":["hosted","customer"],"type":"string"},"problem":{"description":"With not_disabled, what still lets it send.","type":"string"},"state":{"description":"disabling until MailGlo has published the change; publish while your own SPF record still lets the service pass; not_disabled when the change is published but SPF still lets it pass or can't be read (problem says which); disabled once SPF no longer lets it pass.","enum":["disabling","publish","not_disabled","disabled"],"type":"string"}},"required":["state","mode","disabled_at","disabled_by"],"type":"object"},"dns_held":{"description":"True when the current answer was saved without its DNS change, because the person who answered can't change DNS; a person who can makes it. Only the senders list includes it.","type":"boolean"},"domain_id":{"type":"string","x-id":"dom"},"evidence":{"additionalProperties":true,"type":"object"},"first_seen":{"format":"date-time","type":"string"},"icon":{"description":"Path of the service's icon, a 32-pixel PNG MailGlo serves itself. Null for a sender MailGlo can't name, a service it keeps no icon for, or outside the senders list.","nullable":true,"type":"string"},"id":{"type":"string","x-id":"snd"},"kind":{"description":"What the service is, in a few words, such as Marketing email. Null for a sender MailGlo can't name, a service whose kind it doesn't know, or outside the senders list.","nullable":true,"type":"string","x-id":"none"},"label":{"type":"string"},"last_seen":{"description":"Last report within the visible history window; null when the sender appears only in older history.","format":"date-time","nullable":true,"type":"string"},"messages":{"description":"Messages within the visible history window.","format":"int64","type":"integer"},"messages_since":{"description":"Where the message count starts: the plan's visible processed-report history.","format":"date-time","nullable":true,"type":"string"},"network":{"description":"The network most of the sender's addresses belong to: the owner of the announcing ASN and the country it is registered in. Null when no network announces them or outside the senders list.","nullable":true,"properties":{"asn":{"format":"int64","type":"integer"},"country":{"description":"Two-letter code of the country the network is registered in; null when the registry gives none.","nullable":true,"type":"string"},"owner":{"description":"The network owner.","type":"string","x-id":"none"}},"required":["asn","owner","country"],"type":"object"},"notice":{"type":"string"},"provider_id":{"nullable":true,"type":"string","x-id":"none"},"recent_failing_messages":{"description":"Of recent_messages, those that receivers didn't report as passing DMARC, apart from recent_forwarded_messages on the senders list.","format":"int64","type":"integer"},"recent_forwarded_messages":{"description":"Of recent_messages, those that failed DMARC and appear to have been forwarded. They are not counted in recent_failing_messages. Only the senders list sets it.","format":"int64","type":"integer"},"recent_messages":{"description":"Messages in the last 30 days inside the visible history window: what Senders shows as emails this month.","format":"int64","type":"integer"},"responsible_contact":{"nullable":true,"type":"string"},"responsible_department":{"nullable":true,"type":"string"},"reverse_ip":{"description":"The address reverse_name belongs to.","nullable":true,"type":"string"},"reverse_name":{"description":"The reverse DNS name (PTR) of reverse_ip, one of the sender's addresses. Null when none is known or outside the senders list.","nullable":true,"type":"string"},"uncertainty":{"type":"string"}},"required":["id","client_id","domain_id","label","attribution","uncertainty","evidence","first_seen","last_seen","messages","authorization","notice"],"type":"object"},"SenderAnswer":{"properties":{"act":{"description":"The person still has something to do in MailGlo, such as changing their DNS.","type":"boolean"},"answer":{"enum":["ours","not_ours"],"type":"string"},"client":{"type":"string"},"domain":{"type":"string"},"link":{"description":"The domain's Sending services in MailGlo.","type":"string"},"messages":{"description":"Messages receivers reported from it as this domain when the question was asked.","format":"int64","type":"integer"},"outcome":{"description":"What the answer did, once given through this link.","type":"string"},"question":{"type":"string"},"service":{"type":"string"},"state":{"description":"sign_in: the workspace requires two-factor sign-in or single sign-on, so the answer is given in MailGlo. no_access: the person may no longer answer it. Only open carries the question; the other states leave its fields empty.","enum":["open","answered","expired","sign_in","no_access"],"type":"string"},"unknown_server":{"description":"The sender is a server MailGlo could not name.","type":"boolean"},"workspace":{"type":"string"}},"required":["workspace","client","domain","service","unknown_server","question","messages","answer","state","link"],"type":"object"},"SenderCatalogEntry":{"properties":{"id":{"type":"string","x-id":"none"},"ip_ranges":{"description":"The address ranges the service sends from, in CIDR form, so DNS records can name an ip4: or ip6: entry by its service.","items":{"type":"string"},"type":"array"},"name":{"type":"string"},"spf_includes":{"description":"The SPF include domains the service publishes, without include:, so DNS records can name each SPF entry by its service.","items":{"type":"string"},"type":"array"}},"required":["id","name","spf_includes","ip_ranges"],"type":"object"},"SenderChangeResult":{"properties":{"can_undo":{"description":"The answer can be taken back with undo.","type":"boolean"},"external_task_id":{"description":"awaiting_customer: report the record published here.","type":"string","x-id":"task"},"message":{"type":"string"},"outcome":{"enum":["published","awaiting_customer","failed","partial","unknown","prepared","no_change","decided","needs_details"],"type":"string"},"plan_id":{"nullable":true,"type":"string","x-id":"plan"},"plan_version":{"type":"integer"},"reason":{"description":"Why the change needs the technical form: a refusal code, unrecognized_service, self_published, spf_unknown, still_passes, answer_changed or spf_changed.","type":"string"},"record":{"description":"awaiting_customer: the record value to publish.","type":"string"},"record_name":{"description":"awaiting_customer: the DNS name of the record to publish.","type":"string"},"replaces":{"description":"awaiting_customer: the record of the same kind DNS serves now. Replace it; a second one breaks both.","type":"string"},"sender":{"$ref":"#/components/schemas/Sender"}},"required":["outcome","message","plan_id"],"type":"object"},"SenderDisablePreview":{"properties":{"affected":{"description":"Other services that lose sending because they use the same servers.","items":{"type":"string"},"type":"array"},"all_mail":{"description":"SPF fails for every service of the domain afterwards.","type":"boolean"},"all_mail_persists":{"description":"With all_mail, approving services later doesn't undo it.","type":"boolean"},"corrected_record":{"description":"The SPF record to publish, when you publish it yourself.","type":"string"},"digest":{"description":"Send it with Disable.","type":"string","x-id":"none"},"domain":{"type":"string"},"label":{"type":"string"},"mode":{"enum":["hosted","customer"],"type":"string"},"sender_id":{"type":"string","x-id":"snd"}},"required":["sender_id","label","domain","mode","affected","all_mail","all_mail_persists","digest"],"type":"object"},"SenderHistory":{"properties":{"basis":{"description":"What receivers reported.","enum":["receiver_reported"],"type":"string"},"bucket":{"enum":["day"],"type":"string"},"days":{"items":{"$ref":"#/components/schemas/SenderHistoryDay"},"type":"array"},"dkim_keys":{"description":"With sender_id only: the DKIM keys that service's mail was signed with in the period, busiest first, at most 10.","items":{"properties":{"messages":{"description":"Messages signed with this key.","format":"int64","type":"integer"},"name":{"description":"Where receivers look the key up: selector._domainkey.signing-domain.","type":"string","x-id":"none"},"pass_messages":{"description":"Of those, the messages whose signature with this key passed.","format":"int64","type":"integer"}},"required":["name","messages","pass_messages"],"type":"object"},"type":"array"},"domain_id":{"type":"string","x-id":"dom"},"evaluated_at":{"format":"date-time","type":"string"},"ever_reported":{"description":"Whether the domain has any accepted aggregate report, of any age. False means first use; true with no counted day means no reports in this period.","type":"boolean"},"from":{"description":"Start of the first day shown.","format":"date-time","type":"string"},"history_window":{"$ref":"#/components/schemas/HistoryWindow"},"late_report_hours":{"type":"integer"},"latest_report_at":{"description":"When the latest accepted aggregate report was received, of any age.","format":"date-time","nullable":true,"type":"string"},"metric":{"type":"string"},"notes":{"items":{"type":"string"},"type":"array"},"reports":{"format":"int64","type":"integer"},"requested_days":{"type":"integer"},"rows":{"format":"int64","type":"integer"},"rules":{"additionalProperties":{"type":"string"},"type":"object"},"series":{"description":"Up to four services by volume, then Other services and Unattributed sources.","items":{"$ref":"#/components/schemas/SenderHistorySeries"},"type":"array"},"stopped":{"$ref":"#/components/schemas/StoppedMail"},"time_zone":{"enum":["UTC"],"type":"string"},"to":{"description":"The evaluation time; the last day is partial.","format":"date-time","type":"string"},"totals":{"$ref":"#/components/schemas/SenderHistoryCounts"},"units":{"additionalProperties":{"type":"string"},"type":"object"}},"required":["domain_id","metric","basis","bucket","time_zone","requested_days","from","to","evaluated_at","late_report_hours","units","rules","totals","stopped","reports","rows","series","days","history_window","notes","ever_reported","latest_report_at"],"type":"object"},"SenderHistoryCounts":{"description":"Receiver-reported DMARC results. Pass when the receiver evaluated DKIM or SPF as aligned and passing, fail when both failed, otherwise unknown.","properties":{"messages":{"format":"int64","type":"integer"},"reported_fail_messages":{"format":"int64","type":"integer"},"reported_forwarded_messages":{"description":"Messages that failed DMARC and appear to have been forwarded. They are not counted in reported_fail_messages.","format":"int64","type":"integer"},"reported_pass_messages":{"format":"int64","type":"integer"},"reported_unknown_messages":{"format":"int64","type":"integer"},"series_id":{"description":"The series' ID: a sender's stable ID, or other or unattributed.","type":"string","x-id":"snd"}},"required":["messages","reported_pass_messages","reported_fail_messages","reported_unknown_messages"],"type":"object"},"SenderHistoryDay":{"properties":{"counted_reports":{"description":"Reports counted on the day (their window ends on it).","type":"integer"},"date":{"description":"UTC calendar day.","format":"date","type":"string"},"evidence_filter":{"description":"Query for the reported mail whose windows overlap the day.","type":"string"},"from":{"format":"date-time","type":"string"},"reports":{"description":"Accepted report windows overlapping the day.","type":"integer"},"series":{"description":"One entry per response series when totals is not null; empty otherwise.","items":{"$ref":"#/components/schemas/SenderHistoryCounts"},"type":"array"},"state":{"enum":["complete","partial","missing"],"type":"string"},"state_label":{"type":"string"},"to":{"format":"date-time","type":"string"},"totals":{"allOf":[{"$ref":"#/components/schemas/SenderHistoryCounts"}],"description":"Null when no report was counted on the day.","nullable":true}},"required":["date","from","to","state","state_label","reports","counted_reports","totals","series","evidence_filter"],"type":"object"},"SenderHistorySeries":{"allOf":[{"$ref":"#/components/schemas/SenderHistoryCounts"},{"properties":{"appearance_slot":{"description":"A service's fixed chart appearance, recorded when a chart first shows it: color slot % 4, line style floor(slot / 4). Null for Other services and Unattributed sources, which have fixed looks.","maximum":11,"minimum":0,"nullable":true,"type":"integer"},"attribution":{"type":"string"},"id":{"description":"The sender's stable ID, or other or unattributed.","type":"string","x-id":"snd"},"kind":{"enum":["service","other","unattributed"],"type":"string"},"label":{"type":"string"},"reasons":{"additionalProperties":{"format":"int64","type":"integer"},"description":"Unattributed messages by reason: shared_infrastructure, unrecognized_source or not_yet_attributed.","type":"object"},"sender_ids":{"description":"Senders whose messages this series counts.","items":{"type":"string","x-id":"snd"},"type":"array"}},"required":["id","kind","label","sender_ids","appearance_slot"],"type":"object"}]},"Session":{"properties":{"csrf_token":{"type":"string"},"domain":{"description":"After sign-up from a check, the domain checked: the first-domain screen starts with it.","type":"string"},"expires_at":{"format":"date-time","type":"string"},"plan":{"description":"After sign-up from an offer, the plan it asked for: Billing opens at it after the first domain.","enum":["managed"],"type":"string"},"user_id":{"type":"string","x-id":"usr"},"workspace_id":{"type":"string","x-id":"ws"}},"required":["csrf_token","expires_at","user_id"],"type":"object"},"SessionChallenge":{"properties":{"auto_check":{"description":"True while MailGlo checks the active value automatically.","type":"boolean"},"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string","x-id":"chk"},"last_checked_at":{"description":"When MailGlo last looked for the active value, by a manual or an automatic check.","format":"date-time","type":"string"},"message":{"type":"string"},"status":{"enum":["active","none","expired","verified"],"type":"string"}},"required":["status"],"type":"object"},"SessionInfo":{"properties":{"created_at":{"format":"date-time","type":"string"},"current":{"type":"boolean"},"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string","x-id":"sess"},"last_seen_at":{"format":"date-time","type":"string"},"user_agent":{"type":"string"}},"required":["id","created_at","last_seen_at","expires_at","user_agent","current"],"type":"object"},"SessionStep":{"properties":{"detail":{"type":"string"},"key":{"type":"string"},"state":{"enum":["done","current","waiting","todo"],"type":"string"},"title":{"type":"string"}},"required":["key","title","state","detail"],"type":"object"},"ShareGrant":{"properties":{"action":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"id":{"type":"string","x-id":"shgrt"},"membership_id":{"type":"string","x-id":"mem"},"name":{"type":"string"},"revoked_at":{"format":"date-time","nullable":true,"type":"string"},"share_id":{"type":"string","x-id":"shr"},"status":{"enum":["active","revoked"],"type":"string"}},"required":["id","share_id","membership_id","name","action","status","created_at","revoked_at"],"type":"object"},"SharedDomain":{"properties":{"change_scope":{"items":{"type":"string"},"type":"array"},"domain":{"type":"string"},"domain_id":{"nullable":true,"type":"string","x-id":"dom"},"message":{"type":"string"},"owner_name":{"type":"string"},"owner_workspace_id":{"description":"Set only while the share is active; use it as the workspaceId of domain requests.","nullable":true,"type":"string","x-id":"ws"},"role":{"enum":["viewer","manager"],"type":"string"},"share_id":{"type":"string","x-id":"shr"},"state":{"description":"mfa_required or sso_required: the owner requires two-factor authentication or single sign-on this request has not met; the share is listed without identifiers.","enum":["active","disabled","paused","revoked","mfa_required","sso_required"],"type":"string"}},"required":["share_id","owner_name","domain","role","change_scope","state","message","owner_workspace_id","domain_id"],"type":"object"},"SignupInput":{"properties":{"display_name":{"type":"string"},"domain":{"description":"Optional. The domain the person checked before signing up; the confirmation email names it and the first-domain screen starts with it.","type":"string"},"email":{"type":"string"},"marketing_opt_in":{"default":false,"type":"boolean"},"plan":{"description":"Optional, with domain. The plan an offer on the check asked for: after the first domain, MailGlo opens Billing at that plan. Nothing is charged until the person confirms there.","enum":["managed"],"type":"string"},"privacy_version":{"type":"string"},"ref":{"description":"Optional. The host of the site the visitor came from, as the sign-up page's address carried it. Added to that day's count of sign-up forms per source and not kept with the account.","type":"string"},"terms_version":{"type":"string"},"utm_source":{"description":"Optional. The listing tag the sign-up page's address carried. Added to that day's count of sign-up forms per source and not kept with the account.","type":"string"},"workspace_name":{"description":"Optional. Without it the workspace is named after the email domain (or, at a personal mailbox provider, the person), and then after the first domain it adds.","type":"string"}},"required":["email","display_name","terms_version","privacy_version"],"type":"object"},"SignupResult":{"properties":{"dev_token":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"}},"required":["status","message"],"type":"object"},"SiteCheck":{"properties":{"button_color":{"type":"string"},"button_link":{"type":"string"},"button_text":{"type":"string"},"name":{"description":"The name visitors read: the report branding display name, else the workspace name.","type":"string"},"saved":{"description":"False until the first save; the embed shows nothing until then.","type":"boolean"}},"required":["button_text","button_link","button_color","name","saved"],"type":"object"},"SpfEntries":{"properties":{"can_add":{"type":"boolean"},"can_remove":{"type":"boolean"},"can_restore":{"type":"boolean"},"dns_lookups":{"description":"DNS lookups receivers make for the whole record.","type":"integer"},"editable":{"type":"boolean"},"entries":{"items":{"properties":{"added_at":{"format":"date-time","type":"string"},"added_by":{"description":"The name of the person who added it.","type":"string","x-id":"none"},"entry":{"description":"The entry as the record has it, such as ip4:203.0.113.10.","type":"string"},"label":{"description":"The name given when it was added here.","type":"string"},"lookups":{"description":"DNS lookups this entry costs, through every include.","type":"integer"},"messages":{"description":"Mail from its addresses in the last 30 days; ip4 and ip6 entries only.","format":"int64","type":"integer"}},"required":["entry","lookups"],"type":"object"},"type":"array"},"lookup_limit":{"type":"integer"},"record":{"description":"The SPF record published now; empty when there is none.","type":"string"},"refusal":{"type":"string"},"unknown":{"description":"Set when the lookups cannot all be counted now.","type":"string"}},"required":["record","entries","dns_lookups","lookup_limit","editable","can_remove","can_add","can_restore"],"type":"object"},"SpfEntryChange":{"properties":{"add":{"properties":{"kind":{"enum":["ip4","ip6","a","mx","include"],"type":"string","x-enum-varnames":["SpfEntryChangeAddKindIp4","SpfEntryChangeAddKindIp6","SpfEntryChangeAddKindA","SpfEntryChangeAddKindMx","SpfEntryChangeAddKindInclude"]},"label":{"description":"The name the person gives the sender, such as Office server.","maxLength":200,"type":"string"},"value":{"description":"The address or network for ip4 and ip6, the domain for include; for a and mx, another domain, or empty for this one.","maxLength":255,"type":"string"}},"required":["kind"],"type":"object"},"remove":{"description":"One entry exactly as the published record has it, such as ip4:203.0.113.10.","maxLength":512,"type":"string"}},"type":"object"},"SpfEntryPreview":{"properties":{"added":{"type":"string"},"blockers":{"items":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"array"},"current":{"description":"The SPF record published now; empty when there is none.","type":"string"},"dns_lookups":{"description":"DNS lookups receivers make for the new record, through every include.","type":"integer"},"lookup_limit":{"description":"Receivers stop at this many lookups (10).","type":"integer"},"record":{"description":"The record the change would publish.","type":"string"},"removed":{"type":"string"},"unknown":{"description":"Set when an include could not be read, so the count is incomplete.","type":"string"},"void_lookups":{"type":"integer"}},"required":["current","record","dns_lookups","void_lookups","lookup_limit","blockers"],"type":"object"},"SpfMethodOptions":{"properties":{"lookup_limit":{"type":"integer"},"method":{"description":"How the domain chose to have hosted SPF answer.","enum":["managed","includes","flatten","macro"],"type":"string"},"proposal":{"additionalProperties":true,"description":"The SPF change that keeps every hosted service and the ending; add method to prepare it.","type":"object"},"refusal":{"description":"Why no proposal is offered here.","type":"string"},"served_as":{"description":"How hosted SPF answers now.","enum":["","includes","flatten","macro"],"type":"string"},"warning":{"description":"What per-server answers cost, to show with that way.","type":"string"},"ways":{"items":{"properties":{"blockers":{"items":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"array"},"dns_lookups":{"description":"DNS lookups receivers would make, through every include.","type":"integer"},"method":{"enum":["includes","flatten","macro"],"type":"string"},"unknown":{"description":"Set when the lookups cannot all be counted now.","type":"string"}},"required":["method","dns_lookups","blockers"],"type":"object"},"type":"array"}},"required":["method","served_as","ways","lookup_limit","warning"],"type":"object"},"SsoConnection":{"properties":{"client_id":{"type":"string","x-id":"none"},"default_role":{"type":"string"},"enabled":{"type":"boolean"},"issuer":{"description":"The OpenID Connect issuer, or the SAML provider's entity ID.","type":"string"},"kind":{"enum":["oidc","saml"],"type":"string"},"required":{"description":"People at the proved domains reach the workspace only through its single sign-on; owners keep their password and code. Their own tokens, MCP connections and agents keep working.","type":"boolean"},"saml_metadata":{"description":"The SAML provider's metadata as saved.","type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["kind","issuer","client_id","default_role","enabled","updated_at"],"type":"object"},"SsoDomain":{"properties":{"created_at":{"format":"date-time","type":"string"},"domain":{"type":"string"},"id":{"type":"string","x-id":"ssod"},"record_name":{"type":"string"},"record_value":{"type":"string"},"verified_at":{"format":"date-time","nullable":true,"type":"string"}},"required":["id","domain","record_name","record_value","created_at"],"type":"object"},"StoppedMail":{"description":"Mail receivers reported they rejected (reject) or marked suspicious (quarantine) in the period, for the whole domain. What receivers reported doing, not inbox placement; only receivers that send reports are counted.","properties":{"answered":{"description":"False for a caller who sees the domain through a share and can't read Senders: own, unanswered and not allowed are then 0 and senders is empty, because they rest on the answers on Senders.","type":"boolean"},"enforced_messages":{"description":"Of messages, the part the domain's own DMARC policy stopped. messages is everything receivers stopped; don't add the two.","format":"int64","type":"integer"},"messages":{"format":"int64","type":"integer"},"not_allowed_messages":{"description":"From servers and signers MailGlo can't name that nobody answered for, and from services marked not yours or no longer used.","format":"int64","type":"integer"},"own_messages":{"description":"From services allowed on Senders: usually forwarding or a setup gap.","format":"int64","type":"integer"},"quarantined_messages":{"format":"int64","type":"integer"},"rejected_messages":{"format":"int64","type":"integer"},"senders":{"description":"Services with stopped mail that may be the customer's own.","items":{"properties":{"allowed":{"type":"boolean"},"id":{"type":"string","x-id":"snd"},"label":{"type":"string"},"messages":{"format":"int64","type":"integer"}},"required":["id","label","allowed","messages"],"type":"object"},"type":"array"},"unanswered_messages":{"description":"Mail that may be the customer's own and still needs an answer on Senders.","format":"int64","type":"integer"}},"required":["messages","rejected_messages","quarantined_messages","enforced_messages","answered","own_messages","unanswered_messages","not_allowed_messages","senders"],"type":"object"},"Subscription":{"properties":{"billed_units":{"description":"How many billable domains the current paid period is paid for on a per-domain plan.","type":"integer"},"cancel_at_period_end":{"type":"boolean"},"catalog_version":{"type":"string"},"contract":{"allOf":[{"$ref":"#/components/schemas/ContractSummary"}],"description":"The agreement in force on an operator-assigned Enterprise plan (#444 PR 12); null on every self-serve plan. Such a plan is invoiced by MailGlo directly and changed by agreement, not through checkout.","nullable":true},"explanations":{"items":{"type":"string"},"type":"array"},"founding":{"additionalProperties":true,"type":"object"},"grace_until":{"format":"date-time","nullable":true,"type":"string"},"interval":{"description":"The billing interval: month or year.","enum":["month","year"],"type":"string"},"payment_method":{"additionalProperties":true,"nullable":true,"type":"object"},"payment_status":{"enum":["current","processor_unavailable","disputed","unpaid","canceled"],"type":"string"},"payment_status_label":{"type":"string"},"payment_url":{"description":"The processor's page for a payment waiting on the customer (an unpaid renewal or an upgrade needing confirmation). Null when nothing is waiting, and for anyone but the workspace owner or an Administrator holding billing.manage.","nullable":true,"type":"string"},"pending_change":{"additionalProperties":true,"nullable":true,"type":"object"},"price_cents":{"description":"The plan's rate for the current paid period and billing interval. Prorated charges during the period are on the invoices.","type":"integer"},"renewal_at":{"format":"date-time","nullable":true,"type":"string"},"renewal_cents":{"description":"What the next renewal charges, for renewal_interval: lower than price_cents after a billable domain is removed, or the price of a change set for the renewal. Equal to price_cents when no renewal is ahead.","type":"integer"},"renewal_interval":{"description":"The billing interval the next renewal charges for.","enum":["month","year"],"type":"string"},"review_hold":{"description":"Finance is reviewing a renewal withdrawn at the processor; the paid plan continues during the review, also after grace_until.","type":"boolean"},"state":{"type":"string"},"state_label":{"type":"string"},"tier":{"nullable":true,"type":"string"}},"required":["state","state_label","price_cents","renewal_cents","renewal_interval","billed_units","review_hold","interval","cancel_at_period_end","founding","catalog_version","explanations","payment_status","payment_status_label"],"type":"object"},"SupportInput":{"additionalProperties":false,"properties":{"case_id":{"type":"string","x-id":"case"},"category":{"enum":["platform_fault","product_help","billing","security","consulting"],"type":"string"},"client_id":{"type":"string","x-id":"cli"},"contact_email":{"type":"string"},"description":{"minLength":1,"type":"string"},"page":{"type":"string"},"subject":{"minLength":1,"type":"string"},"visible_error":{"type":"string"}},"required":["category","subject","description"],"type":"object"},"TagChange":{"properties":{"after":{"type":"string"},"before":{"type":"string"},"change":{"enum":["kept","added","changed","removed"],"type":"string"},"meaning":{"type":"string"},"tag":{"type":"string"}},"required":["tag","meaning","change"],"type":"object"},"TlsResults":{"properties":{"days":{"items":{"properties":{"day":{"format":"date","type":"string"},"failed_sessions":{"format":"int64","type":"integer"},"policy_domain":{"type":"string"},"policy_type":{"description":"sts, tlsa or no-policy-found.","type":"string"},"reports":{"type":"integer"},"successful_sessions":{"format":"int64","type":"integer"}},"required":["day","policy_type","policy_domain","successful_sessions","failed_sessions","reports"],"type":"object"},"type":"array"},"domain_id":{"type":"string","x-id":"dom"},"failure_types":{"description":"The five result types with the most failed sessions.","items":{"properties":{"failed_sessions":{"format":"int64","type":"integer"},"result_type":{"type":"string"}},"required":["result_type","failed_sessions"],"type":"object"},"type":"array"},"from":{"format":"date-time","type":"string"},"history_window":{"nullable":true,"properties":{"allowance":{"type":"string"},"effective_from":{"format":"date-time","type":"string"},"history_omitted":{"type":"boolean"},"reason":{"type":"string"},"requested_from":{"format":"date-time","type":"string"},"visible_from":{"format":"date-time","type":"string"}},"type":"object"},"last_window_end":{"format":"date-time","nullable":true,"type":"string"},"note":{"type":"string"},"reporters":{"items":{"type":"string"},"type":"array"},"state":{"description":"From the last reported window: no or overdue reports leave transport security unknown.","enum":["unknown","receiving","stale"],"type":"string"},"state_label":{"type":"string"},"time_zone":{"description":"Days are UTC report days.","type":"string"},"to":{"format":"date-time","type":"string"},"totals":{"properties":{"failed_sessions":{"format":"int64","type":"integer"},"reports":{"type":"integer"},"successful_sessions":{"format":"int64","type":"integer"}},"required":["successful_sessions","failed_sessions","reports"],"type":"object"},"units":{"type":"string"}},"required":["domain_id","from","to","time_zone","units","state","state_label","totals","days","failure_types","reporters","note"],"type":"object"},"TokenCreated":{"properties":{"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string","x-id":"tok"},"notice":{"type":"string"},"prefix":{"type":"string"},"token":{"type":"string"}},"required":["id","token","prefix","expires_at","notice"],"type":"object"},"TokenInfo":{"properties":{"created_at":{"format":"date-time","type":"string"},"expires_at":{"format":"date-time","type":"string"},"id":{"type":"string","x-id":"tok"},"label":{"type":"string"},"last_used_at":{"format":"date-time","nullable":true,"type":"string"},"owner_principal_id":{"type":"string","x-id":"prn"},"prefix":{"type":"string"},"revoked_at":{"format":"date-time","nullable":true,"type":"string"},"usable":{"description":"True while the token is neither revoked nor expired, by the server's clock.","type":"boolean"}},"required":["id","prefix","label","created_at","expires_at","owner_principal_id","usable"],"type":"object"},"Usage":{"properties":{"active_counted_domains":{"description":"Billable units consuming capacity now: each main (registrable) domain with an active hostname counts once and includes 5 of its hostnames; each further 5 hostnames of the same main domain count as one more. This is the quantity a per-domain price charges.","type":"integer"},"cancel_at_period_end":{"type":"boolean"},"catalog_version":{"type":"string"},"counted_hostnames":{"description":"The active hostnames that make up active_counted_domains.","type":"integer"},"domains":{"description":"Each domain: domain_ref, counted and basis; to a person who may see its client, also domain, domain_id, client_id and, for a client's domain, client (the client's name).","items":{"additionalProperties":true,"type":"object"},"type":"array"},"history":{"description":"Every change to the counted domains and to the domains the plan holds, newest first. Each has event, at, counted_after and capacity_after, plus what (what changed, for example \"started counting\" after a domain, or \"Your plan now holds 20 domains\") and why (the reason, one sentence). A domain's change has domain_ref and, to a person who may see its client, domain and, for a client's domain, client.","items":{"additionalProperties":true,"type":"object"},"type":"array"},"interval":{"description":"The billing interval.","enum":["month","year"],"type":"string"},"notices":{"items":{"type":"string"},"type":"array"},"pending_change":{"additionalProperties":true,"nullable":true,"type":"object"},"price_cents":{"description":"What each renewal charges for the billing interval.","type":"integer"},"purchased_capacity":{"additionalProperties":{"type":"integer"},"type":"object"},"renewal_at":{"format":"date-time","nullable":true,"type":"string"},"run_off_domains":{"description":"Domains kept with hosting and intake after paid access ended.","type":"integer"},"state":{"type":"string"},"tier":{"nullable":true,"type":"string"},"workspace_id":{"type":"string","x-id":"ws"}},"required":["workspace_id","state","catalog_version","price_cents","interval","purchased_capacity","active_counted_domains","run_off_domains","domains","history","cancel_at_period_end","notices"],"type":"object"},"VerificationResult":{"properties":{"dispute_open":{"type":"boolean"},"domain":{"$ref":"#/components/schemas/Domain"},"message":{"type":"string"},"monitoring":{"allOf":[{"$ref":"#/components/schemas/ActivationResult"}],"description":"After a verification, MailGlo starts monitoring by itself: the outcome, such as activated, or capacity_required with the plan's choices. Absent when the request ran under an idempotency key; the domain then shows the outcome."},"observed":{"$ref":"#/components/schemas/DnsAnswer"},"retry_after":{"format":"date-time","type":"string"},"status":{"enum":["verified","not_found","lookup_failed","expired","conflict"],"type":"string"}},"required":["status","observed","message","domain","dispute_open"],"type":"object"},"Webhook":{"properties":{"consecutive_failures":{"type":"integer"},"created_at":{"format":"date-time","type":"string"},"description":{"type":"string"},"disabled_at":{"format":"date-time","nullable":true,"type":"string"},"disabled_reason":{"nullable":true,"type":"string"},"failing_since":{"format":"date-time","nullable":true,"type":"string"},"id":{"type":"string","x-id":"whk"},"kinds":{"description":"The only event kinds it gets; empty is every kind.","items":{"type":"string"},"type":"array"},"last_success_at":{"format":"date-time","nullable":true,"type":"string"},"mine":{"type":"boolean"},"secret":{"description":"Returned once, when the endpoint is added.","type":"string"},"status":{"enum":["pending_verification","active","disabled"],"type":"string"},"subscriber_id":{"type":"string","x-id":"prn"},"subscriber_name":{"type":"string"},"url":{"type":"string"},"verified_at":{"format":"date-time","nullable":true,"type":"string"},"zapier":{"description":"MailGlo's Zapier app added this endpoint through its connection; it goes when that connection ends.","type":"boolean"}},"required":["id","url","description","status","subscriber_id","subscriber_name","mine","created_at","verified_at","consecutive_failures","failing_since","last_success_at","disabled_at","disabled_reason","kinds","zapier"],"type":"object"},"WebhookDelivery":{"properties":{"attempts":{"type":"integer"},"created_at":{"format":"date-time","type":"string"},"duration_ms":{"nullable":true,"type":"integer"},"event_id":{"format":"int64","nullable":true,"type":"integer","x-id":"none"},"finished_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"type":"string","x-id":"whd"},"kind":{"type":"string"},"last_attempt_at":{"format":"date-time","nullable":true,"type":"string"},"last_error":{"nullable":true,"type":"string"},"next_attempt_at":{"format":"date-time","nullable":true,"type":"string"},"response_code":{"nullable":true,"type":"integer"},"status":{"enum":["pending","delivered","failed","cancelled"],"type":"string"}},"required":["id","event_id","kind","status","attempts","response_code","last_error","duration_ms","created_at","last_attempt_at","next_attempt_at","finished_at"],"type":"object"},"WebhookList":{"properties":{"events":{"items":{"properties":{"description":{"type":"string"},"kind":{"type":"string"}},"required":["kind","description"],"type":"object"},"type":"array"},"limits":{"additionalProperties":true,"type":"object"},"webhooks":{"items":{"$ref":"#/components/schemas/Webhook"},"type":"array"}},"required":["webhooks","events","limits"],"type":"object"},"WebhookTestResult":{"properties":{"challenge_echoed":{"type":"boolean"},"delivered":{"type":"boolean"},"delivery":{"$ref":"#/components/schemas/WebhookDelivery"},"next_step":{"type":"string"},"status":{"enum":["pending_verification","active","disabled"],"type":"string"},"verified_now":{"type":"boolean"}},"required":["delivery","delivered","challenge_echoed","verified_now","status"],"type":"object"}},"securitySchemes":{"bearer":{"description":"Personal or agent API token (prefix mgp_).","scheme":"bearer","type":"http"},"session":{"description":"Browser session; mutations also require the X-CSRF-Token header.","in":"cookie","name":"mailglo_session","type":"apiKey"}}},"info":{"description":"The MailGlo API. Every operation applies the same authorization to every caller.","title":"MailGlo API","version":"v1"},"openapi":"3.0.3","paths":{"/agent-links/redeem":{"post":{"operationId":"RedeemAgentLink","requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string"}},"required":["code"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Token and the workspace it acts in."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Exchange a temporary agent link's code, once, for a bearer token that ends at the link's deadline. Only POST redeems; the code is never read from a URL.","tags":["agents"]}},"/agreements":{"get":{"operationId":"ListAgreements","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AgreementVersion"},"type":"array"}}},"description":"Agreement versions."}},"security":[],"summary":"The current version of each agreement.","tags":["auth"]}},"/billing-contacts/confirm":{"post":{"operationId":"ConfirmBillingContact","requestBody":{"content":{"application/json":{"schema":{"properties":{"token":{"type":"string"}},"required":["token"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Confirmed."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Confirm a billing contact address from its emailed link; only confirmed contacts receive billing notices.","tags":["billing"]}},"/catalog":{"get":{"operationId":"GetPublicCatalog","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogVersion"}}},"description":"Catalog."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"The published plans, prices and terms.","tags":["billing"]}},"/check":{"get":{"operationId":"CheckPublicDns","parameters":[{"in":"query","name":"domain","required":true,"schema":{"type":"string"}},{"explode":true,"in":"query","name":"selector","schema":{"items":{"type":"string"},"type":"array"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Public check."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Check any domain's public email-authentication DNS without signup or ownership proof. Public records only; DKIM reads common selector names and any supplied. The result carries diagnostic fields and a separate named service_information field.","tags":["website"]}},"/demo/case-packet":{"get":{"operationId":"GetDemoCasePacket","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Synthetic packet."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"An example case packet in the same shape as a real one; no subscription or credential needed.","tags":["website"]}},"/discovery":{"get":{"operationId":"GetPublicDiscovery","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Discovery."}},"security":[],"summary":"Catalog, entry points and response states for agents without credentials.","tags":["agents"]}},"/docs":{"get":{"operationId":"ListPublicDocs","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Results."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Versioned public documentation index.","tags":["website"]}},"/docs/{slug}":{"get":{"operationId":"GetPublicDoc","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Result."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"One documentation page.","tags":["website"]},"parameters":[{"in":"path","name":"slug","required":true,"schema":{"type":"string"}}]},"/docs/{slug}/feedback":{"parameters":[{"in":"path","name":"slug","required":true,"schema":{"type":"string"}}],"post":{"operationId":"SubmitDocFeedback","parameters":[{"$ref":"#/components/parameters/PublicIdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"body":{"type":"string"},"contact":{"type":"string"}},"required":["body"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Result."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Report a documentation error or an unanswered question.","tags":["website"]}},"/exports/{token}":{"get":{"operationId":"RedeemExport","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}},"text/csv":{"schema":{"type":"string"}}},"description":"Export content."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Download an export; requires the recipient's current export rights.","tags":["evidence"]},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}]},"/health":{"get":{"operationId":"GetHealth","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}},"description":"Health status."}},"security":[],"summary":"Report server and database health.","tags":["system"]}},"/intake/dmarc/{token}":{"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}],"post":{"operationId":"ReceiveAggregateReport","parameters":[{"description":"Transport authentication of the report sender.","in":"header","name":"X-Reporter-Auth","schema":{"enum":["verified","failed","unknown"],"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntakeResult"}}},"description":"Intake outcome."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Reporting destination for one DMARC aggregate report (XML, gzip or zip). Routing only; content grants nothing.","tags":["evidence"]}},"/intake/tls/{token}":{"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}],"post":{"operationId":"ReceiveTlsReport","parameters":[{"in":"header","name":"X-Reporter-Auth","schema":{"enum":["verified","failed","unknown"],"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntakeResult"}}},"description":"Intake outcome."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Reporting destination for one TLS report (JSON or gzip).","tags":["evidence"]}},"/interest":{"post":{"operationId":"SubmitInterest","parameters":[{"$ref":"#/components/parameters/PublicIdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"marketing_opt_in":{"type":"boolean"},"name":{"type":"string"},"notice_version":{"type":"string"},"organization":{"type":"string"},"plan":{"description":"The plan a quote request is about, preselected from the pricing page's quote links. A later request without one keeps the plan named before.","enum":["enterprise"],"type":"string"},"question":{"type":"string"},"source":{"type":"string"}},"required":["email","notice_version"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Result."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Join the interest list or ask a question; never creates an account or charge.","tags":["website"]}},"/interest/notice":{"get":{"operationId":"GetContactNotice","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Result."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"The contact-data notice shown before any contact data is collected.","tags":["website"]}},"/invitations/accept":{"post":{"operationId":"AcceptInvitation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInvitationInput"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptedInvitation"}}},"description":"Invitation accepted."},"default":{"$ref":"#/components/responses/Error"}},"security":[{},{"session":[]}],"summary":"Accept an invitation as its verified addressee.","tags":["members"]}},"/mcp/authorizations/{requestId}":{"get":{"operationId":"GetMcpAuthorization","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"The pending sign-in."},"default":{"$ref":"#/components/responses/Error"}},"summary":"A pending MCP sign-in, for the consent page: the AI client, where it sends the browser, the workspaces the signed-in person can connect and what the client gets. Needs a browser session.","tags":["agents"]},"parameters":[{"in":"path","name":"requestId","required":true,"schema":{"maxLength":200,"type":"string","x-id":"none"}}],"post":{"operationId":"DecideMcpAuthorization","requestBody":{"content":{"application/json":{"schema":{"properties":{"decision":{"enum":["allow","deny"],"type":"string"},"workspace_id":{"type":"string","x-id":"ws"}},"required":["decision"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"redirect_to":{"type":"string","x-id":"none"}},"required":["redirect_to"],"type":"object"}}},"description":"Where the browser goes next."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Allow the AI client to act as the signed-in person in one workspace they belong to, or deny it. Returns where the browser goes next, with a single-use code or the refusal. Answered once.","tags":["agents"]}},"/me":{"get":{"operationId":"GetMe","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}},"description":"Current principal."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Describe the authenticated principal and its workspace memberships.","tags":["auth"]}},"/me/agent-guide":{"put":{"operationId":"SetAgentGuide","requestBody":{"content":{"application/json":{"schema":{"properties":{"dismissed":{"type":"boolean"}},"required":["dismissed"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Saved."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Put the \"Connect your AI assistant\" guide away for the signed-in person, or bring it back. It stays as chosen in every workspace; Settings, Agents and API, Keep Claude or ChatGPT connected always reopens it.","tags":["auth"]}},"/me/mfa":{"post":{"operationId":"StartMfa","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaEnrollment"}}},"description":"Enrollment secret; confirm it with a code."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Begin authenticator enrollment.","tags":["auth"]}},"/me/mfa/confirm":{"post":{"operationId":"ConfirmMfa","requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string"},"secret":{"type":"string"}},"required":["secret","code"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Enrolled."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Confirm authenticator enrollment.","tags":["auth"]}},"/me/mfa/disable":{"post":{"description":"Needs a current authenticator code from a signed-in session. Refused while a workspace you belong to requires two-step sign-in.","operationId":"DisableMfa","requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string"}},"required":["code"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Turned off."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Turn off your own two-step sign-in.","tags":["auth"]}},"/me/sessions":{"get":{"operationId":"ListMySessions","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SessionInfo"},"type":"array"}}},"description":"Active sessions."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List active sessions.","tags":["auth"]}},"/me/sessions/{sessionId}":{"delete":{"operationId":"RevokeMySession","parameters":[{"in":"path","name":"sessionId","required":true,"schema":{"type":"string","x-id":"sess"}}],"responses":{"204":{"description":"Revoked."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Revoke one session.","tags":["auth"]}},"/me/sign-in-accounts":{"get":{"description":"Each linked account with when it was added and last used. Removed accounts are not listed.","operationId":"ListMySignInAccounts","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"accounts":{"items":{"properties":{"created_at":{"format":"date-time","type":"string"},"email":{"type":"string"},"id":{"description":"Names this link for removal.","type":"string","x-id":"none"},"last_used_at":{"format":"date-time","type":"string"},"provider":{"enum":["google","microsoft"],"type":"string"}},"required":["id","provider","email","created_at","last_used_at"],"type":"object"},"type":"array"},"has_password":{"description":"Whether you can also sign in with a password.","type":"boolean"}},"required":["accounts","has_password"],"type":"object"}}},"description":"Linked accounts."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List the Google and Microsoft accounts that sign you in.","tags":["auth"]}},"/me/sign-in-accounts/{accountId}":{"delete":{"description":"The account no longer signs you in, and signing in with it again doesn't link it back by address. Refused with 409 password_required when it is your only way to sign in.","operationId":"RemoveMySignInAccount","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"type":"string","x-id":"none"}}],"responses":{"204":{"description":"Removed."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Stop a Google or Microsoft account from signing you in.","tags":["auth"]}},"/me/tokens":{"get":{"operationId":"ListMyTokens","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TokenInfo"},"type":"array"}}},"description":"Tokens (hashes are never returned)."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List personal API tokens.","tags":["auth"]},"post":{"operationId":"CreateMyToken","requestBody":{"content":{"application/json":{"schema":{"properties":{"days":{"type":"integer"},"label":{"type":"string"}},"required":["label","days"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCreated"}}},"description":"Token created."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Create a personal API token for the CLI. Shown once.","tags":["auth"]}},"/me/tokens/{tokenId}":{"delete":{"operationId":"RevokeMyToken","parameters":[{"in":"path","name":"tokenId","required":true,"schema":{"type":"string","x-id":"tok"}}],"responses":{"204":{"description":"Revoked."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Revoke a personal API token.","tags":["auth"]}},"/me/workspace":{"post":{"description":"For a person an owner removed, or one whose workspace closed. The workspace is named after the address's domain, as at signup, and the person is its owner. Refused with `conflict` while the person belongs to or owns a workspace that isn't closed, so one person has at most one free workspace. Agents can't call it.","operationId":"StartWorkspace","requestBody":{"content":{"application/json":{"schema":{"properties":{"privacy_version":{"description":"The current Privacy Policy version the person accepted.","type":"string"},"terms_version":{"description":"The current Terms of Service version the person accepted.","type":"string"}},"required":["terms_version","privacy_version"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"workspace_id":{"type":"string","x-id":"ws"}},"required":["workspace_id"],"type":"object"}}},"description":"Created. Open the workspace with its id."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Start a free workspace for a signed-in person who is in no workspace.","tags":["auth"]}},"/mfa-resets":{"post":{"operationId":"RequestMfaReset","requestBody":{"content":{"application/json":{"schema":{"properties":{"password":{"type":"string"},"token":{"type":"string"}},"required":["token","password"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"properties":{"eligible_at":{"description":"When two-step sign-in turns off unless the member or an owner cancels the reset first.","format":"date-time","type":"string"},"message":{"type":"string"},"status":{"type":"string"}},"required":["status","eligible_at"],"type":"object"}}},"description":"Reset waiting period started."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Start a delayed multifactor reset that owners are notified about.","tags":["auth"]}},"/mfa-resets/pending":{"get":{"operationId":"ListMfaResets","responses":{"200":{"content":{"application/json":{"schema":{"items":{"properties":{"created_at":{"format":"date-time","type":"string"},"eligible_at":{"format":"date-time","type":"string"},"id":{"type":"string","x-id":"mfar"},"own":{"type":"boolean"},"user_email":{"type":"string"}},"required":["id","user_email","eligible_at","own"],"type":"object"},"type":"array"}}},"description":"Waiting resets."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List waiting multifactor resets for yourself and for members of workspaces you own.","tags":["auth"]}},"/mfa-resets/{resetId}/cancel":{"parameters":[{"in":"path","name":"resetId","required":true,"schema":{"type":"string","x-id":"mfar"}}],"post":{"operationId":"CancelMfaReset","responses":{"204":{"description":"Cancelled."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Cancel a waiting multifactor reset (the member, or an owner of a workspace they belong to).","tags":["auth"]}},"/notification-unsubscribe/{token}":{"get":{"operationId":"OpenNotificationUnsubscribe","responses":{"303":{"description":"The unsubscribe page.","headers":{"Location":{"schema":{"type":"string"}}}},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Send a browser that opens the List-Unsubscribe link to the unsubscribe page, which confirms with one click. Changes nothing itself.","tags":["reports"]},"parameters":[{"description":"The token from one notification email, naming one person, workspace and category.","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"post":{"description":"The List-Unsubscribe target of every notification email, also used by the unsubscribe page. Any request body, such as List-Unsubscribe=One-Click, is accepted. Using a link again changes nothing more. The daily digest's link turns off email for every category delivered in the digest.","operationId":"UnsubscribeNotifications","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"category":{"type":"string"},"category_label":{"type":"string"},"workspace":{"type":"string"}},"required":["category","category_label","workspace"],"type":"object"}}},"description":"Email for that category is off."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"One-click unsubscribe (RFC 8058) from one notification category's email. Needs no sign-in; the notices stay in MailGlo.","tags":["reports"]}},"/password-resets":{"post":{"description":"Twenty requests from one client address an hour are accepted; later ones are refused with `rate_limited` until the hour ends. The limit applies before any account lookup, so the refusal is the same for every email. An empty or malformed address is refused with `invalid_request` before the limit counts it.","operationId":"RequestPasswordReset","requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"description":"One email address, such as name@example.com, without a display name.","maxLength":254,"type":"string"}},"required":["email"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}},"description":"Request recorded."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Request a password reset email. The answer is identical for unknown addresses.","tags":["auth"]}},"/password-resets/confirm":{"post":{"operationId":"ConfirmPasswordReset","requestBody":{"content":{"application/json":{"schema":{"properties":{"password":{"type":"string"},"token":{"type":"string"},"totp_code":{"type":"string"}},"required":["token","password"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Password changed."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Set a new password from a reset link; signs out all sessions and notifies owners.","tags":["auth"]}},"/payments/webhook":{"post":{"operationId":"ReceiveProviderEvent","parameters":[{"in":"header","name":"X-Processor-Signature","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderEvent"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}},"description":"Outcome."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Processor notification endpoint (signed). Replays are ignored.","tags":["billing"]}},"/preferences":{"post":{"operationId":"UpdateContactPreferences","requestBody":{"content":{"application/json":{"schema":{"properties":{"marketing":{"type":"boolean"},"token":{"type":"string"}},"required":["token","marketing"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Updated."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Change marketing preference with the link sent to the address itself.","tags":["website"]}},"/pricing/quote":{"get":{"description":"Answers from the catalog checkout uses. Each main domain counts as one domain, with up to 5 of its hostnames; each further 5 hostnames of the same main domain count as one more. The result has catalog_version, domains, currency, interval (month), monthly_cents (0 on the free plan; on a paid plan the first domain's price plus each further domain's; null above the largest plan), plan (the suggested catalog plan, or null), suggested_plan (its code, or null), summary, and, when the free plan fits, optional_plan (the least expensive paid plan). Above the largest self-serve plan contact_sales is true, route names the catalog's route and there is no automatic price.","operationId":"PricingQuote","parameters":[{"description":"Number of domains: main domains, plus one for each further 5 hostnames of the same main domain.","in":"query","name":"domains","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"The suggested plan and its monthly price."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"The plan MailGlo suggests for a number of domains, with its monthly list price for that many, from the published catalog. A suggestion buys or changes nothing.","tags":["website"]}},"/processing":{"get":{"operationId":"GetProcessingFacts","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Facts."}},"security":[],"summary":"How customer data is processed, by whom, where and for how long.","tags":["security"]}},"/protocol-matrix":{"get":{"operationId":"GetProtocolMatrix","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Matrix."}},"security":[],"summary":"Published protocol support profiles and intake limits.","tags":["evidence"]}},"/sender-answers/{token}":{"get":{"operationId":"GetSenderAnswer","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderAnswer"}}},"description":"The question and the answer the link gives."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"What an answer link asks, for the page that confirms it. Needs no sign-in and changes nothing.","tags":["senders"]},"parameters":[{"description":"The token from one answer link in an \"Is this service yours?\" email, naming one person, question and answer.","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"post":{"description":"Needs no sign-in; the link is the authority, for that one person and question, and the person's rights are checked now. A DNS change the answer needs is only drafted; it is approved in MailGlo. Using the link again, or after the question was answered, changes nothing and answers 200 with state answered.","operationId":"AnswerSender","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderAnswer"}}},"description":"The question, with state answered and what the answer did, or its state when nothing was recorded."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Record the answer an email's answer link gives, as the person the email went to, once.","tags":["senders"]}},"/service-limits":{"get":{"operationId":"GetServiceLimits","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Limits."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Numeric service limits.","tags":["operations"]}},"/sessions":{"post":{"operationId":"Login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}},"description":"Session started; the session cookie is set."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Sign in with email, password and, when enrolled, an authenticator code.","tags":["auth"]}},"/sessions/current":{"delete":{"operationId":"Logout","responses":{"204":{"description":"Signed out."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Sign out of the current session.","tags":["auth"]}},"/sessions/support":{"post":{"operationId":"RedeemSupportSignIn","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code":{"maxLength":200,"type":"string"}},"required":["code"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}},"description":"Session started; the session cookie is set."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Open a one-time sign-in link a MailGlo operator made on the admin surface, once, within five minutes. The session acts as the person in one workspace, for at most an hour, and every page shows that MailGlo support is signed in. Only POST redeems; the code is never read from a URL's path or query.","tags":["auth"]}},"/shared/{token}":{"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}],"post":{"description":"The emailed link opens the page /app/shared-report?token=\u003ctoken\u003e, which calls this. Without a code, the answer is `status` `code_sent`; inside the one-minute wait between codes it also has `wait_seconds` and sends nothing. With the right code, the answer has the report's `html` and `report`. A wrong or expired code is refused with `share_code_invalid` (422); an expired, withdrawn or unknown link with `link_unavailable` (410), and too many codes for one link with `link_locked` (429). Neither refusal names the sender or the client.","operationId":"GetSharedReport","requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string"}},"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Report or code_sent."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Open a shared report; without a code, a one-time code is sent to the bound recipient.","tags":["reports"]}},"/sign-in/providers/code":{"post":{"operationId":"FinishSocialSignIn","requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string"}},"required":["code"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"csrf_token":{"type":"string"},"next":{"description":"The page to open once signed in.","type":"string"},"step":{"description":"The next code to ask for, when the sign-in goes on.","enum":["email","totp"],"type":"string"}},"type":"object"}}},"description":"Signed in, or the next code to ask for."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Finish a Google or Microsoft sign-in that waits for a code, in the browser that signed in: the provider's callback keeps the sign-in in a short-lived cookie, never in the address. Step email is the 6-digit code emailed to the address, when the provider did not vouch for it; step totp is the authenticator code, for an account with two-step sign-in, and wrong codes count toward the account's lock. The answer is a session, or the next step.","tags":["auth"]}},"/sign-in/providers/start":{"post":{"operationId":"StartSocialSignIn","requestBody":{"content":{"application/json":{"schema":{"properties":{"domain":{"description":"For intent sign_up: the domain checked before signing up.","type":"string"},"email":{"description":"Suggested to the provider as the account to use.","type":"string"},"intent":{"enum":["sign_in","sign_up","invitation"],"type":"string"},"invitation_token":{"description":"The invitation link token, for intent invitation.","type":"string"},"marketing_opt_in":{"type":"boolean"},"next":{"description":"For intent sign_in: the app page to open once signed in, as at the sign-in form.","type":"string"},"plan":{"description":"For intent sign_up, with domain: the plan an offer on the check asked for. After the first domain, Billing opens at it.","enum":["managed"],"type":"string"},"privacy_version":{"description":"For intent sign_up: the Privacy Policy version accepted.","type":"string"},"provider":{"enum":["google","microsoft"],"type":"string"},"terms_version":{"description":"For intent sign_up: the Terms of Service version accepted.","type":"string"}},"required":["provider","intent"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"redirect_url":{"type":"string"}},"required":["redirect_url"],"type":"object"}}},"description":"Where to send the browser."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Start signing up, signing in or accepting an invitation with a Google or Microsoft account. Returns where to send the browser and sets a short-lived cookie that binds the sign-in to this browser; the provider returns to /sso/callback/{provider}. social_unavailable when this deployment doesn't offer the provider.","tags":["auth"]}},"/signup":{"post":{"description":"Twenty signups from one client address an hour are accepted; later ones are refused with `rate_limited` until the hour ends. The limit applies before any account lookup, so the refusal is the same for every email.","operationId":"Signup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupInput"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupResult"}}},"description":"Verification email recorded. The response never reveals whether the address already has an account."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Start self-service signup. No card is requested.","tags":["auth"]}},"/signup/verify":{"post":{"operationId":"VerifySignup","requestBody":{"content":{"application/json":{"schema":{"properties":{"password":{"type":"string"},"token":{"type":"string"}},"required":["token","password"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}},"description":"Workspace created and session started."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Confirm the email, choose the password, and create the workspace and owner.","tags":["auth"]}},"/sso/start":{"post":{"operationId":"StartSso","requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string"}},"required":["email"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"redirect_url":{"type":"string"}},"required":["redirect_url"],"type":"object"}}},"description":"Where to send the browser."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Start signing in with the identity provider of the workspace that proved the email address's domain. Returns where to send the browser and sets a short-lived cookie that binds the sign-in to this browser; the provider returns to /sso/callback. sso_unavailable when no workspace offers single sign-on for the address.","tags":["auth"]}},"/status":{"get":{"operationId":"GetPublicStatus","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Status."}},"security":[],"summary":"Component status and open incidents.","tags":["operations"]}},"/support/policy":{"get":{"operationId":"GetSupportPolicy","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Policy."}},"security":[],"summary":"What support covers and its routes, including where to report a service outage.","tags":["support"]}},"/support/public":{"post":{"operationId":"SubmitPublicSupport","parameters":[{"$ref":"#/components/parameters/PublicIdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Request."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Separate support route that works during an application outage.","tags":["support"]}},"/trust":{"get":{"operationId":"GetPublicTrust","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Result."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Seller, contact route, published documents and security statements.","tags":["website"]}},"/unsubscribe":{"post":{"operationId":"UnsubscribeContact","requestBody":{"content":{"application/json":{"schema":{"properties":{"token":{"type":"string"}},"required":["token"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Unsubscribed."},"default":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"One-step marketing opt-out; cancels queued messages across campaigns.","tags":["website"]}},"/workspaces/{workspaceId}/activations":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"ActivateDomains","requestBody":{"content":{"application/json":{"schema":{"properties":{"domain_ids":{"items":{"type":"string","x-id":"dom"},"type":"array"},"watch":{"description":"Watch each domain for free instead of managing it: reports, DNS checks and the daily digest, no hosted records or real-time alerts. Managed workspaces watch up to 10 domains.","type":"boolean"}},"required":["domain_ids"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ActivationResult"},"type":"array"}}},"description":"Per-domain results."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Activate service for confirmed domains; one result per domain. Capacity increases need a billing quote.","tags":["billing"]}},"/workspaces/{workspaceId}/adoption":{"get":{"operationId":"GetAdoption","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Stage."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Adoption stage of a new workspace, without raw reports.","tags":["support"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/agent-links":{"get":{"operationId":"ListAgentLinks","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Links."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Live temporary agent links, with who opened each, the assistant, whether it connected and when it ends.","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"CreateAgentLink","requestBody":{"content":{"application/json":{"schema":{"properties":{"assistant":{"enum":["chatgpt","claude","perplexity"],"type":"string"}},"required":["assistant"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Link, with its code shown once."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Open an assistant with temporary access. The owner gets a single-use code for the assistant's prompt; the assistant redeems it once for a token. Access is read and draft for this workspace and ends 15 minutes after this call, with nothing to choose and no renewal.","tags":["agents"]}},"/workspaces/{workspaceId}/agent-links/{linkId}":{"delete":{"operationId":"RevokeAgentLink","responses":{"204":{"description":"Revoked."},"default":{"$ref":"#/components/responses/Error"}},"summary":"End a temporary agent link now; its next request is refused.","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"linkId","required":true,"schema":{"type":"string","x-id":"agl"}}]},"/workspaces/{workspaceId}/agents":{"get":{"operationId":"ListAgents","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Agents."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Connected agents with owner, scopes, last use, recent operations and standing policies.","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"CreateAgent","requestBody":{"content":{"application/json":{"schema":{"properties":{"client_ids":{"items":{"type":"string","x-id":"cli"},"type":"array"},"name":{"type":"string"},"review_days":{"type":"integer"},"token_days":{"type":"integer"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Agent."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Connect a named agent. Read-only by default; the token is shown once.","tags":["agents"]}},"/workspaces/{workspaceId}/agents/{principalId}":{"delete":{"operationId":"RevokeAgent","responses":{"204":{"description":"Revoked."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Revoke an agent; queued work it prepared becomes stale.","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"principalId","required":true,"schema":{"type":"string","x-id":"prn"}}]},"/workspaces/{workspaceId}/agents/{principalId}/budget":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"principalId","required":true,"schema":{"type":"string","x-id":"prn"}}],"put":{"operationId":"SetAgentBudget","requestBody":{"content":{"application/json":{"schema":{"properties":{"kind":{"enum":["agent_requests","investigation_steps","intake_reports","upload_items","external_lookups","webhook_deliveries"],"type":"string"},"max_units":{"minimum":0,"type":"integer"},"period":{"enum":["day","month"],"type":"string"}},"required":["kind","period","max_units"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Set."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Set one agent's own limit for a kind of work; it narrows, never widens, the workspace budget.","tags":["agents"]}},"/workspaces/{workspaceId}/agents/{principalId}/rotate":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"principalId","required":true,"schema":{"type":"string","x-id":"prn"}}],"post":{"operationId":"RotateAgentToken","parameters":[{"in":"query","name":"days","schema":{"type":"integer"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCreated"}}},"description":"Token."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Issue a new token and revoke previous ones.","tags":["agents"]}},"/workspaces/{workspaceId}/audit":{"get":{"operationId":"ListAudit","parameters":[{"in":"query","name":"client_id","schema":{"type":"string","x-id":"cli"}},{"in":"query","name":"before","schema":{"format":"int64","type":"integer"}},{"in":"query","name":"limit","schema":{"type":"integer"}},{"in":"query","name":"format","schema":{"enum":["json","csv"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Events."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Customer-visible audit history within the caller's client scope.","tags":["workspaces"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/audit/export":{"get":{"operationId":"ExportAudit","parameters":[{"in":"query","name":"client_id","schema":{"type":"string","x-id":"cli"}}],"responses":{"200":{"content":{"text/csv":{"schema":{"format":"binary","type":"string"}}},"description":"CSV file."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Download the complete audit history in your scope as CSV.","tags":["security"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/batches":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"CreateBatch","requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}},"description":"Batch."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Create a batch of per-client change plans.","tags":["changes"]}},"/workspaces/{workspaceId}/batches/{batchId}":{"get":{"operationId":"GetBatch","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}},"description":"Batch."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Batch items with individual status.","tags":["changes"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"batchId","required":true,"schema":{"type":"string","x-id":"batch"}}]},"/workspaces/{workspaceId}/batches/{batchId}/{action}":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"batchId","required":true,"schema":{"type":"string","x-id":"batch"}},{"in":"path","name":"action","required":true,"schema":{"enum":["approve","run","stop"],"type":"string"}}],"post":{"operationId":"ActOnBatch","requestBody":{"content":{"application/json":{"schema":{"properties":{"reason":{"type":"string"}},"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}},"description":"Batch."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Approve items within scope, run approved items, or stop remaining actions.","tags":["changes"]}},"/workspaces/{workspaceId}/billing-portal":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"OpenBillingPortal","requestBody":{"content":{"application/json":{"schema":{"properties":{"release_schedule":{"description":"The exact scheduled downgrade the owner or Administrator explicitly confirmed removing before opening Stripe. Omit when no downgrade is scheduled.","type":"string"}},"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPortalSession"}}},"description":"Portal link."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Workspace-bound link to the processor's billing portal, where a person cancels or restores renewal. Agents receive the support-ticket handoff instead.","tags":["billing"]}},"/workspaces/{workspaceId}/billing-profile":{"get":{"operationId":"GetBillingProfile","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"address":{"nullable":true,"type":"string"},"can_replace_payment_method":{"description":"Whether Update payment method can open a card page now: the caller is a current Owner or Administrator with billing rights and no agreement manages billing; then either live payments are on with a public address configured and Stripe has a customer for this workspace (created when a quote is accepted), or this is a test environment without Stripe.","type":"boolean"},"confirmed_contacts":{"items":{"type":"string"},"type":"array"},"contacts":{"items":{"type":"string"},"type":"array"},"legal_name":{"nullable":true,"type":"string"},"payment_method":{"description":"Brand and last digits of the stored method; the processor holds the card.","nullable":true,"properties":{"brand":{"type":"string"},"last4":{"type":"string"}},"type":"object"},"tax_id":{"nullable":true,"type":"string","x-id":"none"}},"required":["contacts","confirmed_contacts"],"type":"object"}}},"description":"Profile."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Current billing identity and contacts, with each contact's confirmation state.","tags":["billing"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"put":{"operationId":"UpdateBillingProfile","requestBody":{"content":{"application/json":{"schema":{"properties":{"address":{"type":"string"},"contacts":{"items":{"type":"string"},"type":"array"},"legal_name":{"type":"string"},"payment_token":{"description":"Test environment only, without Stripe: tok_visa, tok_declined or tok_renewal_fails. Refused elsewhere; replace the card through POST payment-method-session.","type":"string"},"tax_id":{"type":"string","x-id":"none"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Profile."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Update billing identity, contacts and (through the processor) the payment method.","tags":["billing"]}},"/workspaces/{workspaceId}/branding":{"get":{"operationId":"GetBranding","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"accent_color":{"type":"string"},"display_name":{"type":"string"},"has_logo":{"description":"Whether the workspace has a report logo uploaded (GET branding/logo returns it).","type":"boolean"},"logo_url":{"type":"string"},"support_email":{"type":"string"}},"required":["display_name","logo_url","support_email","accent_color","has_logo"],"type":"object"}}},"description":"Branding."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Current report branding, so an edit starts from stored values.","tags":["workspaces"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"put":{"operationId":"SetBranding","requestBody":{"content":{"application/json":{"schema":{"properties":{"accent_color":{"type":"string"},"display_name":{"type":"string"},"logo_url":{"type":"string"},"support_email":{"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Branding."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Set logo, display name, support address and report styling.","tags":["workspaces"]}},"/workspaces/{workspaceId}/branding/logo":{"delete":{"operationId":"DeleteBrandLogo","responses":{"204":{"description":"Removed."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Remove the report logo; prospect reports then show the workspace's initials.","tags":["workspaces"]},"get":{"operationId":"GetBrandLogo","responses":{"200":{"content":{"image/png":{"schema":{"format":"binary","type":"string"}}},"description":"The logo."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The workspace's report logo, a PNG.","tags":["workspaces"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"put":{"operationId":"SetBrandLogo","requestBody":{"content":{"application/json":{"schema":{"properties":{"png":{"description":"The PNG file, base64-encoded.","maxLength":400000,"type":"string"}},"required":["png"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Stored."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Upload the report logo printed on prospect reports. A PNG of at most 300 KB and 2000 pixels on a side.","tags":["workspaces"]}},"/workspaces/{workspaceId}/cancellation":{"get":{"operationId":"PreviewCancellation","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationPreview"}}},"description":"Preview."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Show effective end date, final billing state, export deadline and hosted exit obligations.","tags":["billing"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"SetCancellation","requestBody":{"content":{"application/json":{"schema":{"properties":{"cancel":{"type":"boolean"},"feedback":{"description":"Optional; never blocks completion.","type":"string"},"portal_session":{"description":"The session from POST billing-portal; renewal changes only inside that workspace-bound portal session.","type":"string"}},"required":["cancel"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationPreview"}}},"description":"Result."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Cancel renewal, or reverse a pending cancellation before it takes effect. Only a signed-in person can do this; an agent receives cancellation_requires_person with the support-ticket next step, and nothing changes.","tags":["billing"]}},"/workspaces/{workspaceId}/cases":{"get":{"operationId":"ListCases","parameters":[{"$ref":"#/components/parameters/PageLimit"},{"$ref":"#/components/parameters/PageCursor"},{"in":"query","name":"client_id","schema":{"type":"string","x-id":"cli"}},{"in":"query","name":"state","schema":{"type":"string"}},{"in":"query","name":"severity","schema":{"type":"string"}},{"in":"query","name":"sender_id","schema":{"type":"string","x-id":"snd"}},{"in":"query","name":"assignee","schema":{"type":"string","x-id":"prn"}},{"in":"query","name":"kind","schema":{"type":"string"}},{"in":"query","name":"unassigned","schema":{"type":"boolean"}},{"in":"query","name":"overdue","schema":{"type":"boolean"}},{"description":"open: not resolved, dismissed or unsupported; closed: one of those.","in":"query","name":"status","schema":{"enum":["open","closed"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Case"},"type":"array"}}},"description":"Cases.","headers":{"X-Changed-Since-Snapshot":{"$ref":"#/components/headers/ChangedSinceSnapshot"},"X-Next-Cursor":{"$ref":"#/components/headers/NextCursor"},"X-Result-Complete":{"$ref":"#/components/headers/ResultComplete"}}},"default":{"$ref":"#/components/responses/Error"}},"summary":"Cases in the caller's clients.","tags":["cases"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"CreateCase","requestBody":{"content":{"application/json":{"schema":{"properties":{"client_id":{"type":"string","x-id":"cli"},"domain_id":{"type":"string","x-id":"dom"},"kind":{"type":"string"},"title":{"type":"string"}},"required":["client_id","title"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}},"description":"Case."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Open a manual case.","tags":["cases"]}},"/workspaces/{workspaceId}/cases/{caseId}":{"get":{"operationId":"GetCase","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Case detail."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Case with events, requests, results and current blockers.","tags":["cases"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}}]},"/workspaces/{workspaceId}/cases/{caseId}/assign":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}}],"post":{"operationId":"AssignCase","requestBody":{"content":{"application/json":{"schema":{"properties":{"assignee":{"type":"string","x-id":"prn"},"due_at":{"format":"date-time","type":"string"},"expected_version":{"description":"The case version you saw; refused when the case changed since.","type":"integer"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}},"description":"Case."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Set the accountable owner and optional due date.","tags":["cases"]}},"/workspaces/{workspaceId}/cases/{caseId}/findings/{finding}/dismiss":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}},{"description":"The open finding's kind, such as auth_regression.","in":"path","name":"finding","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"post":{"description":"Ends only this finding; the investigation's other findings stay open. When it was the last open one, the investigation closes, not fixed. The service's alert for this finding pauses until the days pass; new reports open it again only after that. A sender question can't be dismissed here: it ends with its answer on Senders. A parked domain ends once its DNS is locked down. Needs cases.manage.","operationId":"DismissCaseFinding","requestBody":{"content":{"application/json":{"schema":{"properties":{"days":{"maximum":90,"minimum":1,"type":"integer"},"expected_version":{"type":"integer"}},"required":["days"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}},"description":"Case."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Dismiss one open finding of a service's investigation and pause its alert for 1 to 90 days.","tags":["cases"]}},"/workspaces/{workspaceId}/cases/{caseId}/investigate":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}}],"post":{"operationId":"InvestigateCase","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Run."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Run released investigation procedures within the case step budget.","tags":["cases"]}},"/workspaces/{workspaceId}/cases/{caseId}/notes":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}}],"post":{"operationId":"AddCaseNote","requestBody":{"content":{"application/json":{"schema":{"properties":{"body":{"type":"string"},"minutes":{"type":"integer"},"visibility":{"enum":["workspace","client"],"type":"string"}},"required":["body"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Added."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Add a note (untrusted text) and optional time spent.","tags":["cases"]}},"/workspaces/{workspaceId}/cases/{caseId}/packet":{"get":{"operationId":"GetCasePacket","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Packet."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Structured decision packet shared by people and agents.","tags":["cases"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}}]},"/workspaces/{workspaceId}/cases/{caseId}/requests":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}}],"post":{"operationId":"RequestCaseInfo","requestBody":{"content":{"application/json":{"schema":{"properties":{"allowed_roles":{"items":{"type":"string"},"type":"array"},"finding":{"description":"The open finding of the service's investigation the question is for. Left out, it is the only open finding; with several open, name one.","enum":["new_sender","unknown_failing_sender","auth_regression","failing_allowed_sender","quiet_sender","parked_domain"],"type":"string"},"known_evidence":{"type":"string"},"missing_fact":{"type":"string"},"why":{"type":"string"}},"required":["missing_fact","why","allowed_roles"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Request."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Ask for one exact missing fact from a named role.","tags":["cases"]}},"/workspaces/{workspaceId}/cases/{caseId}/requests/{requestId}":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}},{"in":"path","name":"requestId","required":true,"schema":{"type":"string","x-id":"info"}}],"post":{"operationId":"AnswerCaseInfo","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"action":{"enum":["answer","cancel","supersede"],"type":"string"},"response":{"type":"string"}},"type":"object"}}},"required":true},"responses":{"204":{"description":"Recorded."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Answer, cancel or supersede an information request.","tags":["cases"]}},"/workspaces/{workspaceId}/cases/{caseId}/results":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}}],"post":{"operationId":"DeliverCaseResult","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"decision":{"type":"string"},"evidence_refs":{"description":"The service refuses a result that cites nothing and names why.","items":{"type":"string","x-id":"obs|row"},"type":"array"},"facts":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"finding":{"description":"The open finding of a service's investigation the result is for. Accepting the result settles only that finding, once its own rule holds. Left out, it is the only open finding; with several open, name one.","enum":["new_sender","unknown_failing_sender","auth_regression","failing_allowed_sender","quiet_sender","parked_domain"],"type":"string"},"hypotheses":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"remaining_actions":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"uncertainty":{"type":"string"},"validity":{"type":"string"}},"required":["decision"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Result."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Deliver a result; the cited reported mail, DNS checks and counts are checked first.","tags":["cases"]}},"/workspaces/{workspaceId}/cases/{caseId}/results/{resultId}/correction":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}},{"in":"path","name":"resultId","required":true,"schema":{"type":"string","x-id":"res"}}],"post":{"operationId":"CorrectCaseResult","requestBody":{"content":{"application/json":{"schema":{"properties":{"changed":{"type":"string"},"reason":{"type":"string"},"severe":{"type":"boolean"}},"required":["reason","changed"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Correction."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Withdraw an incorrect conclusion, halt dependent actions and notify recipients.","tags":["cases"]}},"/workspaces/{workspaceId}/cases/{caseId}/results/{resultId}/outcome":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}},{"in":"path","name":"resultId","required":true,"schema":{"type":"string","x-id":"res"}}],"post":{"operationId":"RecordCaseOutcome","requestBody":{"content":{"application/json":{"schema":{"properties":{"comment":{"type":"string"},"outcome":{"enum":["accepted","needs_correction","unsupported","no_longer_relevant"],"type":"string"},"time_avoided_minutes":{"type":"integer"},"time_still_spent_minutes":{"type":"integer"}},"required":["outcome"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Result."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Accept or challenge a result, with optional time avoided or still spent.","tags":["cases"]}},"/workspaces/{workspaceId}/cases/{caseId}/transition":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"caseId","required":true,"schema":{"type":"string","x-id":"case"}}],"post":{"operationId":"TransitionCase","requestBody":{"content":{"application/json":{"schema":{"properties":{"evidence_refs":{"description":"The evidence_id of each reported mail entry or DNS check.","items":{"type":"string","x-id":"obs|row"},"type":"array"},"expected_version":{"type":"integer"},"reason":{"type":"string"},"state":{"type":"string"},"waiting_on":{"type":"string"}},"required":["state","reason"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}},"description":"Case."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Change case state with a reason; resolving needs what its rule asks for, such as cited reported mail, DNS checks or a sender decision.","tags":["cases"]}},"/workspaces/{workspaceId}/chat-channels":{"get":{"operationId":"ListChatChannels","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatChannelList"}}},"description":"Channels."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The workspace's Slack and Teams channels for alerts, for people who manage its notifications.","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"AddChatChannel","requestBody":{"content":{"application/json":{"schema":{"properties":{"categories":{"items":{"enum":["case_alerts","approval_requests","coverage"],"type":"string"},"minItems":1,"type":"array"},"client_id":{"description":"Only this client. Missing: every client.","type":"string","x-id":"cli"},"name":{"description":"What people call the channel, such as #email-alerts.","maxLength":80,"type":"string"},"quiet_end":{"maximum":23,"minimum":0,"type":"integer"},"quiet_start":{"description":"Hour quiet hours start. Alerts due from then until quiet_end wait until it ends. Set quiet_start, quiet_end and timezone together.","maximum":23,"minimum":0,"type":"integer"},"service":{"enum":["slack","teams"],"type":"string"},"timezone":{"description":"IANA time zone of the quiet hours, such as Europe/Berlin.","maxLength":64,"type":"string"},"url":{"description":"The channel's Slack incoming webhook or Teams Workflows address. It is stored sealed and never shown again.","maxLength":2048,"type":"string"}},"required":["service","url","categories"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatChannel"}}},"description":"Channel, with the outcome of its test message."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Add a Slack or Teams channel by its incoming webhook address. MailGlo posts a test message to it once it is saved; the channel lists the outcome. Alerts start once someone confirms the test arrived. Plans with real-time alerts only.","tags":["reports"]}},"/workspaces/{workspaceId}/chat-channels/{channelId}":{"delete":{"operationId":"RemoveChatChannel","responses":{"204":{"description":"Removed."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Remove a channel; alerts waiting for it are cancelled.","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"channelId","required":true,"schema":{"type":"string","x-id":"whk"}}],"patch":{"operationId":"UpdateChatChannel","requestBody":{"content":{"application/json":{"schema":{"properties":{"all_clients":{"description":"Send alerts for every client again. Ignored with client_id.","type":"boolean"},"categories":{"items":{"enum":["case_alerts","approval_requests","coverage"],"type":"string"},"minItems":1,"type":"array"},"client_id":{"description":"Only this client.","type":"string","x-id":"cli"},"name":{"maxLength":80,"type":"string"},"no_quiet_hours":{"description":"Remove quiet hours. Ignored with quiet_start.","type":"boolean"},"quiet_end":{"maximum":23,"minimum":0,"type":"integer"},"quiet_start":{"description":"Hour quiet hours start. Alerts due from then until quiet_end wait until it ends. Set quiet_start, quiet_end and timezone together.","maximum":23,"minimum":0,"type":"integer"},"timezone":{"description":"IANA time zone of the quiet hours, such as Europe/Berlin.","maxLength":64,"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatChannel"}}},"description":"Channel."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Change a channel's name, notice kinds, client or quiet hours. Alerts waiting that it no longer takes are cancelled. Its address can't change; add a new channel instead.","tags":["reports"]}},"/workspaces/{workspaceId}/chat-channels/{channelId}/confirm":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"channelId","required":true,"schema":{"type":"string","x-id":"whk"}}],"post":{"operationId":"ConfirmChatChannel","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatChannel"}}},"description":"Channel."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Say the latest test message arrived, which starts alerts in the channel. A channel MailGlo turned off needs a new test first.","tags":["reports"]}},"/workspaces/{workspaceId}/chat-channels/{channelId}/test":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"channelId","required":true,"schema":{"type":"string","x-id":"whk"}}],"post":{"operationId":"TestChatChannel","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatChannel"}}},"description":"Channel, with the test's outcome."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Post a test message to the channel now. Idempotency-Key is ignored; every test is a new, counted send.","tags":["reports"]}},"/workspaces/{workspaceId}/client-mode":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"put":{"operationId":"SetClientMode","requestBody":{"content":{"application/json":{"schema":{"properties":{"on":{"type":"boolean"}},"required":["on"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"clients":{"description":"The workspace has a client, which keeps client management on.","type":"boolean"},"on":{"type":"boolean"}},"required":["on","clients"],"type":"object"}}},"description":"Whether client management shows now."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Turn client management on or off for the workspace (needs workspace.manage). It changes what the app shows, never who may do what. While the workspace has a client it stays on.","tags":["tenancy"]}},"/workspaces/{workspaceId}/clients":{"get":{"operationId":"ListClients","parameters":[{"in":"query","name":"include_archived","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Client"},"type":"array"}}},"description":"Clients."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List clients visible to the caller.","tags":["clients"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"CreateClient","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}},"description":"Client created."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Create a client. No portal user or separate subscription is required.","tags":["clients"]}},"/workspaces/{workspaceId}/clients/{clientId}":{"get":{"operationId":"GetClient","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}},"description":"Client."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Get one client.","tags":["clients"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"}],"patch":{"operationId":"UpdateClient","requestBody":{"content":{"application/json":{"schema":{"properties":{"contact_email":{"type":"string"},"name":{"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}},"description":"Updated client."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Update client name or contact.","tags":["clients"]}},"/workspaces/{workspaceId}/clients/{clientId}/alert-routes":{"get":{"operationId":"ListClientAlertRoutes","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ClientAlertRoute"},"type":"array"}}},"description":"One row per kind of email."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Who gets each kind of email about this client's domains.","tags":["clients"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"}],"put":{"description":"both: your team and the client's people; team: your team only; client: the client's people only, or your team while the client has no one who can get it. Each person still gets only what their role lets them see.","operationId":"SetClientAlertRoute","requestBody":{"content":{"application/json":{"schema":{"properties":{"audience":{"enum":["both","team","client"],"type":"string"},"category":{"enum":["approval_requests","coverage","automatic_fixes"],"type":"string"}},"required":["category","audience"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ClientAlertRoute"},"type":"array"}}},"description":"Every kind of email, as now set."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Set who gets one kind of email about this client's domains.","tags":["clients"]}},"/workspaces/{workspaceId}/clients/{clientId}/archive":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"}],"post":{"operationId":"ArchiveClient","requestBody":{"content":{"application/json":{"schema":{"properties":{"archived":{"type":"boolean"}},"required":["archived"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}},"description":"Client."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Archive or restore a client. Archive is blocked while hosted or active domains remain.","tags":["clients"]}},"/workspaces/{workspaceId}/clients/{clientId}/authorities":{"get":{"operationId":"ListAuthorities","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Authority"},"type":"array"}}},"description":"Authority records."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List delegated-authority records for the client.","tags":["authority"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"}],"post":{"operationId":"RecordAuthority","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorityInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Authority"}}},"description":"Authority recorded."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Record the basis, scope, contact and agreement for delegated authority. Separate from DNS control.","tags":["authority"]}},"/workspaces/{workspaceId}/clients/{clientId}/authorities/{authorityId}":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"},{"in":"path","name":"authorityId","required":true,"schema":{"type":"string","x-id":"auth"}}],"post":{"operationId":"ChangeAuthority","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorityChange"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Authority"}}},"description":"Updated authority."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Narrow, revoke or dispute delegated authority; holds affected writes and opens a case.","tags":["authority"]}},"/workspaces/{workspaceId}/clients/{clientId}/domains":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"}],"post":{"description":"Adding a domain whose plan hosts SPF also issues its hosted SPF name and serves the record setup asks it to point at there; that record affects no mail until the domain's SPF record points at it.","operationId":"AddDomains","requestBody":{"content":{"application/json":{"schema":{"properties":{"names":{"items":{"type":"string"},"type":"array"},"offer_main_domain":{"description":"Ask back before adding a subdomain: its result is status subdomain with main_domain, and nothing is added. Send the name again without this to add the subdomain itself.","type":"boolean"},"prepare_in_background":{"description":"Answer as soon as the domains are saved. MailGlo then reads each domain's DNS and prepares setup's hosted SPF record, and the domain's setup.preparation says which step runs. Without this, the answer waits for both.","type":"boolean"},"provider_hostname":{"type":"string"}},"required":["names"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AddDomainResult"},"type":"array"}}},"description":"Per-domain results."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Stage one or many domains for a client. Every input line receives a result; staging is free.","tags":["domains"]}},"/workspaces/{workspaceId}/clients/{clientId}/export":{"get":{"operationId":"ExportClient","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Export."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Client-only export of approved configuration, selectors and report data.","tags":["exit"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"}]},"/workspaces/{workspaceId}/clients/{clientId}/imports":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"}],"post":{"operationId":"PreflightImport","requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJob"}}},"description":"Preflight."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Upload a zip archive of historical reports; returns a verdict for every item before import.","tags":["evidence"]}},"/workspaces/{workspaceId}/clients/{clientId}/report-shares":{"get":{"operationId":"ListClientReportShares","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"properties":{"id":{"type":"string","x-id":"shr"},"report_id":{"type":"string","x-id":"doc"}},"type":"object"},"type":"array"}}},"description":"Deliveries."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Every share of this client's reports, newest first, with its delivery and when it was opened.","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"}]},"/workspaces/{workspaceId}/clients/{clientId}/reports":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"}],"post":{"operationId":"GenerateClientReport","requestBody":{"content":{"application/json":{"schema":{"properties":{"from":{"format":"date-time","type":"string"},"to":{"format":"date-time","type":"string"}},"type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Report."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Generate a branded client report; preview content and proposed recipients before sharing.","tags":["reports"]}},"/workspaces/{workspaceId}/clients/{clientId}/technicians":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/ClientId"}],"post":{"operationId":"AssignTechnician","requestBody":{"content":{"application/json":{"schema":{"properties":{"principal_id":{"type":"string","x-id":"prn"}},"required":["principal_id"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Assigned."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Assign a technician to this client (writes explicit client-scoped grants).","tags":["clients"]}},"/workspaces/{workspaceId}/closure":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"description":"Each blocker has a code and what is needed to link to where it is fixed: subscription_renews (with renews_at), domain_in_service (one per domain, with domain_id and domain), refunds_open (with count). A confirmed closure with any blocker is refused with closure_blocked.","operationId":"CloseWorkspace","requestBody":{"content":{"application/json":{"schema":{"properties":{"confirm":{"type":"boolean"}},"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"properties":{"blockers":{"items":{"properties":{"code":{"enum":["subscription_renews","domain_in_service","refunds_open"],"type":"string"},"count":{"type":"integer"},"domain":{"type":"string"},"domain_id":{"type":"string","x-id":"dom"},"message":{"type":"string"},"renews_at":{"format":"date-time","type":"string"}},"required":["code","message"],"type":"object"},"type":"array"},"people":{"description":"The people who lose access when the workspace closes.","items":{"type":"string"},"type":"array"},"status":{"type":"string"}},"required":["blockers","people"],"type":"object"}}},"description":"Preview or result."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Preview or confirm workspace closure (blocked by subscriptions, hosted dependencies and refunds).","tags":["workspaces"]}},"/workspaces/{workspaceId}/credentials":{"get":{"operationId":"ListCredentials","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Credentials."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Credential inventory with owner, purpose, scope and revocation path.","tags":["security"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/credentials/{tokenId}/exposure":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"tokenId","required":true,"schema":{"type":"string","x-id":"tok"}}],"post":{"operationId":"ReportCredentialExposure","requestBody":{"content":{"application/json":{"schema":{"properties":{"note":{"type":"string"}},"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Containment."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Contain a suspected exposure (revoke, open an incident, list affected principals).","tags":["security"]}},"/workspaces/{workspaceId}/data-requests":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"CreateDataRequest","requestBody":{"content":{"application/json":{"schema":{"properties":{"client_id":{"type":"string","x-id":"cli"},"kind":{"enum":["export","deletion"],"type":"string"}},"required":["kind"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Result."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Verified export or deletion request; the result states what remains.","tags":["security"]}},"/workspaces/{workspaceId}/discovery":{"get":{"operationId":"GetDiscovery","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Discovery."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The caller's actual scopes and workspace limits, with entry points and response states.","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/domain-imports":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"post":{"description":"A client is found by name among the clients you can read, ignoring case, or created when none has that name (creating clients needs a plan with client management). An empty client adds the domain to your own domains. Each client's domains are added together, so a client that can't be created or written to stops only its own rows. Adding changes no DNS record and charges nothing; a domain counts toward the plan once monitoring starts. Each added domain carries its access record, and dns_host names where its DNS is managed when MailGlo recognizes it. At most 500 rows per request.","operationId":"ImportDomains","requestBody":{"content":{"application/json":{"schema":{"properties":{"rows":{"items":{"properties":{"client":{"description":"The client's name. Empty for your own domains.","maxLength":200,"type":"string"},"domain":{"maxLength":300,"type":"string"}},"required":["domain"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["rows"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportDomainResult"},"type":"array"}}},"description":"One result per row, in the order sent."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Add many clients' domains at once. Each row names a client and a domain; every row receives a result.","tags":["domains"]}},"/workspaces/{workspaceId}/domain-imports/check":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"description":"Reads the rows as the import would: each domain name checked and compared in its normalized form, client names matched among the clients you can read, ignoring case and spacing. A row is ok, invalid, client_ambiguous (more than one client has that name), repeat (the same domain again for the same client, which the import skips) other_client (the same domain for another client; the import adds clients in the order their names first appear and gives it to the first that can take it), family_other_client (an earlier client in the list, or another client already, takes the domain's family, and one family has one client), not_allowed (you may not add domains to that client, or create it) or plan_required (a new client, which your plan doesn't include). client_new says the row names a new client the import would create: no client you can read has the name, you may create clients, your plan includes them and one of its rows is ok; and rows with the same client_line go to one client. A domain already added under the same client is ok, and the import reports it; one whose main domain another client holds, whether or not you can read it, is family_other_client without other_line and doesn't name that client, wherever the holder's own row is in the list. At most 500 rows per request.","operationId":"CheckDomainImport","requestBody":{"content":{"application/json":{"schema":{"properties":{"rows":{"items":{"properties":{"client":{"description":"The client's name. Empty for your own domains.","maxLength":200,"type":"string"},"domain":{"maxLength":300,"type":"string"}},"required":["domain"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["rows"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ImportCheckRow"},"type":"array"}}},"description":"One result per row, in the order sent."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Check rows for Add many domains before adding them. Saves nothing.","tags":["domains"]}},"/workspaces/{workspaceId}/domains":{"get":{"operationId":"ListDomains","parameters":[{"in":"query","name":"client_id","schema":{"type":"string","x-id":"cli"}},{"in":"query","name":"status","schema":{"type":"string"}},{"in":"query","name":"q","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Domain"},"type":"array"}}},"description":"Domains."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List domains in clients the caller can read.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/domains/{domainId}":{"get":{"operationId":"GetDomain","parameters":[{"description":"Answer once the domain's setup.preparation is no longer this step, or after 10 seconds, whichever comes first. Setup uses it to tick each step as it ends.","in":"query","name":"preparation_after","schema":{"enum":["reading","preparing"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"}}},"description":"Domain."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Get one domain with its separate control, authority, reporting and service states.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/authority-status":{"get":{"operationId":"GetAuthorityStatus","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorityStatus"}}},"description":"Status."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Control, delegation and report-destination recheck status with intervals.","tags":["authority"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/bimi-assets":{"get":{"operationId":"ListBimiAssets","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BimiAsset"},"type":"array"}}},"description":"Assets."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The domain's hosted BIMI logos and mark certificates, newest first.","tags":["hosted"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"description":"A logo must be SVG Tiny Portable/Secure: version 1.2, baseProfile tiny-ps, a title, square, at most 32 KB, with no scripts, animation, links, images or outside references. A certificate must be PEM CERTIFICATE blocks whose first certificate is valid now and names the domain or carries a logotype. MailGlo does not issue or renew certificates.","operationId":"UploadBimiAsset","requestBody":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"The SVG document or the PEM certificate file, as text.","maxLength":65536,"type":"string"},"kind":{"enum":["logo","certificate"],"type":"string"}},"required":["kind","content"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BimiAsset"}}},"description":"Stored and served."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Upload a BIMI logo (SVG Tiny PS) or mark certificate (VMC or CMC, PEM) for MailGlo to host. Nothing in DNS changes; a BIMI change names the asset by id.","tags":["hosted"]}},"/workspaces/{workspaceId}/domains/{domainId}/challenge":{"get":{"description":"Adding a domain issues its first value, so a domain waiting for access verification has one. Returns 404 not_found when no value is active. When the latest value expired unused, returns 410 challenge_expired with details.expired_at, so the page can say why the published value no longer works. An expired value is never returned.","operationId":"GetChallenge","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Challenge"}}},"description":"Active challenge."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The active DNS TXT control challenge, so its record stays shown while DNS updates.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"description":"Adding a domain already issues its first value; read it with getChallenge. While a value is active this request returns it unchanged. It issues a new value only when none is active (after expiry) or with replace=true, and the earlier value then no longer verifies.","operationId":"CreateChallenge","parameters":[{"description":"Replace the active value; the earlier value stops verifying.","in":"query","name":"replace","schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Challenge"}}},"description":"The active challenge, unchanged."},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Challenge"}}},"description":"New challenge."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Issue a new DNS TXT control value after the last one expired, or replace the active one. Changes no mail policy.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/challenge/verify":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"VerifyChallenge","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationResult"}}},"description":"Verification result."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Check the published challenge; reports what was detected.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/coverage":{"get":{"operationId":"GetCoverage","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coverage"}}},"description":"Coverage."},"default":{"$ref":"#/components/responses/Error"}},"summary":"What has and has not been detected, with freshness and gaps.","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/disputes":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"OpenDispute","requestBody":{"content":{"application/json":{"schema":{"properties":{"evidence":{"type":"string"}},"required":["evidence"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dispute"}}},"description":"Dispute opened."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Dispute another workspace's claim and say why the domain is yours. The other workspace is not disclosed.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/dkim":{"get":{"operationId":"GetDkimInventory","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Inventory."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Known DKIM selectors by origin; completeness is never claimed.","tags":["hosted"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/dmarc-switch":{"get":{"operationId":"GetDmarcSwitch","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DmarcSwitch"}}},"description":"Where the switch stands."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Switching from another DMARC tool: which tool still gets reports, since when, and, once MailGlo has received reports for 30 days, the change that stops the old tool's reports.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/dmarc-switch/snooze":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"SnoozeDmarcSwitch","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DmarcSwitch"}}},"description":"The switch, with snoozed_until set."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Not yet: To do leaves out the offer to stop the other DMARC service's reports for 7 days. Changes no DNS record.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/dns-observations":{"get":{"operationId":"ListDnsObservations","parameters":[{"$ref":"#/components/parameters/PageLimit"},{"$ref":"#/components/parameters/PageCursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DnsObservation"},"type":"array"}}},"description":"Observations.","headers":{"X-Changed-Since-Snapshot":{"$ref":"#/components/headers/ChangedSinceSnapshot"},"X-Next-Cursor":{"$ref":"#/components/headers/NextCursor"},"X-Result-Complete":{"$ref":"#/components/headers/ResultComplete"}}},"default":{"$ref":"#/components/responses/Error"}},"summary":"Every recorded DNS lookup of the domain, newest first, with the evidence_id a case result cites for it.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/dns-session":{"get":{"description":"Assembled from current DNS and the domain's state: the domain-access TXT record, DMARC with MailGlo's report address added (policy, other recipients and tags kept), SPF, known DKIM selectors and any hosted records the customer chose. Reading changes nothing: no plan is created and no hosted name is allocated. A record that could not be read has action cannot_read, never create. Needs domains.manage; a reader with changes.prepare only gets the session without the domain-access row, its step or a one-click offer, with the challenge's status alone. Under a stricter DMARC policy inherited from a parent, the DMARC row proposes no record (action review).","operationId":"GetDnsSession","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsSession"}}},"description":"Session."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Every DNS change to make now, with current and proposed values, in one setup session.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/dns-session/check":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"description":"Verifies the domain-access value when one is waiting, records the observations under one snapshot, notes a published MailGlo report address, and reports a hosted delegation done once all its records are detected. When the plan hosts SPF it also serves, at the domain's hosted SPF name, the record the SPF row asks the domain to point at, prepared from the SPF record published now. Returns the session as it is now, with the verification result.","operationId":"CheckDnsSession","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsSession"}}},"description":"Session after the check."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Re-observe every record of the session after the customer edited DNS.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/dns-session/hosted":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"description":"Imports the current configuration (read only) and records the review when needed, then prepares a delegation plan. Preparing allocates the hosted names; nothing is published until the plan is approved and run.","operationId":"ChooseHostedRecords","requestBody":{"content":{"application/json":{"schema":{"properties":{"accept_unknown_selectors":{"description":"The customer reviewed that DKIM selectors MailGlo does not know may exist.","type":"boolean"},"kinds":{"description":"Kinds from the session's hosted options, such as dmarc, spf, tls_rpt or dkim:s1.","items":{"type":"string"},"type":"array"}},"required":["kinds"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsSession"}}},"description":"Session with the prepared plan."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Confirm which records MailGlo should host; prepares one delegation plan for approval.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/dns-session/one-click":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"description":"Available when the session offers one_click. The link opens the DNS host's own approval page (Domain Connect) with the records setup asks for now, read by MailGlo, never taken from the request. The customer signs in and approves there, then returns to the domain's page. Changes nothing in MailGlo.","operationId":"StartOneClick","requestBody":{"content":{"application/json":{"schema":{"properties":{"keep_own_spf":{"description":"The customer keeps their own SPF record, so the link leaves SPF out.","type":"boolean"}},"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"host":{"description":"The DNS host's name.","type":"string"},"keys":{"description":"The session rows the link adds.","items":{"type":"string"},"type":"array"},"url":{"description":"The DNS host's approval page with the signed request.","type":"string"}},"required":["host","url","keys"],"type":"object"}}},"description":"The signed link."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Sign the link that adds setup's records at the domain's DNS host in one step.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/evidence":{"get":{"description":"Reported mail: each entry counts the messages one server sent in one report, with a stable ID.\nreported_by names the mail provider that sent the report, such as Google.\nresult is the receiver's DMARC result: pass, fail or none.\nsender_id and sender name the service the entry counts under on Senders.\nsender_named is false for a server MailGlo can't name.\ncounts gives the entries of each result under the other filters.","operationId":"ListEvidenceRows","parameters":[{"in":"query","name":"source_ip","schema":{"type":"string"}},{"in":"query","name":"header_from","schema":{"type":"string"}},{"description":"Keep entries with this result.","in":"query","name":"result","schema":{"enum":["pass","fail","none"],"type":"string"}},{"description":"Keep entries a receiver rejected or quarantined. all keeps every one. may_be_own keeps the mail that may be yours, as the stopped-mail warning on Reports counts it: from a service you allowed, a service no answer covers yet, or mail that passed DMARC. A domain share can't use this filter.","in":"query","name":"stopped","schema":{"enum":["all","may_be_own"],"type":"string"}},{"description":"Filter by sending service. Separate IDs with commas.","in":"query","name":"sender_id","schema":{"type":"string","x-id":"snd"}},{"in":"query","name":"from","schema":{"format":"date-time","type":"string"}},{"in":"query","name":"to","schema":{"format":"date-time","type":"string"}},{"in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Opaque snapshot cursor from next_cursor.","in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"One page of a consistent snapshot; follow next_cursor until complete."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List reported mail (needs evidence.read).","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/exit":{"get":{"description":"Also lists the changes to make at the DNS host to leave, in steps (each with its DNS names, the records to publish there and, once an exit has started, whether the latest check saw the change, and no_reports when a DMARC record it offers sends no reports), the domain's latest exit that wasn't canceled, the DNS host when MailGlo recognizes it, and the DNS zone that holds the domain.","operationId":"GetExitInventory","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Inventory."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Hosted records, delegations, dependencies, pending operations and report destinations.","tags":["exit"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"StartExit","responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Exit."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Start a verified exit; hosted records stay served until replacement and caches are confirmed.","tags":["exit"]}},"/workspaces/{workspaceId}/domains/{domainId}/exports":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"CreateEvidenceExport","requestBody":{"content":{"application/json":{"schema":{"properties":{"format":{"enum":["csv","json"],"type":"string"},"from":{"format":"date-time","type":"string"},"to":{"format":"date-time","type":"string"}},"required":["format"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"expires_at":{"format":"date-time","type":"string"},"notice":{"type":"string"},"url":{"type":"string"}},"required":["url","expires_at","notice"],"type":"object"}}},"description":"Link."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Create a short-lived export link bound to the caller.","tags":["evidence"]}},"/workspaces/{workspaceId}/domains/{domainId}/failure-reports":{"get":{"operationId":"ListFailureReports","parameters":[{"$ref":"#/components/parameters/PageLimit"},{"description":"Opaque cursor from next_cursor; continues the same snapshot.","in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailureReportPage"}}},"description":"One page; follow next_cursor until complete."},"default":{"$ref":"#/components/responses/Error"}},"summary":"A domain's DMARC failure reports inside the plan's visible report history, newest first, with whether the domain receives them (needs evidence.read). Each report shows the reporter, time, sending IP address, failure type, delivery result and the domains involved. A failure report whose mail failed DMARC is quarantined and never listed here. Older reports are kept, not deleted; nothing is deleted on a schedule.","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/failure-reports/setting":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"put":{"operationId":"SetFailureReporting","requestBody":{"content":{"application/json":{"schema":{"properties":{"on":{"type":"boolean"}},"required":["on"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailureReportSetting"}}},"description":"The switch and whether MailGlo receives failure reports now."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Turn a domain's failure reports on or off (needs domains.manage). They are on by default on every plan. Off stops intake at once and makes DMARC proposals drop MailGlo's failure-report address; on again restarts intake once a DMARC record with that address is in place. Changes no DNS.","tags":["evidence"]}},"/workspaces/{workspaceId}/domains/{domainId}/health":{"get":{"operationId":"GetDomainHealth","parameters":[{"in":"query","name":"days","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Health."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Mechanism results, current versus reported policy, and a timeline.","tags":["portfolio"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/hosted":{"get":{"operationId":"GetHostedStatus","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Status."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Served versions, delegations, certificates and SPF source health.","tags":["hosted"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/import":{"get":{"operationId":"GetLatestImport","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigImport"}}},"description":"Import."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Latest configuration import and restoration plan.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"ImportConfiguration","requestBody":{"content":{"application/json":{"schema":{"properties":{"customer_supplied":{"additionalProperties":{"type":"string"},"type":"object"},"dkim_selectors":{"items":{"type":"string"},"type":"array"},"excluded_gaps":{"items":{"type":"string"},"type":"array"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigImport"}}},"description":"Import."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Capture current configuration, known DKIM selectors and customer history before any change.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/import/{importId}/review":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"},{"in":"path","name":"importId","required":true,"schema":{"type":"string","x-id":"cfgimp"}}],"post":{"operationId":"ReviewImport","requestBody":{"content":{"application/json":{"schema":{"properties":{"excluded_gaps":{"items":{"type":"string"},"type":"array"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigImport"}}},"description":"Reviewed import."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Record the customer's review of preserved, changed and outside-control items, with explicit gap exclusions.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/inspection":{"get":{"description":"MailGlo checks a domain's DNS when it is added and regularly while the domain is monitored; a setup check and a refresh are checks too. inspection is null until the first check. change is the latest change a scheduled check found.","operationId":"GetLatestInspection","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestInspection"}}},"description":"Latest inspection."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The latest DNS check of the domain's authentication records, read without a new lookup.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"InspectDomain","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Inspection"}}},"description":"Inspection."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Observe current authentication records now, with timestamps.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/mail-test":{"get":{"description":"A test address takes mail for an hour. While it waits, reading the test also looks for a message that arrived, so a result shows within about a minute.","operationId":"GetMailTest","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailTest"}}},"description":"Test email."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The domain's test email, its address and what MailGlo found in the latest message sent to it (needs domains.manage).","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"StartMailTest","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailTest"}}},"description":"Test email."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Open a new test address for the domain, replacing the earlier one (needs domains.manage).","tags":["evidence"]}},"/workspaces/{workspaceId}/domains/{domainId}/migration":{"get":{"operationId":"GetMigrationChecklist","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Checklist."},"default":{"$ref":"#/components/responses/Error"}},"summary":"One-client migration checklist with the next blocker and completion meaning.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/mode":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"SetDomainMode","requestBody":{"content":{"application/json":{"schema":{"properties":{"apply":{"default":false,"type":"boolean"},"mode":{"enum":["observe","historical_upload","hosted"],"type":"string"}},"required":["mode"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModePlan"}}},"description":"Mode plan."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Preview or apply an operating-mode change. Hosted mode changes no DNS by itself.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/plans":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"description":"DKIM also accepts proposal.retire=true for a customer-published selector: without a hosted producer or unsettled hosted publication it prepares a customer-applied record-removal task, not withdrawal of MailGlo-hosted authority. Other kinds require a served hosted producer for this retirement intent. DKIM requires its selector in target_name. For hosted DKIM, DMARC, TLS-RPT, BIMI and MTA-STS, proposal.retire=true prepares hosted retirement. Approval binds the exact producing configuration. Execution keeps retirement visibly pending until that type's customer dependencies are freshly detected as detached; uncertain observations never authorize withdrawal. MTA-STS first serves an approved mode:none policy and waits the previous policy/cache bound before both discovery and policy-host detachment. A pending retirement has no automatic expiry and cannot delete a replacement configuration. Ordinary SPF sender removal is not emergency revocation and may retain last-good authorization when its replacement cannot safely publish. For hosted SPF, proposal.method chooses how MailGlo answers: managed (the default), includes, flatten, or macro, one answer per sending server. macro carries a service's own exists:%{i} rule, such as Salesforce's, and refuses a plan whose services use more than two of them. The executed plan stores the method on the domain.","operationId":"PreparePlan","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"batch_id":{"type":"string","x-id":"batch"},"case_id":{"type":"string","x-id":"case"},"finding":{"description":"The open finding of the service's investigation the change is for. Left out, it is the only open finding; with several open, name one. Linking a change to an investigation needs cases.manage.","enum":["new_sender","unknown_failing_sender","auth_regression","failing_allowed_sender","quiet_sender","parked_domain"],"type":"string"},"kind":{"description":"Kinds are dmarc, spf, dkim, mta_sts, tls_rpt, bimi and delegation.","type":"string"},"proposal":{"additionalProperties":true,"description":"The proposed values for this kind, such as {\"p\": \"quarantine\"} for dmarc. A check's prepare_plan step gives them.","type":"object"},"purpose":{"type":"string"},"require_change":{"description":"Refuse with no_change when the change would leave the record exactly as it is. Restores, delegation and hosted plans are always prepared.","type":"boolean"},"target_name":{"type":"string"}},"required":["kind","purpose","proposal"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlan"}}},"description":"Plan."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Prepare an inspectable change plan bound to the current configuration. Never changes live records.","tags":["changes"]}},"/workspaces/{workspaceId}/domains/{domainId}/protect":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"post":{"operationId":"ProtectDomain","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderChangeResult"}}},"description":"What happened."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Ask receivers to reject mail that fails DMARC (p=reject), accepting the risk the person confirmed. Applied when the person holds every change right. Needs an Idempotency-Key. People only.","tags":["senders"]}},"/workspaces/{workspaceId}/domains/{domainId}/readiness":{"get":{"operationId":"GetEnforcementReadiness","parameters":[{"in":"query","name":"target","required":true,"schema":{"enum":["quarantine","reject"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Readiness."},"default":{"$ref":"#/components/responses/Error"}},"summary":"DMARC enforcement readiness, from what reports show.","tags":["hosted"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/release-hold":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"ReleaseHold","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"}}},"description":"Domain."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Release a write hold with current proof and authority. Old approvals are not restored.","tags":["authority"]}},"/workspaces/{workspaceId}/domains/{domainId}/report-subdomains":{"get":{"description":"Needs the right to add domains for the domain's client. If at_allowance is true, monitoring another hostname of this main domain would put the workspace over its plan limit. With no plan in place, the list is empty.","operationId":"GetReportSubdomains","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportSubdomains"}}},"description":"Subdomains to offer."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Up to five subdomains from the last 30 days of visible reports that the workspace hasn't added, busiest first.","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/reporting":{"get":{"operationId":"GetReportingSetup","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Setup."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Reporting destination, preserved recipients and setup state.","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/reports":{"get":{"operationId":"ListReports","parameters":[{"$ref":"#/components/parameters/PageLimit"},{"$ref":"#/components/parameters/PageCursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Report"},"type":"array"}}},"description":"Reports.","headers":{"X-Changed-Since-Snapshot":{"$ref":"#/components/headers/ChangedSinceSnapshot"},"X-Next-Cursor":{"$ref":"#/components/headers/NextCursor"},"X-Result-Complete":{"$ref":"#/components/headers/ResultComplete"}}},"default":{"$ref":"#/components/responses/Error"}},"summary":"Received items with receipt, parse, quarantine, rejection, duplicate and conflict states.","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/score":{"get":{"description":"Reads the latest recorded DNS snapshot and recent counted reports inside the visible history; it makes no DNS lookup. not_read says when the DMARC and SPF records have not been read yet. A prepare_plan step is the kind and proposal to prepare; preparing changes nothing.","operationId":"GetDomainScore","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainScore"}}},"description":"Domain health check."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The domain's health check, each check green, yellow, red or unknown with its reason, recommendation and next step.","tags":["portfolio"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/sender-history":{"get":{"operationId":"GetSenderHistory","parameters":[{"description":"Days ending today (UTC); default and maximum the plan's history days (90 on Free, 365 on paid plans). A request past them is refused; history_window says where visible history starts.","in":"query","name":"days","schema":{"maximum":3650,"minimum":1,"type":"integer"}},{"description":"Only this sending service: its own series, never folded into Other services.","in":"query","name":"sender_id","schema":{"type":"string","x-id":"snd"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderHistory"}}},"description":"Daily buckets. Days with no counted report have null totals, never zero."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Receiver-reported messages per UTC day by sending service, with DMARC pass/fail and per-day coverage, within the plan's visible history.","tags":["senders"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/senders":{"get":{"operationId":"ListSenders","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Sender"},"type":"array"}}},"description":"Senders."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Candidate sending services with what the reports show, uncertainty and authorization record.","tags":["senders"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/senders/add":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"post":{"operationId":"AddSender","requestBody":{"content":{"application/json":{"schema":{"properties":{"provider_id":{"type":"string","x-id":"none"}},"required":["provider_id"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderChangeResult"}}},"description":"What happened."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Add a service from the catalogue and allow it: the decision, then the SPF change, applied when the person holds every change right. Needs an Idempotency-Key. People only.","tags":["senders"]}},"/workspaces/{workspaceId}/domains/{domainId}/snapshots":{"get":{"operationId":"ListDnsSnapshots","parameters":[{"$ref":"#/components/parameters/PageLimit"},{"$ref":"#/components/parameters/PageCursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Snapshots.","headers":{"X-Changed-Since-Snapshot":{"$ref":"#/components/headers/ChangedSinceSnapshot"},"X-Next-Cursor":{"$ref":"#/components/headers/NextCursor"},"X-Result-Complete":{"$ref":"#/components/headers/ResultComplete"}}},"default":{"$ref":"#/components/responses/Error"}},"summary":"Earlier DNS inspections with their own times and purposes, newest first.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/snapshots/{snapshotId}":{"get":{"operationId":"GetDnsSnapshot","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Snapshot."},"default":{"$ref":"#/components/responses/Error"}},"summary":"One recorded snapshot with every answer as detected.","tags":["domains"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"},{"in":"path","name":"snapshotId","required":true,"schema":{"type":"string","x-id":"snap"}}]},"/workspaces/{workspaceId}/domains/{domainId}/spf-entries":{"get":{"description":"Reads the record now. Each entry shows as the record has it, with its DNS lookups counted through every include, the name given to it when it was added here, and, for an ip4 or ip6 entry that lets servers pass, the mail its addresses sent in the last 30 days of visible history. editable is false, with refusal saying why, for a record one entry can't be changed in. can_remove says the reader may prepare SPF changes; can_add says they may also allow a sender, which adding or editing an entry records. can_restore says they may put a service MailGlo paused back in hosted SPF.","operationId":"ListSpfEntries","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpfEntries"}}},"description":"The entries."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The published SPF record's entries, each with the DNS lookups it costs, and what the reader may change.","tags":["changes"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"description":"Refuses what the preview blocks, before anything is recorded. The plan is approved and applied like any other change plan. Never changes live records.","operationId":"PrepareSpfEntry","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpfEntryChange"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlan"}}},"description":"Plan."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Prepare the SPF change a preview showed. A typed entry is first recorded as a sender the person allows, as Add a service in Senders does. Needs an Idempotency-Key; adding an entry needs a person.","tags":["changes"]}},"/workspaces/{workspaceId}/domains/{domainId}/spf-entries/name":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"put":{"description":"For a person who may add senders here: one who may prepare SPF changes and allow senders. The entry is one the published record has, such as ip4:203.0.113.10; an entry with no sender yet gets one, with no decision: naming a sender doesn't allow it. The old name stays in the sender's history.","operationId":"NameSpfEntry","requestBody":{"content":{"application/json":{"schema":{"properties":{"entry":{"description":"The entry as the record has it.","maxLength":512,"type":"string"},"name":{"maxLength":200,"minLength":1,"type":"string"}},"required":["entry","name"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Renamed."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Give an SPF entry's sender a new name. Changes nothing in DNS.","tags":["changes"]}},"/workspaces/{workspaceId}/domains/{domainId}/spf-entries/preview":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"description":"For a record the customer publishes. Add one typed entry (ip4, ip6, a, mx or include), remove one entry exactly as the record has it, or both to edit one. The record keeps its other entries and its -all or ~all ending. blockers lists what would stop the plan, such as more than 10 DNS lookups. A hosted SPF record, more than one SPF record, an ending other than -all or ~all, or a record MailGlo cannot read now is refused: change those in the SPF change form.","operationId":"PreviewSpfEntry","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpfEntryChange"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpfEntryPreview"}}},"description":"The record and its lookup count."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Show the SPF record a one-entry change would publish and its DNS lookup count, counted through every include. Saves nothing.","tags":["changes"]}},"/workspaces/{workspaceId}/domains/{domainId}/spf-method":{"get":{"description":"For a domain whose SPF MailGlo hosts, and a reader who may prepare SPF changes. Each way (includes, flatten, macro) is rendered as the SPF change would be, keeping every hosted service and the record's ending. proposal is that change without method: add method and send it to preparePlan to choose a way, or method managed to let MailGlo choose again. When SPF isn't hosted, or the hosted services can't be named in one change, ways is empty or proposal is absent, and refusal says why.","operationId":"GetSpfMethodOptions","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpfMethodOptions"}}},"description":"The ways."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Compare the ways hosted SPF can answer for this domain, each with the DNS lookups receivers would make and what would stop it. Saves nothing.","tags":["changes"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/spf-paused/{include}/restore":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"},{"description":"The include name MailGlo paused, such as _spf.example.com.","in":"path","name":"include","required":true,"schema":{"type":"string"}}],"post":{"description":"MailGlo serves the hosted SPF record with the service back in it, as a new version. A record that wouldn't stay one valid record within 10 DNS lookups is refused, and the service stays paused. MailGlo keeps checking the service and takes it out again if receivers still can't read it. Needs changes.approve.","operationId":"RestoreSpfInclude","responses":{"204":{"description":"Back in SPF."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Put a sending service MailGlo paused back in hosted SPF.","tags":["changes"]}},"/workspaces/{workspaceId}/domains/{domainId}/spf-sources/{sourceId}/emergency/preview":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"},{"in":"path","name":"sourceId","required":true,"schema":{"type":"string","x-id":"src"}}],"post":{"description":"Requires a signed-in person with current approval authority. Uses accepted publication provenance, even if the source row was deleted. Reads the newest committed publication, whether or not nameservers have it yet; the impact also covers every version back to the oldest one MailGlo can confirm a nameserver still serves, or back to the last one it reported published when that is older. When it can confirm none, the impact covers every version published in the last 24 hours, the newest one published before that window, and every one since the last one MailGlo reported published. Versions whose history MailGlo already cleared aren't in it. unknown_nameservers counts the configured nameservers MailGlo can't confirm: those that haven't answered for 24 hours, and those that answered with a version whose history MailGlo no longer keeps. Returns an expiring one-use confirmation bound to this person, source, reason and the domain's content; another domain's publication doesn't make it stale. A source the newest content already removed, which older content a nameserver may still serve lists, gets 409 already_removed: there is nothing left to revoke. If MailGlo can't tell which senders share servers or can't remove just this sender safely, all mail from the domain may fail SPF; receiver caches and DKIM authorization are not revoked by this action.","operationId":"PreviewSenderRevocation","requestBody":{"content":{"application/json":{"schema":{"properties":{"reason":{"maxLength":4096,"minLength":1,"type":"string"}},"required":["reason"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Named impact and one-use confirmation. This does not change authorization."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Preview emergency SPF revocation and its possible delivery impact.","tags":["changes"]}},"/workspaces/{workspaceId}/domains/{domainId}/spf-sources/{sourceId}/emergency/revoke":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"},{"in":"path","name":"sourceId","required":true,"schema":{"type":"string","x-id":"src"}}],"post":{"description":"Requires current human approval authority and the exact delivery-impact confirmation from a fresh preview. The persistent control removes authorization in the next publication, with possible overlapping-sender or fail-closed delivery impact. Ordinary approvals do not lift the block. It is accepted at once, even while another DNS change is publishing; acceptance is not confirmation from deployed DNS nodes. Agents, MCP clients and API keys cannot confirm.","operationId":"RevokeSender","requestBody":{"content":{"application/json":{"schema":{"properties":{"confirmation":{"maxLength":256,"type":"string"},"confirmation_token":{"maxLength":256,"type":"string"},"reason":{"maxLength":4096,"minLength":1,"type":"string"}},"required":["reason"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Control and audit committed; local publication is pending."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Confirm an audited emergency SPF revocation that overrides ordinary holds.","tags":["changes"]}},"/workspaces/{workspaceId}/domains/{domainId}/spf-sources/{sourceId}/{action}":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"domainId","required":true,"schema":{"type":"string","x-id":"dom"}},{"in":"path","name":"sourceId","required":true,"schema":{"type":"string","x-id":"src"}},{"in":"path","name":"action","required":true,"schema":{"enum":["pause","resume"],"type":"string"}}],"post":{"operationId":"SetSpfSource","requestBody":{"content":{"application/json":{"schema":{"properties":{"reason":{"type":"string"}},"required":["reason"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Source."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Pause or resume refreshes of a provider SPF definition; the last approved record stays served.","tags":["changes"]}},"/workspaces/{workspaceId}/domains/{domainId}/spf/explain":{"get":{"description":"The result, matched term and trace for that IP. universal_pass_ranges lists terms that let nearly every server pass. broad_pass_ranges lists terms that let a large range of addresses pass. passes_unrelated_addresses says the record lets nearly every server pass, however it does it.","operationId":"ExplainSpf","parameters":[{"in":"query","name":"ip","required":true,"schema":{"type":"string"}},{"in":"query","name":"sender","schema":{"type":"string"}},{"description":"Evaluate against this checked or approved plan before it is published.","in":"query","name":"plan_id","schema":{"type":"string","x-id":"plan"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Result with trace."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Explain the SPF result for a source IP under the published record.","tags":["hosted"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/state":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"description":"Archiving a domain during setup releases its hosted names and removes the records MailGlo served at them.","operationId":"SetDomainState","requestBody":{"content":{"application/json":{"schema":{"properties":{"reason":{"type":"string"},"state":{"enum":["paused","active","archived"],"type":"string"}},"required":["state","reason"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"}}},"description":"Domain."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Pause, resume or archive a domain. Pausing stops new changes only; archiving is for domains that serve nothing.","tags":["domains"]}},"/workspaces/{workspaceId}/domains/{domainId}/summary":{"get":{"operationId":"GetEvidenceSummary","parameters":[{"in":"query","name":"from","schema":{"format":"date-time","type":"string"}},{"in":"query","name":"to","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Summary."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Aggregated observations by source with units, window, coverage and drill-down filters.","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/suppressions":{"get":{"operationId":"ListSuppressions","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Suppressions."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Active alert suppressions with reason and expiry.","tags":["senders"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"SuppressDetection","requestBody":{"content":{"application/json":{"schema":{"properties":{"days":{"type":"integer"},"detection":{"type":"string"},"reason":{"type":"string"},"sender_id":{"type":"string","x-id":"snd"}},"required":["detection","reason","days"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}},"description":"Suppression."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Suppress a detection with scope, reason and expiry.","tags":["senders"]}},"/workspaces/{workspaceId}/domains/{domainId}/tls-results":{"get":{"operationId":"GetTlsResults","parameters":[{"description":"Start of the window; 30 days before to by default, never before the visible history.","in":"query","name":"from","schema":{"format":"date-time","type":"string"}},{"description":"End of the window; now by default.","in":"query","name":"to","schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TlsResults"}}},"description":"TLS sessions in the window. Days without reports are absent and mean unknown, not successful."},"default":{"$ref":"#/components/responses/Error"}},"summary":"TLS report results (RFC 8460) by UTC day and policy, with the most frequent failure types, apart from DMARC.","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}]},"/workspaces/{workspaceId}/domains/{domainId}/transfer":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"post":{"operationId":"TransferDomain","requestBody":{"content":{"application/json":{"schema":{"properties":{"confirm":{"type":"boolean"},"to_client_id":{"type":"string","x-id":"cli"}},"required":["to_client_id"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Preview or result."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Preview or move a domain family to another client of this workspace.","tags":["clients"]}},"/workspaces/{workspaceId}/domains/{domainId}/watch":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"$ref":"#/components/parameters/DomainId"}],"put":{"operationId":"SetDomainWatched","requestBody":{"content":{"application/json":{"schema":{"properties":{"watch":{"type":"boolean"}},"required":["watch"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivationResult"}}},"description":"The result."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Watch a monitored domain for free, or manage it again. Watching is refused while MailGlo hosts its records; managing needs room in the plan.","tags":["billing"]}},"/workspaces/{workspaceId}/events":{"get":{"operationId":"ListEvents","parameters":[{"in":"query","name":"after","schema":{"format":"int64","type":"integer"}},{"in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Page."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Events after a cursor in id order (pull delivery).","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/exits/{exitId}/check":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"exitId","required":true,"schema":{"type":"string","x-id":"exit"}}],"post":{"operationId":"CheckExit","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Exit."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Observe replacement records and cache periods.","tags":["exit"]}},"/workspaces/{workspaceId}/exits/{exitId}/remove-now":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"exitId","required":true,"schema":{"type":"string","x-id":"exit"}}],"post":{"description":"Live hosted records require type-specific retirement and normal exit checks. This acknowledgement is not blanket emergency authority. Compromised senders use the separate scoped, human-confirmed sender revocation flow.","operationId":"RemoveHostedNow","requestBody":{"content":{"application/json":{"schema":{"properties":{"acknowledge_consequences":{"type":"boolean"},"reason":{"type":"string"}},"required":["acknowledge_consequences","reason"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Exit."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Complete an exit immediately only when no hosted or pending publication authority remains.","tags":["exit"]}},"/workspaces/{workspaceId}/external-tasks/{taskId}":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"taskId","required":true,"schema":{"type":"string","x-id":"task"}}],"post":{"operationId":"ReportExternalTask","requestBody":{"content":{"application/json":{"schema":{"properties":{"minutes":{"type":"integer"},"report":{"type":"string"},"status":{"enum":["reported_done","reported_failed","provider_changed"],"type":"string"}},"required":["status"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Recorded."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Report a customer-applied step; completion triggers verification.","tags":["changes"]}},"/workspaces/{workspaceId}/feedback":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"RecordFeedback","requestBody":{"content":{"application/json":{"schema":{"properties":{"case_id":{"type":"string","x-id":"case"},"kind":{"type":"string"},"minutes":{"type":"integer"},"text":{"type":"string"}},"required":["kind","text"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}},"description":"Feedback."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Record typed feedback (time saved, work remaining, price, agent adoption, missing capability).","tags":["support"]}},"/workspaces/{workspaceId}/grants":{"get":{"operationId":"ListGrants","parameters":[{"in":"query","name":"membership_id","schema":{"type":"string","x-id":"mem"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Grant"},"type":"array"}}},"description":"Grants."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List explicit grants. Every member reads their own, a client contact too; agent managers also read agents', and member managers everyone's.","tags":["members"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"AddGrant","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Grant"}}},"description":"Grant added."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Add one explicit grant. Self-grants and grants beyond the granter's own authority are refused.","tags":["members"]}},"/workspaces/{workspaceId}/grants/{grantId}":{"delete":{"operationId":"RevokeGrant","responses":{"204":{"description":"Revoked."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Revoke a grant.","tags":["members"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"grantId","required":true,"schema":{"type":"string","x-id":"grt"}}]},"/workspaces/{workspaceId}/imports/{jobId}":{"get":{"operationId":"GetImportJob","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJob"}}},"description":"Job."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Import job state.","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"jobId","required":true,"schema":{"type":"string","x-id":"imp"}}]},"/workspaces/{workspaceId}/imports/{jobId}/run":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"jobId","required":true,"schema":{"type":"string","x-id":"imp"}}],"post":{"operationId":"RunImport","parameters":[{"in":"query","name":"max_items","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJob"}}},"description":"Job."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Import accepted items (resumable; never double counts).","tags":["evidence"]}},"/workspaces/{workspaceId}/inbox":{"get":{"operationId":"GetApprovalInbox","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Inbox."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Decisions the caller can make, with what the reports show, effects and unknowns, plus outcomes of earlier approvals.","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/invitations":{"get":{"operationId":"ListInvitations","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Invitation"},"type":"array"}}},"description":"Invitations."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List invitations.","tags":["members"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"CreateInvitation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invitation"}}},"description":"Invitation recorded."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Invite a person with a role and client scope.","tags":["members"]}},"/workspaces/{workspaceId}/invitations/{invitationId}":{"delete":{"operationId":"RevokeInvitation","responses":{"204":{"description":"Revoked."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Revoke a pending invitation.","tags":["members"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"invitationId","required":true,"schema":{"type":"string","x-id":"invite"}}]},"/workspaces/{workspaceId}/invoices":{"get":{"operationId":"ListInvoices","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Invoice"},"type":"array"}}},"description":"Invoices."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Paid, refunded, outstanding and upcoming invoices.","tags":["billing"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/invoices/export":{"get":{"operationId":"ExportInvoices","responses":{"200":{"content":{"text/csv":{"schema":{"type":"string"}}},"description":"CSV."},"default":{"$ref":"#/components/responses/Error"}},"summary":"CSV export of this workspace's invoices.","tags":["billing"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/limits":{"get":{"operationId":"GetLimits","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Limits."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Activity limits and remaining budgets (no billing rights needed).","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/mcp-connections":{"get":{"operationId":"ListMcpConnections","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Connections."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Live MCP connections in this workspace: the AI client, the person it acts as, when it was connected and last used. An owner sees everyone's; others see their own.","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/mcp-connections/{connectionId}":{"delete":{"operationId":"RevokeMcpConnection","responses":{"204":{"description":"Revoked."},"default":{"$ref":"#/components/responses/Error"}},"summary":"End an MCP connection now; its next request is refused. A person revokes their own, an owner anyone's.","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"connectionId","required":true,"schema":{"type":"string","x-id":"mcc"}}]},"/workspaces/{workspaceId}/members":{"get":{"operationId":"ListMembers","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Member"},"type":"array"}}},"description":"Members."},"default":{"$ref":"#/components/responses/Error"}},"summary":"List people and agents with access to the workspace.","tags":["members"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/members/{membershipId}":{"delete":{"operationId":"RemoveMember","responses":{"204":{"description":"Removed."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Remove a member; revokes grants, tokens and pending approvals immediately.","tags":["members"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"membershipId","required":true,"schema":{"type":"string","x-id":"mem"}}]},"/workspaces/{workspaceId}/mfa-requirement":{"get":{"operationId":"GetMfaRequirement","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaRequirement"}}},"description":"The requirement."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Whether the workspace requires two-factor authentication, and how many members are not enrolled (needs workspace.read).","tags":["tenancy"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"put":{"operationId":"SetMfaRequirement","requestBody":{"content":{"application/json":{"schema":{"properties":{"on":{"type":"boolean"}},"required":["on"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MfaRequirement"}}},"description":"The requirement now."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Require two-factor authentication for access to the workspace, or stop requiring it (needs workspace.manage, by a person). Turning it on needs the caller to have proved a code in this session (mfa_setup_required otherwise), so it never locks them out. Members without it then reach the workspace only after they set it up (mfa_required_by_workspace until then). Turning it off leaves every person's own two-factor authentication on.","tags":["tenancy"]}},"/workspaces/{workspaceId}/notification-preferences":{"get":{"operationId":"ListNotificationPreferences","responses":{"200":{"content":{"application/json":{"schema":{"items":{"properties":{"category":{"type":"string"},"mode":{"type":"string"},"quiet_end":{"nullable":true,"type":"integer"},"quiet_start":{"nullable":true,"type":"integer"},"timezone":{"type":"string"}},"required":["category","mode","timezone"],"type":"object"},"type":"array"}}},"description":"Preferences."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Your notification settings per category; categories without a row use immediate delivery.","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"put":{"operationId":"SetNotificationPreference","requestBody":{"content":{"application/json":{"schema":{"properties":{"category":{"type":"string"},"mode":{"type":"string"},"quiet_end":{"type":"integer"},"quiet_start":{"type":"integer"},"timezone":{"type":"string"}},"required":["category","mode"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Saved."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Set mode, quiet hours and time zone for one category (required account and security notices are unaffected).","tags":["reports"]}},"/workspaces/{workspaceId}/notifications":{"get":{"operationId":"ListNotifications","parameters":[{"description":"Only notifications about this domain; the limit applies after this filter.","in":"query","name":"domain_id","schema":{"type":"string","x-id":"dom"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Notifications."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The caller's routed notifications (deduplicated), newest first, up to 200. With domain_id, only that domain's.","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/ownership-transfers":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"OfferOwnership","requestBody":{"content":{"application/json":{"schema":{"properties":{"include_billing":{"type":"boolean"},"to_principal_id":{"type":"string","x-id":"prn"}},"required":["to_principal_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}},"description":"Offer."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Offer ownership to a member; nothing changes until they accept.","tags":["workspaces"]}},"/workspaces/{workspaceId}/ownership-transfers/{transferId}/accept":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"transferId","required":true,"schema":{"type":"string","x-id":"owntr"}}],"post":{"operationId":"AcceptOwnership","requestBody":{"content":{"application/json":{"schema":{"properties":{"terms_version":{"type":"string"}},"required":["terms_version"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Transferred."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The named new owner accepts and confirms.","tags":["workspaces"]}},"/workspaces/{workspaceId}/payment-method-session":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"OpenPaymentMethodSession","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPortalSession"}}},"description":"Link to the processor's page."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Workspace-bound link to the processor's page for replacing the card. It offers only that change and returns to Billing. A person with billing rights only; MailGlo never receives card details.","tags":["billing"]}},"/workspaces/{workspaceId}/payments":{"get":{"operationId":"ListPayments","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Payment"},"type":"array"}}},"description":"Payments."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Payment history.","tags":["billing"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/payments/retry":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"RetryPayment","responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}},"description":"Submitted to the processor."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Retry an unpaid renewal invoice after updating the payment method.","tags":["billing"]}},"/workspaces/{workspaceId}/plan-limits":{"get":{"operationId":"GetPlanLimits","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanLimits"}}},"description":"Plan limits."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Whether the workspace is at a plan limit for adding a domain, inviting a team member or sharing a domain, or its plan lacks investigations, client management or client-ready reports, with the ways forward the published catalog offers. Any team member can read it; no billing rights are needed and no amounts charged are shown. The server still refuses an action past its limit.","tags":["billing"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/plan-options":{"get":{"operationId":"GetPlanOptions","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOptions"}}},"description":"Plan options."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The plans and billing intervals the workspace can choose now and the quote kind for each. A running subscription changes plan within its own catalog version (upgrade or downgrade); any other workspace buys from the published catalog. Each plan is offered per billing interval it has a price for, monthly or yearly; with Stripe configured, only a plan and interval with a configured Stripe price. Monthly billing moves to yearly at once (upgrade); yearly billing moves to monthly only at renewal (downgrade). A purchase or upgrade to a larger plan lists only plans that hold every domain the plan will serve; above the largest self-serve plan, contact sales.","tags":["billing"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/plans":{"get":{"operationId":"ListPlans","parameters":[{"$ref":"#/components/parameters/PageLimit"},{"$ref":"#/components/parameters/PageCursor"},{"in":"query","name":"domain_id","schema":{"type":"string","x-id":"dom"}},{"in":"query","name":"status","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ChangePlan"},"type":"array"}}},"description":"Plans.","headers":{"X-Changed-Since-Snapshot":{"$ref":"#/components/headers/ChangedSinceSnapshot"},"X-Next-Cursor":{"$ref":"#/components/headers/NextCursor"},"X-Result-Complete":{"$ref":"#/components/headers/ResultComplete"}}},"default":{"$ref":"#/components/responses/Error"}},"summary":"Change plans in the caller's clients.","tags":["changes"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/plans/{planId}":{"get":{"operationId":"GetPlan","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlan"}}},"description":"Plan."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Plan with approvals, operations, verification and external steps.","tags":["changes"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"planId","required":true,"schema":{"type":"string","x-id":"plan"}}],"patch":{"operationId":"EditPlan","requestBody":{"content":{"application/json":{"schema":{"properties":{"proposal":{"additionalProperties":true,"type":"object"},"purpose":{"type":"string"}},"required":["proposal"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlan"}}},"description":"Plan."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Edit a plan; approvals and checks are invalidated.","tags":["changes"]}},"/workspaces/{workspaceId}/plans/{planId}/check":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"planId","required":true,"schema":{"type":"string","x-id":"plan"}}],"post":{"operationId":"CheckPlan","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Check."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Validate authority, environment, version, conflicts and values; ready, blocked, unsupported or waiting.","tags":["changes"]}},"/workspaces/{workspaceId}/plans/{planId}/decision":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"planId","required":true,"schema":{"type":"string","x-id":"plan"}}],"post":{"operationId":"DecidePlan","requestBody":{"content":{"application/json":{"schema":{"properties":{"accept_residual_risk":{"type":"boolean"},"decision":{"enum":["approved","declined","info_requested"],"type":"string"},"expires_hours":{"type":"integer"},"plan_version":{"description":"The plan version reviewed; refused when it is no longer current.","type":"integer"},"reason":{"type":"string"},"standing_policy_id":{"type":"string","x-id":"pol"}},"required":["decision","reason"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlan"}}},"description":"Plan."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Approve, decline or request information for one plan version.","tags":["changes"]}},"/workspaces/{workspaceId}/plans/{planId}/execute":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"planId","required":true,"schema":{"type":"string","x-id":"plan"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"post":{"operationId":"ExecutePlan","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Operation."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Apply an approved plan exactly once; replays return the existing operation.","tags":["changes"]}},"/workspaces/{workspaceId}/plans/{planId}/reconcile":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"planId","required":true,"schema":{"type":"string","x-id":"plan"}}],"post":{"operationId":"ReconcileOperation","requestBody":{"content":{"application/json":{"schema":{"properties":{"outcome":{"enum":["published","not_applied"],"type":"string"},"reason":{"type":"string"}},"required":["outcome","reason"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlan"}}},"description":"Plan."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Settle an apply whose outcome was unknown, after observing the served records: published promotes the reserved version, not_applied retires it. Accepted only when the observation agrees; nothing is retried.","tags":["changes"]}},"/workspaces/{workspaceId}/plans/{planId}/restore":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"planId","required":true,"schema":{"type":"string","x-id":"plan"}}],"post":{"operationId":"PrepareRestore","responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlan"}}},"description":"Restore plan."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Prepare a new plan back to the prior approved state (normal checks and approval apply).","tags":["changes"]}},"/workspaces/{workspaceId}/plans/{planId}/save-and-apply":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"planId","required":true,"schema":{"type":"string","x-id":"plan"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"post":{"operationId":"SaveAndApplyPlan","requestBody":{"content":{"application/json":{"schema":{"properties":{"accept_residual_risk":{"type":"boolean"},"plan_version":{"description":"The plan version reviewed; refused when it is no longer current.","type":"integer"},"reason":{"description":"Recorded with the approval; a default names Save and apply.","type":"string"}},"required":["plan_version"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveAndApplyResult"}}},"description":"Outcome."},"default":{"$ref":"#/components/responses/Error"}},"summary":"For a person holding prepare, approve and execute on this exact target: check, approve the reviewed version and apply it in one keyed request. Needs an Idempotency-Key; a refusal names its reasons and changes nothing. Not for agents.","tags":["changes"]}},"/workspaces/{workspaceId}/plans/{planId}/verify":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"planId","required":true,"schema":{"type":"string","x-id":"plan"}}],"post":{"operationId":"VerifyPlan","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlan"}}},"description":"Plan."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Verify published, provider-confirmed and detected stages separately.","tags":["changes"]}},"/workspaces/{workspaceId}/portfolio":{"get":{"operationId":"GetPortfolio","parameters":[{"in":"query","name":"client_id","schema":{"type":"string","x-id":"cli"}},{"in":"query","name":"technician","schema":{"type":"string","x-id":"prn"}},{"description":"Keep the items assigned to this person","in":"query","name":"assignee","schema":{"type":"string","x-id":"prn"}},{"in":"query","name":"severity","schema":{"type":"string"}},{"in":"query","name":"sender_id","schema":{"type":"string","x-id":"snd"}},{"in":"query","name":"state","schema":{"type":"string"}},{"in":"query","name":"category","schema":{"type":"string"}},{"in":"query","name":"window_days","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portfolio"}}},"description":"Portfolio."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Prioritized work across the caller's clients (setup, investigations, approvals, missing data, incidents).","tags":["portfolio"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/portfolio/score":{"get":{"description":"Lists each domain with its checks per status and the checks that need attention, ordered by red checks, then the yellow checks that need attention, then name. Covers the same domains as the domain list; exited and archived domains are left out. The checks describe configuration and reports, not delivery.","operationId":"GetPortfolioScore","parameters":[{"description":"Only this client's domains.","in":"query","name":"client_id","schema":{"type":"string","x-id":"cli"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioScore"}}},"description":"Health checks across domains."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The health checks of every domain the caller reads, with domains that have red checks first.","tags":["portfolio"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/prospect-reports":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"description":"MailGlo doesn't save the report. It logs the domain names it checks. The report comes back as one HTML file with both logos inside it, ready to attach or print to PDF. Each domain is one public DNS check, under the public check's limit of 60 an hour per address (per connection for an MCP call). The report names each domain the limit left unchecked and each one whose DMARC or SPF record couldn't be read. After retry_at, send the same request with kept: only those domains are checked again, and kept expires 24 hours after the first check it holds. Needs reports.manage for the workspace and a plan with client reports.","operationId":"MakeProspectReport","requestBody":{"content":{"application/json":{"schema":{"properties":{"company":{"description":"The company the report is for.","maxLength":200,"minLength":1,"type":"string"},"domains":{"items":{"maxLength":300,"type":"string"},"maxItems":25,"minItems":1,"type":"array"},"kept":{"description":"The kept value of an earlier report for the same company and domains: its rows already read are kept, and only the rest are checked again.","maxLength":400000,"type":"string"},"logo_png":{"description":"Optional: the company's logo, a PNG of at most 300 KB and 2000 pixels on a side, base64-encoded.","maxLength":400000,"type":"string"}},"required":["company","domains"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"company":{"type":"string"},"complete":{"description":"Every domain was checked and its DMARC and SPF records read: the report is ready to send.","type":"boolean"},"domains":{"items":{"properties":{"checked_at":{"format":"date-time","type":"string"},"display":{"description":"The domain as people write it, international letters included.","type":"string"},"dkim":{"type":"string"},"dmarc":{"type":"string"},"dns_host":{"type":"string"},"domain":{"description":"The domain as DNS reads it: an international name in its xn-- form.","type":"string"},"spf":{"type":"string"},"state":{"description":"not_checked: the hourly limit left it; not_read: its check failed or its DMARC or SPF record could not be read.","enum":["checked","not_checked","not_read"],"type":"string"},"unread_cause":{"description":"Why a not_read row wasn't read, when known. dns_servers_disagree: the domain's DNS servers gave different DMARC answers, as during a change; check again later.","enum":["dns_servers_disagree"],"type":"string"}},"required":["domain","display","state"],"type":"object"},"type":"array"},"html":{"description":"The finished report, one self-contained HTML file.","type":"string"},"kept":{"description":"Send it back with the same request to check only what is missing.","type":"string"},"retry_at":{"description":"When the hourly limit lets a domain it left be checked.","format":"date-time","type":"string"}},"required":["company","html","complete","domains","kept"],"type":"object"}}},"description":"The report."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Check up to 25 domains of a company you hope to win and get a report with your logo, theirs, a verdict and the fixes, worst first.","tags":["reports"]}},"/workspaces/{workspaceId}/quotes":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"PrepareQuote","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}},"description":"Quote."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Prepare an exact, expiring quote. Agents with billing read access can prepare; committing needs billing.manage.","tags":["billing"]}},"/workspaces/{workspaceId}/quotes/{quoteId}":{"get":{"operationId":"GetQuote","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteState"}}},"description":"Where the change stands."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Read where an accepted change stands, while the processor confirms it.","tags":["billing"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"quoteId","required":true,"schema":{"type":"string","x-id":"quote"}}]},"/workspaces/{workspaceId}/quotes/{quoteId}/accept":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"quoteId","required":true,"schema":{"type":"string","x-id":"quote"}}],"post":{"operationId":"AcceptQuote","requestBody":{"content":{"application/json":{"schema":{"properties":{"agreement_versions":{"additionalProperties":{"type":"string"},"type":"object"},"return_to":{"description":"The page the payment page returns to. billing (the default) or domains, where a purchase made at the domain limit continues adding the domain.","enum":["billing","domains"],"type":"string"}},"required":["agreement_versions"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Checkout"}}},"description":"Checkout or scheduled change."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Accept a current quote. Service changes only after the processor confirms payment.","tags":["billing"]}},"/workspaces/{workspaceId}/refunds":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"RequestRefund","requestBody":{"content":{"application/json":{"schema":{"properties":{"amount_cents":{"type":"integer"},"confirm":{"default":false,"type":"boolean"},"note":{"type":"string"},"payment_id":{"type":"string","x-id":"pay"},"preview_id":{"description":"Required with confirm: the preview whose reviewed effect is submitted. A changed effect needs a new preview.","type":"string","x-id":"rfp"},"reason":{"enum":["first_charge_policy","duplicate_charge","incorrect_capacity","discretionary"],"type":"string"}},"required":["payment_id","reason"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundPreview"}}},"description":"Preview or result."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Preview or request a refund or billing correction (reason-coded).","tags":["billing"]}},"/workspaces/{workspaceId}/reports/{reportId}":{"get":{"operationId":"GetClientReport","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Report."},"default":{"$ref":"#/components/responses/Error"}},"summary":"A client report as it was made, with its html.","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"reportId","required":true,"schema":{"type":"string","x-id":"doc"}}]},"/workspaces/{workspaceId}/reports/{reportId}/raw":{"get":{"operationId":"GetRawReport","responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"Raw bytes."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Original report payload (the raw report; audited).","tags":["evidence"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"reportId","required":true,"schema":{"type":"string","x-id":"rpt"}}]},"/workspaces/{workspaceId}/reports/{reportId}/resolve-conflict":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"reportId","required":true,"schema":{"type":"string","x-id":"rpt"}}],"post":{"operationId":"ResolveReportConflict","requestBody":{"content":{"application/json":{"schema":{"properties":{"keep":{"enum":["original","conflicting"],"type":"string"},"note":{"type":"string"}},"required":["keep","note"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Resolved."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Keep one of two conflicting payloads after review; the other stays as a superseded report.","tags":["evidence"]}},"/workspaces/{workspaceId}/reports/{reportId}/shares":{"delete":{"operationId":"RevokeReportShares","responses":{"204":{"description":"Revoked."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Revoke every share link for this report.","tags":["reports"]},"get":{"operationId":"ListReportShares","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Deliveries."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Delivery and viewing state per recipient (not acceptance).","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"reportId","required":true,"schema":{"type":"string","x-id":"doc"}}],"post":{"operationId":"ShareReport","requestBody":{"content":{"application/json":{"schema":{"properties":{"days":{"type":"integer"},"note":{"description":"A short note from the workspace that only this share's copy of the report shows, above its chart. Leave it out for none.","maxLength":500,"type":"string"},"recipients":{"items":{"type":"string"},"type":"array"}},"required":["recipients"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Shares."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Share with recipient-bound, expiring links.","tags":["reports"]}},"/workspaces/{workspaceId}/schedules":{"get":{"operationId":"ListSchedules","responses":{"200":{"content":{"application/json":{"schema":{"items":{"properties":{"cadence":{"type":"string"},"client_ids":{"items":{"type":"string","x-id":"cli"},"type":"array"},"id":{"type":"string","x-id":"sch"},"name":{"type":"string"},"next_run_at":{"format":"date-time","type":"string"},"recipients":{"items":{"type":"string"},"type":"array"},"status":{"type":"string"},"stopped_reason":{"nullable":true,"type":"string"},"timezone":{"type":"string"}},"required":["id","name","recipients","client_ids","timezone","cadence","status","next_run_at"],"type":"object"},"type":"array"}}},"description":"Schedules."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Scheduled reports whose clients the caller can read.","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"CreateSchedule","requestBody":{"content":{"application/json":{"schema":{"properties":{"cadence":{"enum":["weekly","monthly"],"type":"string"},"client_ids":{"items":{"type":"string","x-id":"cli"},"type":"array"},"name":{"type":"string"},"recipients":{"items":{"type":"string"},"type":"array"},"timezone":{"type":"string"}},"required":["name","recipients","client_ids","cadence"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}},"description":"Schedule."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Schedule client summaries with recipients, scope, time zone and cadence.","tags":["reports"]}},"/workspaces/{workspaceId}/schedules/{scheduleId}":{"get":{"operationId":"PreviewSchedule","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Preview."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Preview the next delivery.","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"scheduleId","required":true,"schema":{"type":"string","x-id":"sch"}}],"patch":{"operationId":"SetScheduleStatus","requestBody":{"content":{"application/json":{"schema":{"properties":{"status":{"enum":["active","paused","canceled"],"type":"string"}},"required":["status"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Updated."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Pause, resume or cancel a schedule.","tags":["reports"]}},"/workspaces/{workspaceId}/schedules/{scheduleId}/runs":{"get":{"operationId":"ListScheduleRuns","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Runs."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Run records with window and result, including failures.","tags":["reports"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"scheduleId","required":true,"schema":{"type":"string","x-id":"sch"}}]},"/workspaces/{workspaceId}/sender-catalog":{"get":{"operationId":"ListSenderCatalog","parameters":[{"description":"Read the list for this domain: anyone who can read the domain may, including a person with access to one client only.","in":"query","name":"domain_id","schema":{"type":"string","x-id":"dom"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SenderCatalogEntry"},"type":"array"}}},"description":"Services."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Sending services a person can add to a domain before their mail is reported.","tags":["senders"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/sender-requests":{"get":{"operationId":"ListSenderRequests","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Requests."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Sender decision requests visible to the caller.","tags":["senders"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/senders/{senderId}/allow":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"senderId","required":true,"schema":{"type":"string","x-id":"snd"}},{"$ref":"#/components/parameters/IdempotencyKey"},{"description":"The answer the person saw: its authorization record_id, or none before any answer. When the answer changed since, nothing is saved and needs_details says answer_changed.","in":"query","name":"from","schema":{"type":"string","x-id":"none"}}],"post":{"operationId":"AllowSender","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderChangeResult"}}},"description":"What happened."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Record that this service is the customer's and let its mail pass SPF, in one confirmation: the decision, then the SPF change, applied when the person holds every change right. Needs an Idempotency-Key. Call this as a person. Your own AI assistant can save your answer through MCP. If we draft an SPF change, you approve it in MailGlo.","tags":["senders"]}},"/workspaces/{workspaceId}/senders/{senderId}/contact":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"senderId","required":true,"schema":{"type":"string","x-id":"snd"}}],"put":{"operationId":"SetSenderContact","requestBody":{"content":{"application/json":{"schema":{"properties":{"contact":{"type":"string"},"department":{"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sender"}}},"description":"Sender."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Record the responsible client contact or department for a sender.","tags":["senders"]}},"/workspaces/{workspaceId}/senders/{senderId}/correction":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"senderId","required":true,"schema":{"type":"string","x-id":"snd"}}],"post":{"operationId":"CorrectSender","requestBody":{"content":{"application/json":{"schema":{"properties":{"evidence":{"type":"string"},"label":{"type":"string"}},"required":["label","evidence"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sender"}}},"description":"Sender."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Correct a sender mapping with a reason; the original observation is kept.","tags":["senders"]}},"/workspaces/{workspaceId}/senders/{senderId}/decision":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"senderId","required":true,"schema":{"type":"string","x-id":"snd"}}],"post":{"operationId":"DecideSender","requestBody":{"content":{"application/json":{"schema":{"properties":{"reason":{"type":"string"},"request_id":{"type":"string","x-id":"sndreq"},"state":{"enum":["authorized","denied","unknown","no_longer_used"],"type":"string"},"valid_days":{"type":"integer"}},"required":["state","reason"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sender"}}},"description":"Sender."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Record a business decision (authorized, denied, unknown, no_longer_used). People only; no DNS change follows.","tags":["senders"]}},"/workspaces/{workspaceId}/senders/{senderId}/decision-requests":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"senderId","required":true,"schema":{"type":"string","x-id":"snd"}}],"post":{"operationId":"RequestSenderDecision","requestBody":{"content":{"application/json":{"schema":{"properties":{"question":{"type":"string"}},"type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Request."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Ask the client's decision-makers whether a sender is permitted. Agents can ask. They can't decide. Your own AI assistant can save the answer you give it.","tags":["senders"]}},"/workspaces/{workspaceId}/senders/{senderId}/deny":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"senderId","required":true,"schema":{"type":"string","x-id":"snd"}},{"$ref":"#/components/parameters/IdempotencyKey"},{"description":"The answer the person saw: its authorization record_id, or none before any answer. When the answer changed since, nothing is saved and needs_details says answer_changed.","in":"query","name":"from","schema":{"type":"string","x-id":"none"}}],"post":{"operationId":"DenySender","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderChangeResult"}}},"description":"What happened."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Record that this service may not send as the customer and take it off hosted SPF, in one confirmation: the decision, then the SPF change, applied when the person holds every change right. Every other hosted SPF source stays. A record the customer publishes is not changed; needs_details with reason self_published says it still lists the service, and spf_unknown that MailGlo can't tell. On hosted SPF, still_passes says another entry may still let the service pass; the answer is saved. Allowing the service again puts it back. Needs an Idempotency-Key. Call this as a person. Your own AI assistant can save your answer through MCP. If we draft an SPF change, you approve it in MailGlo.","tags":["senders"]}},"/workspaces/{workspaceId}/senders/{senderId}/disable":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"senderId","required":true,"schema":{"type":"string","x-id":"snd"}}],"post":{"description":"Send the digest from the preview. If what Disable stops has changed since, the answer is 409 confirmation_stale and nothing changes. With hosted SPF this accepts an audited emergency revocation (spf.emergency_revoked) of each of the service's SPF sources, accepted at once, even while another DNS change is publishing, and published with the next publication. When MailGlo's newest DNS content already removed the service, it records the Disable with nothing to revoke. With a record the customer publishes, the sender shows publish until SPF no longer lets it pass.","operationId":"DisableSender","requestBody":{"content":{"application/json":{"schema":{"properties":{"digest":{"maxLength":128,"type":"string"}},"required":["digest"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sender"}}},"description":"The disabled sender."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Disable a sending service as its preview said. People only.","tags":["senders"]}},"/workspaces/{workspaceId}/senders/{senderId}/disable/preview":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"senderId","required":true,"schema":{"type":"string","x-id":"snd"}}],"post":{"description":"Requires a signed-in person with approval authority, as emergency SPF revocation does. Agents, MCP clients and API keys are refused. When the service passes SPF through MailGlo's hosted SPF, mode is hosted and the change takes effect at the next publication; otherwise mode is customer. When the domain's own record lets it pass, corrected_record is the SPF record to publish. A service that does not pass SPF gets 409 not_in_spf; SPF that cannot be read in full gets 409 dns_unavailable; a service MailGlo's newest DNS content already removed is disabled with nothing left to revoke. affected names other services that lose sending because they use the same servers; all_mail says SPF must close for every service.","operationId":"PreviewSenderDisable","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderDisablePreview"}}},"description":"What Disable stops."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Say what Disable stops for this sending service, for its one confirmation. Changes nothing.","tags":["senders"]}},"/workspaces/{workspaceId}/senders/{senderId}/spf-change":{"get":{"operationId":"GetSenderSpfChange","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"all":{"description":"The ending to start from when there is no proposal: -all when any SPF record for the domain ends in -all now.","enum":["-all","~all"],"type":"string"},"gap":{"description":"Why there is no one-step change. listed: no DNS change is needed (DNS already lets it pass, or reports show its mail passing DMARC). The others mean the change is made in the form instead: unrecognized_service, conflicting_records, spf_ending, hosted_sources_unnamed or spf_unreadable (the SPF lookup failed; try again).","type":"string"},"label":{"description":"The service's name.","type":"string"},"proposal":{"additionalProperties":true,"description":"The SPF plan proposal. Absent when gap is set.","type":"object"},"purpose":{"type":"string"}},"required":["label","purpose"],"type":"object"}}},"description":"The starting values."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The SPF change that lets an allowed service send, as the change form's starting values: every service SPF serves now stays, with the record's ending and options. Changes nothing; preparing the change checks everything again. Needs the right to prepare SPF changes for the domain.","tags":["senders"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"senderId","required":true,"schema":{"type":"string","x-id":"snd"}}]},"/workspaces/{workspaceId}/senders/{senderId}/undo":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"senderId","required":true,"schema":{"type":"string","x-id":"snd"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"post":{"operationId":"UndoSenderAnswer","parameters":[{"description":"The answer to take back: its authorization record_id. Undo never takes back another one.","in":"query","name":"answer","required":true,"schema":{"type":"string","x-id":"sauth"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderChangeResult"}}},"description":"What happened."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Take back a first answer from Senders: the service has no answer again and, when the answer changed hosted SPF, the record serves what it served before. Works only while the answer is the current one and hosted SPF serves what its change left; otherwise, or when the record can't go back in one step, nothing is saved and needs_details says why: answer_changed (a newer answer) or spf_changed (hosted SPF changed since, or a service it served then is Not allowed now). Needs an Idempotency-Key. People only.","tags":["senders"]}},"/workspaces/{workspaceId}/service-status":{"get":{"operationId":"GetServiceStatus","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Status."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Services affecting this workspace, including stale data and pauses.","tags":["operations"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/settings/controls":{"get":{"operationId":"GetOwnControls","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"controls":{"items":{"properties":{"active":{"description":"True when the control is on: agent access or investigations are turned off.","type":"boolean"},"control":{"enum":["platform_analysis_disabled","agent_access_disabled"],"type":"string"},"set_at":{"description":"When it was last set. Absent if never set.","format":"date-time","type":"string"},"set_by":{"description":"Who last set it. Absent if never set.","type":"string","x-id":"none"}},"required":["control","active"],"type":"object"},"type":"array"},"owners":{"description":"The workspace owners' names.","items":{"type":"string"},"type":"array"}},"required":["controls","owners"],"type":"object"}}},"description":"The switches."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The workspace's own switches, agent access and investigations, with who last set each and when, and the owners' names (needs workspace.read). A switch never set is off: agents can reach the workspace and MailGlo can run investigations.","tags":["operations"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"SetOwnControl","requestBody":{"content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"control":{"enum":["platform_analysis_disabled","agent_access_disabled"],"type":"string"},"reason":{"type":"string"}},"required":["control","active","reason"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Recorded."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Customer disables or re-enables optional platform analysis or agent access.","tags":["operations"]}},"/workspaces/{workspaceId}/shared-with-us":{"get":{"operationId":"ListSharedWithUs","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SharedDomain"},"type":"array"}}},"description":"Shared domains."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Domains other workspaces share with this one. An ended share is a saved status notice without identifiers that reach the owner's data.","tags":["tenancy"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/shared-with-us/{shareId}/grants":{"get":{"operationId":"ListShareGrants","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ShareGrant"},"type":"array"}}},"description":"Grants."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Grants this workspace gave its members and agents for one shared domain. Owner only.","tags":["tenancy"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"shareId","required":true,"schema":{"type":"string","x-id":"shr"}}],"post":{"operationId":"AddShareGrant","requestBody":{"content":{"application/json":{"schema":{"properties":{"action":{"enum":["summary.read","reports.read","evidence.read","changes.prepare","changes.approve","changes.execute"],"type":"string"},"membership_id":{"type":"string","x-id":"mem"}},"required":["membership_id","action"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareGrant"}}},"description":"Grant."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Give a member or agent one action on one shared domain only, instead of workspace-wide. The share's role still limits it at each use.","tags":["tenancy"]}},"/workspaces/{workspaceId}/shared-with-us/{shareId}/grants/{grantId}":{"delete":{"operationId":"RevokeShareGrant","responses":{"204":{"description":"Revoked."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Revoke one shared-domain grant; it stops at the next use.","tags":["tenancy"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"shareId","required":true,"schema":{"type":"string","x-id":"shr"}},{"in":"path","name":"grantId","required":true,"schema":{"type":"string","x-id":"shgrt"}}]},"/workspaces/{workspaceId}/shares":{"get":{"operationId":"ListShares","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DomainShare"},"type":"array"}}},"description":"Shares."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Every share this workspace created, with state and history. Owner only.","tags":["tenancy"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"CreateShare","requestBody":{"content":{"application/json":{"schema":{"properties":{"change_scope":{"description":"For a Manager: the change kinds it may apply. Empty for a Viewer.","items":{"enum":["dmarc","spf","dkim","mta_sts","tls_rpt","bimi"],"type":"string"},"type":"array"},"domain_id":{"type":"string","x-id":"dom"},"recipient_workspace_id":{"description":"The recipient's workspace ID, shown on its Sharing page.","type":"string","x-id":"ws"},"role":{"enum":["viewer","manager"],"type":"string"}},"required":["domain_id","recipient_workspace_id","role"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainShare"}}},"description":"Share, with its effect on recipient teams and agents."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Share one domain with another workspace as Viewer or Manager. Needs the owner and a paid plan; creates no second charge and transfers no ownership.","tags":["tenancy"]}},"/workspaces/{workspaceId}/shares/{shareId}":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"shareId","required":true,"schema":{"type":"string","x-id":"shr"}}],"patch":{"operationId":"UpdateShare","requestBody":{"content":{"application/json":{"schema":{"properties":{"change_scope":{"items":{"enum":["dmarc","spf","dkim","mta_sts","tls_rpt","bimi"],"type":"string"},"type":"array"},"role":{"enum":["viewer","manager"],"type":"string"}},"required":["role"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainShare"}}},"description":"Share."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Change a live share's role or change scope. A narrower scope applies at the next use, including to plans prepared earlier.","tags":["tenancy"]}},"/workspaces/{workspaceId}/shares/{shareId}/{action}":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"shareId","required":true,"schema":{"type":"string","x-id":"shr"}},{"in":"path","name":"action","required":true,"schema":{"enum":["disable","restore","revoke"],"type":"string"}}],"post":{"operationId":"SetShareState","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainShare"}}},"description":"Share."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Disable a share (kept for a deliberate restore), restore it (needs a paid plan) or revoke it (sharing again creates a new share). A payment never restores either.","tags":["tenancy"]}},"/workspaces/{workspaceId}/site-check":{"get":{"operationId":"GetSiteCheck","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteCheck"}}},"description":"The site check's settings."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The check on the workspace's own website. Its button's text, link and colour, and whether they were saved. Before the first save, the button text is \"Talk to \u003cname\u003e\" and the link is empty.","tags":["tenancy"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"put":{"operationId":"SetSiteCheck","requestBody":{"content":{"application/json":{"schema":{"properties":{"button_color":{"maxLength":20,"type":"string"},"button_link":{"maxLength":2000,"type":"string"},"button_text":{"maxLength":40,"type":"string"}},"required":["button_text","button_link","button_color"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteCheck"}}},"description":"The saved settings."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Save the site check's button (needs workspace.manage). The link must start with https://; the text is at most 40 characters; the colour is a #rrggbb code. A refusal names its field in details.field.","tags":["tenancy"]}},"/workspaces/{workspaceId}/sso/connection":{"get":{"operationId":"GetSsoConnection","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"connection":{"allOf":[{"$ref":"#/components/schemas/SsoConnection"}],"nullable":true},"redirect_uri":{"description":"The callback to register with an OpenID Connect provider.","type":"string"},"saml_acs_url":{"description":"Where a SAML provider posts its responses (HTTP-POST).","type":"string"},"saml_entity_id":{"description":"MailGlo's SAML service provider entity ID; its metadata is served at this URL.","type":"string","x-id":"none"}},"required":["redirect_uri"],"type":"object"}}},"description":"The connection."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The workspace's OpenID Connect provider, without its client secret (needs workspace.manage). connection is null when none is set.","tags":["tenancy"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"put":{"operationId":"SetSsoConnection","requestBody":{"content":{"application/json":{"schema":{"properties":{"client_id":{"type":"string","x-id":"none"},"client_secret":{"type":"string"},"default_role":{"enum":["viewer","admin"],"type":"string"},"enabled":{"type":"boolean"},"issuer":{"type":"string"},"kind":{"description":"oidc (the default) or saml.","enum":["oidc","saml"],"type":"string"},"required":{"description":"Require single sign-on of people at the proved domains (owner only; needs the connection on and a proved domain, sso_requirement_unready otherwise). Owners keep their password and code.","type":"boolean"},"saml_metadata":{"description":"SAML: the provider's metadata (EntityDescriptor with an HTTP-Redirect sign-in URL and its signing certificate). The issuer becomes its entity ID.","type":"string"}},"required":["enabled"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoConnection"}}},"description":"The connection."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Connect or update the workspace's OpenID Connect provider (needs workspace.manage, by a person). MailGlo reads the issuer's discovery document first. An empty client_secret keeps the stored one. People who join through single sign-on start with default_role, viewer or admin; someone who also belongs to another workspace signs in with their password.","tags":["tenancy"]}},"/workspaces/{workspaceId}/sso/domains":{"get":{"operationId":"ListSsoDomains","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SsoDomain"},"type":"array"}}},"description":"Domains."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Email domains this workspace proves for single sign-on (needs workspace.manage).","tags":["tenancy"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"AddSsoDomain","requestBody":{"content":{"application/json":{"schema":{"properties":{"domain":{"type":"string"}},"required":["domain"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoDomain"}}},"description":"The record to publish."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Start proving an email domain for single sign-on. Publish the returned TXT record, then verify it (needs workspace.manage).","tags":["tenancy"]}},"/workspaces/{workspaceId}/sso/domains/{domainId}":{"delete":{"operationId":"RemoveSsoDomain","responses":{"204":{"description":"Removed."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Stop single sign-on for the domain's addresses. Members keep their access and sign in with a password (needs workspace.manage).","tags":["tenancy"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"domainId","required":true,"schema":{"type":"string","x-id":"ssod"}}]},"/workspaces/{workspaceId}/sso/domains/{domainId}/verify":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"domainId","required":true,"schema":{"type":"string","x-id":"ssod"}}],"post":{"operationId":"VerifySsoDomain","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoDomain"}}},"description":"The domain, proved."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Read the domain's TXT record. One workspace at a time proves a domain (needs workspace.manage).","tags":["tenancy"]}},"/workspaces/{workspaceId}/standing-policies":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"CreateStandingPolicy","requestBody":{"content":{"application/json":{"schema":{"properties":{"client_id":{"type":"string","x-id":"cli"},"constraints":{"additionalProperties":true,"type":"object"},"domain_id":{"type":"string","x-id":"dom"},"kinds":{"items":{"type":"string"},"type":"array"}},"required":["client_id","kinds"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accepted"}}},"description":"Policy."},"default":{"$ref":"#/components/responses/Error"}},"summary":"A person delegates bounded approval for listed change kinds.","tags":["changes"]}},"/workspaces/{workspaceId}/standing-policies/{policyId}":{"delete":{"operationId":"RevokeStandingPolicy","responses":{"204":{"description":"Revoked."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Revoke a standing policy; queued work relying on it is blocked.","tags":["changes"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"policyId","required":true,"schema":{"type":"string","x-id":"pol"}}],"patch":{"operationId":"NarrowStandingPolicy","requestBody":{"content":{"application/json":{"schema":{"properties":{"kinds":{"items":{"type":"string"},"type":"array"},"reason":{"type":"string"}},"required":["kinds","reason"],"type":"object"}}},"required":true},"responses":{"204":{"description":"Narrowed."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Narrow a standing policy in place; approvals that cited it are invalidated.","tags":["changes"]}},"/workspaces/{workspaceId}/subscription":{"get":{"operationId":"GetSubscription","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subscription"}}},"description":"Subscription."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Subscription state, founding status and what each state means.","tags":["billing"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/support":{"get":{"operationId":"ListSupportRequests","responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}}},"description":"Requests."},"default":{"$ref":"#/components/responses/Error"}},"summary":"This workspace's support requests.","tags":["support"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"OpenSupportRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportInput"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Request."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Open a contextual support request (no credentials).","tags":["support"]}},"/workspaces/{workspaceId}/support/{requestId}":{"get":{"operationId":"GetSupportRequest","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Request."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Request with reference, status, owner and history.","tags":["support"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"requestId","required":true,"schema":{"type":"string","x-id":"sup"}}],"post":{"operationId":"ReplySupportRequest","requestBody":{"content":{"application/json":{"schema":{"properties":{"body":{"type":"string"},"challenge_message_id":{"format":"int64","type":"integer","x-id":"none"},"correction_of":{"format":"int64","type":"integer"}},"required":["body"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Request."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Reply, challenge an answer, or post a visible correction.","tags":["support"]}},"/workspaces/{workspaceId}/support/{requestId}/auto-answer":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"requestId","required":true,"schema":{"type":"string","x-id":"sup"}}],"post":{"operationId":"AutoAnswerSupport","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}},"description":"Request."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Draft a grounded answer from approved knowledge and the actual workspace state.","tags":["support"]}},"/workspaces/{workspaceId}/usage":{"get":{"operationId":"GetUsage","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}},"description":"Usage."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Explainable billing counter, purchased capacity and history. Billing-only users see references, not domain names.","tags":["billing"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}]},"/workspaces/{workspaceId}/views":{"get":{"operationId":"ListViews","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SavedView"},"type":"array"}}},"description":"Views."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Saved portfolio views.","tags":["portfolio"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"SaveView","requestBody":{"content":{"application/json":{"schema":{"properties":{"filters":{"additionalProperties":true,"type":"object"},"name":{"type":"string"}},"required":["name","filters"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedView"}}},"description":"View."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Save portfolio filters.","tags":["portfolio"]}},"/workspaces/{workspaceId}/views/{viewId}":{"get":{"operationId":"OpenView","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portfolio"}}},"description":"Portfolio."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Apply a saved view under current access.","tags":["portfolio"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"viewId","required":true,"schema":{"type":"string","x-id":"view"}}]},"/workspaces/{workspaceId}/webhooks":{"get":{"operationId":"ListWebhooks","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookList"}}},"description":"Endpoints."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Webhook endpoints (all for someone who manages agents, else the caller's own), the event kinds they carry and the delivery limits.","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"}],"post":{"operationId":"SubscribeWebhook","requestBody":{"content":{"application/json":{"schema":{"properties":{"description":{"maxLength":200,"type":"string"},"kinds":{"description":"The only event kinds this endpoint gets. Empty or missing: every kind.","items":{"type":"string"},"maxItems":20,"type":"array"},"url":{"type":"string"}},"required":["url"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}},"description":"Endpoint, with its signing secret."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Add an https endpoint that receives signed events the caller may read. It starts waiting for a test delivery that echoes its challenge. One added by MailGlo's Zapier app through its signed-in connection starts at once; that connection adds only https://hooks.zapier.com/hooks/standard/ addresses. The signing secret is returned only here.","tags":["agents"]}},"/workspaces/{workspaceId}/webhooks/{webhookId}":{"delete":{"operationId":"RemoveWebhook","responses":{"204":{"description":"Removed."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Remove an endpoint; deliveries it was waiting to send are cancelled.","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"webhookId","required":true,"schema":{"type":"string","x-id":"whk"}}]},"/workspaces/{workspaceId}/webhooks/{webhookId}/deliveries":{"get":{"operationId":"ListWebhookDeliveries","parameters":[{"in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"deliveries":{"items":{"$ref":"#/components/schemas/WebhookDelivery"},"type":"array"}},"required":["deliveries"],"type":"object"}}},"description":"Deliveries."},"default":{"$ref":"#/components/responses/Error"}},"summary":"The endpoint's delivery log, newest first, kept 30 days.","tags":["agents"]},"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"webhookId","required":true,"schema":{"type":"string","x-id":"whk"}}]},"/workspaces/{workspaceId}/webhooks/{webhookId}/enable":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"webhookId","required":true,"schema":{"type":"string","x-id":"whk"}}],"post":{"operationId":"EnableWebhook","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}},"description":"Endpoint."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Turn a turned-off endpoint back on. Events from while it was off are not sent.","tags":["agents"]}},"/workspaces/{workspaceId}/webhooks/{webhookId}/test":{"parameters":[{"$ref":"#/components/parameters/WorkspaceId"},{"in":"path","name":"webhookId","required":true,"schema":{"type":"string","x-id":"whk"}}],"post":{"operationId":"TestWebhook","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestResult"}}},"description":"The test's outcome."},"default":{"$ref":"#/components/responses/Error"}},"summary":"Send a signed test delivery now. A 2xx answer whose body contains the challenge verifies the endpoint. Idempotency-Key is ignored; every test is a new, counted send.","tags":["agents"]}}},"security":[{"session":[]},{"bearer":[]}],"servers":[{"url":"https://mailglo.com/api/v1"}],"tags":[{"name":"system"},{"name":"auth"},{"name":"workspaces"},{"name":"members"},{"name":"clients"},{"name":"domains"},{"name":"authority"},{"name":"billing"},{"name":"evidence"},{"name":"senders"},{"name":"cases"},{"name":"portfolio"},{"name":"changes"},{"name":"hosted"},{"name":"agents"},{"name":"operations"},{"name":"reports"},{"name":"support"},{"name":"exit"},{"name":"security"},{"name":"website"}]}