> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.freecustom.email/free-custom-email-api/v-1/domains/all/list-all-platform-domains-with-full-metadata/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.freecustom.email/_mcp/server. # List all platform domains with full metadata GET https://api2.freecustom.email/v1/domains/all Same domain list as `GET /v1/domains` but always includes full expiry metadata for every domain — useful for dashboard integrations that monitor domain health or want to proactively alert users before a domain expires. Plan gating is identical: Growth / Enterprise see pro-tier domains, all other plans see free-tier only. > This endpoint covers **platform domains** only. For your own verified > custom domains use `GET /v1/custom-domains`. Reference: https://docs.freecustom.email/free-custom-email-api/v-1/domains/all/list-all-platform-domains-with-full-metadata ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Response ### 200 OK - `success` (boolean, required) - `count` (integer, required) - `data` (list of V1DomainsAllGetResponsesContentApplicationJsonSchemaDataItems, required) ## Errors ### 401 Unauthorized Error Unauthorized - `success` (boolean, required) - `error` (string, required) - `message` (string, required) ### 429 Too Many Requests Error Too Many Requests - `success` (boolean, required) - `error` (string, required) - `message` (string, required) - `upgrade_url` (string, required) - `credits_url` (string, required) - `hint` (string, required) ## Types ### V1DomainsAllGetResponsesContentApplicationJsonSchemaDataItems - `domain` (string, required) - `tier` (string, required) - `tags` (list of string, required) - `expires_at` (date, required) - `expires_in_days` (integer, required) - `expiring_soon` (boolean, required) - `expired` (boolean, required) ## Examples **Response** ```json { "success": true, "count": 10, "data": [ { "domain": "ditube.info", "tier": "free", "tags": [ "popular" ], "expires_at": "2026-08-01", "expires_in_days": 147, "expiring_soon": false, "expired": false }, { "domain": "ditmail.pro", "tier": "pro", "tags": [ "new", "featured" ], "expires_at": "2026-09-05", "expires_in_days": 178, "expiring_soon": false, "expired": false } ] } ``` **SDK Code** ```python v1_domains_all_List all platform domains with full metadata_example import requests url = "https://api2.freecustom.email/v1/domains/all" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript v1_domains_all_List all platform domains with full metadata_example const url = 'https://api2.freecustom.email/v1/domains/all'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go v1_domains_all_List all platform domains with full metadata_example package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api2.freecustom.email/v1/domains/all" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby v1_domains_all_List all platform domains with full metadata_example require 'uri' require 'net/http' url = URI("https://api2.freecustom.email/v1/domains/all") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java v1_domains_all_List all platform domains with full metadata_example import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api2.freecustom.email/v1/domains/all") .header("Authorization", "Bearer ") .asString(); ``` ```php v1_domains_all_List all platform domains with full metadata_example request('GET', 'https://api2.freecustom.email/v1/domains/all', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp v1_domains_all_List all platform domains with full metadata_example using RestSharp; var client = new RestClient("https://api2.freecustom.email/v1/domains/all"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift v1_domains_all_List all platform domains with full metadata_example import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api2.freecustom.email/v1/domains/all")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```