Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedAgent setupWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference
Skills for agents

REST API

Quick start
getList DomainsgetGet DomainpostCreate DomainpostUpdate DomaindelDelete DomainpostActivate Email SendingpostActivate Email ReceivingdelDisable Email SendingdelDisable Email ReceivingpostEnable ShortlinkdelDisable ShortlinkpostEnable Link TrackinggetGet Email Receiving ConfiggetGet Sender ReputationgetGet Sender Reputation By Domain NamegetGet Domain Warmup StatuspostVerify Email DNSpostVerify Email Receiving DNSpostVerify Shortlink
ProjectsDomains

Update Domain

View as MarkdownAgent setup

Updates client-writable domain fields. Only the keys present in changes are written. Status, provider, DNS, verification, reputation, warmup, and the tracking subdomain are ignored even if sent. Do not use this to mark a domain verified or to turn sending on. Call Activate Email Sending, Activate Email Receiving, or Enable Shortlink, then Verify Email DNS, Verify Email Receiving DNS, or Verify Shortlink. DNS records are on Get Domain.

POST
/projects/{projectId}/domains/{domainId}

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the domain.

domainIdrequiredstring

ID of the domain to update.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

changesrequiredobject

Fields to change. Anything omitted is left as-is. Status, provider, DNS, verification, reputation, warmup, and the tracking subdomain are ignored even if sent. Use the activate, disable, and verify endpoints for those.

shortlinkEnabledboolean

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects/string/domains/string" \  -H "Content-Type: application/json" \  -d '{    "changes": {}  }'
{  "id": "string",  "createdAt": "string",  "updatedAt": "string",  "emailStatus": "INACTIVE",  "emailProvider": "string",  "emailProviderDomainId": "string",  "emailReceivingStatus": "INACTIVE",  "emailReceivingProviderId": "string",  "trackingSubdomain": "string",  "trackingVerificationStatus": "PENDING",  "shortlinkEnabled": true,  "vercelConfigured": true,  "vercelVerificationStatus": "PENDING",  "vercelVerificationError": "string",  "vercelVerificationDNS": [    {      "domain": "string",      "reason": "string",      "type": "string",      "value": "string"    }  ],  "emailVerificationRequestedAt": "string",  "receivingVerificationRequestedAt": "string",  "shortlinkVerificationRequestedAt": "string",  "senderReputationComputedAt": "string",  "warmupStatus": "PENDING",  "warmupStartedAt": "string",  "warmupWindowStartedAt": "string",  "projectId": "string",  "name": "string",  "senderReputation": 50,  "warmupDay": 0,  "warmupSentCount": 0}

Create Domain

Registers a hostname on the project. Names are unique across Saasco. Reusing one that belongs to another project returns 400. Creating one does not enable sending, receiving, or shortlinks and does not return DNS records. Call Activate Email Sending, Activate Email Receiving, or Enable Shortlink, then read the records from Get Domain (emailConfig.records) or Get Email Receiving Config, add them at the DNS host, and call Verify Email DNS, Verify Email Receiving DNS, or Verify Shortlink.

Delete Domain

Permanently removes the domain from the project. Returns 404 if it does not exist. Cannot be undone.