> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://schedule-docs.moxieservices.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://schedule-docs.moxieservices.com/_mcp/server.

# Start a signup draft

POST https://api.moxie.com/v1/signup
Content-Type: application/json

Creates the draft and a resume link valid for 30 days (FR-011). The address is checked against existing FieldRoutes customers; a match stops the signup and the customer is asked to call the call center (FR-023).

Reference: https://schedule-docs.moxieservices.com/api-reference/customer-signup/create-signup

## Servers

- `https://api.moxie.com` (Production (placeholder hostname), default)
- `https://api-dev.moxie.com` (Dev, FieldRoutes sandbox (placeholder hostname))

## Request

### Headers

- `CF-Turnstile-Response` (string, required) — Token from the Turnstile widget.
- `Idempotency-Key` (string, optional) — One key per user attempt; retries reuse it and get the original result.

### Body (application/json)

This endpoint expects a SignupCreate.

- `address` (Address, required)
- `contact` (Contact, optional)
- `attribution` (SignupCreateAttribution, optional)
- `smsConsent` (boolean, optional)

## Response

### 201

Draft created

- `signupId` (string, required)
- `linkToken` (string, required) — Shown once. Send as X-Link-Token on later calls.
- `resumeUrl` (string, required)
- `officeId` (string, required)
- `expiresAt` (datetime, required)
- `property` (PropertyDetails, optional) — Drives square-footage pricing. The customer can edit looked-up values.

## Errors

### 409 Conflict Error

The address matches an existing customer (existing_customer). No signup is created; details.callCenterPhone holds the number to show.

- `code` (enum, required) — Every code the API returns, with its HTTP status, is listed in research R12.
  - Allowed values: `validation_failed`, `unauthenticated`, `forbidden`, `not_found`, `link_expired`, `version_conflict`, `duplicate`, `unresolved_overlaps`, `price_changed`, `quote_expired`, `item_unavailable`, `locked_after_redemption`, `zip_not_serviced`, `existing_customer`, `discount_not_applicable`, `idempotency_mismatch`, `invalid_state`, `rate_limited`, `processor_rejected`, `fieldroutes_unavailable`, `job_timeout`, `internal_error`, `service_unavailable`
- `message` (string, required) — Plain-language message the UI can show.
- `fieldErrors` (list of ErrorFieldErrorsItems, optional)
- `details` (ErrorDetails, optional) — Extra data for some codes, e.g. the new quote for price_changed.
- `requestId` (string, optional) — Same value as the X-Request-Id response header; quote it to support. Present on every API error response (0.9.3); may be absent on a job's error.

### 422 Unprocessable Entity Error

ZIP not served (zip_not_serviced) or invalid fields. A missing, invalid, expired or reused Turnstile token gives validation_failed with a field error on CF-Turnstile-Response; reset the widget and retry.

- `code` (enum, required) — Every code the API returns, with its HTTP status, is listed in research R12.
  - Allowed values: `validation_failed`, `unauthenticated`, `forbidden`, `not_found`, `link_expired`, `version_conflict`, `duplicate`, `unresolved_overlaps`, `price_changed`, `quote_expired`, `item_unavailable`, `locked_after_redemption`, `zip_not_serviced`, `existing_customer`, `discount_not_applicable`, `idempotency_mismatch`, `invalid_state`, `rate_limited`, `processor_rejected`, `fieldroutes_unavailable`, `job_timeout`, `internal_error`, `service_unavailable`
- `message` (string, required) — Plain-language message the UI can show.
- `fieldErrors` (list of ErrorFieldErrorsItems, optional)
- `details` (ErrorDetails, optional) — Extra data for some codes, e.g. the new quote for price_changed.
- `requestId` (string, optional) — Same value as the X-Request-Id response header; quote it to support. Present on every API error response (0.9.3); may be absent on a job's error.

### 429 Too Many Requests Error

Too many requests (rate_limited).

- `code` (enum, required) — Every code the API returns, with its HTTP status, is listed in research R12.
  - Allowed values: `validation_failed`, `unauthenticated`, `forbidden`, `not_found`, `link_expired`, `version_conflict`, `duplicate`, `unresolved_overlaps`, `price_changed`, `quote_expired`, `item_unavailable`, `locked_after_redemption`, `zip_not_serviced`, `existing_customer`, `discount_not_applicable`, `idempotency_mismatch`, `invalid_state`, `rate_limited`, `processor_rejected`, `fieldroutes_unavailable`, `job_timeout`, `internal_error`, `service_unavailable`
- `message` (string, required) — Plain-language message the UI can show.
- `fieldErrors` (list of ErrorFieldErrorsItems, optional)
- `details` (ErrorDetails, optional) — Extra data for some codes, e.g. the new quote for price_changed.
- `requestId` (string, optional) — Same value as the X-Request-Id response header; quote it to support. Present on every API error response (0.9.3); may be absent on a job's error.

### 500 Internal Server Error

Unexpected server error (internal_error). Quote the requestId to support.

- `code` (enum, required) — Every code the API returns, with its HTTP status, is listed in research R12.
  - Allowed values: `validation_failed`, `unauthenticated`, `forbidden`, `not_found`, `link_expired`, `version_conflict`, `duplicate`, `unresolved_overlaps`, `price_changed`, `quote_expired`, `item_unavailable`, `locked_after_redemption`, `zip_not_serviced`, `existing_customer`, `discount_not_applicable`, `idempotency_mismatch`, `invalid_state`, `rate_limited`, `processor_rejected`, `fieldroutes_unavailable`, `job_timeout`, `internal_error`, `service_unavailable`
- `message` (string, required) — Plain-language message the UI can show.
- `fieldErrors` (list of ErrorFieldErrorsItems, optional)
- `details` (ErrorDetails, optional) — Extra data for some codes, e.g. the new quote for price_changed.
- `requestId` (string, optional) — Same value as the X-Request-Id response header; quote it to support. Present on every API error response (0.9.3); may be absent on a job's error.

### 503 Service Unavailable Error

A required service such as the database or queue is temporarily unavailable (service_unavailable). Retry later.

- `code` (enum, required) — Every code the API returns, with its HTTP status, is listed in research R12.
  - Allowed values: `validation_failed`, `unauthenticated`, `forbidden`, `not_found`, `link_expired`, `version_conflict`, `duplicate`, `unresolved_overlaps`, `price_changed`, `quote_expired`, `item_unavailable`, `locked_after_redemption`, `zip_not_serviced`, `existing_customer`, `discount_not_applicable`, `idempotency_mismatch`, `invalid_state`, `rate_limited`, `processor_rejected`, `fieldroutes_unavailable`, `job_timeout`, `internal_error`, `service_unavailable`
- `message` (string, required) — Plain-language message the UI can show.
- `fieldErrors` (list of ErrorFieldErrorsItems, optional)
- `details` (ErrorDetails, optional) — Extra data for some codes, e.g. the new quote for price_changed.
- `requestId` (string, optional) — Same value as the X-Request-Id response header; quote it to support. Present on every API error response (0.9.3); may be absent on a job's error.

## Types

### Address

- `line1` (string, required)
- `city` (string, required)
- `state` (string, required)
- `zip` (string, required)
- `line2` (string, optional)

### Contact

- `firstName` (string, optional)
- `lastName` (string, optional)
- `email` (string, optional)
- `phone` (string, optional)

### SignupCreateAttribution

- `urlLinkId` (string, optional)
- `utmSource` (string, optional)
- `utmCampaign` (string, optional)
- `utmMedium` (string, optional)
- `referralCode` (string, optional)
- `planId` (string, optional) — Link-only plan from the URL (ST-3).

### PropertyDetails

Drives square-footage pricing. The customer can edit looked-up values.

- `homeSqft` (integer, required)
- `propertyType` (enum, required)
  - Allowed values: `house`, `commercial`, `mixed_use`, `other`
- `source` (enum, required) — lookup = filled by the external property data API from the address; manual = entered by the customer.
  - Allowed values: `lookup`, `manual`
- `additionalInfo` (string, optional) — Optional free text from the customer about the property.

### ErrorFieldErrorsItems

- `field` (string, required) — JSON path, e.g. pricing.initialCents
- `message` (string, required)

### ErrorDetails

Extra data for some codes, e.g. the new quote for price_changed.

## Examples

**Request**

```json
{
  "address": {
    "line1": "string",
    "city": "string",
    "state": "string",
    "zip": "string"
  }
}
```

**Response**

```json
{
  "signupId": "string",
  "linkToken": "string",
  "resumeUrl": "string",
  "officeId": "string",
  "expiresAt": "2024-01-15T09:30:00Z",
  "property": {
    "homeSqft": 1,
    "propertyType": "house",
    "source": "lookup",
    "additionalInfo": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.moxie.com/v1/signup"

payload = { "address": {
        "line1": "string",
        "city": "string",
        "state": "string",
        "zip": "string"
    } }
headers = {
    "CF-Turnstile-Response": "CF-Turnstile-Response",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.moxie.com/v1/signup';
const options = {
  method: 'POST',
  headers: {
    'CF-Turnstile-Response': 'CF-Turnstile-Response',
    'Content-Type': 'application/json'
  },
  body: '{"address":{"line1":"string","city":"string","state":"string","zip":"string"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.moxie.com/v1/signup"

	payload := strings.NewReader("{\n  \"address\": {\n    \"line1\": \"string\",\n    \"city\": \"string\",\n    \"state\": \"string\",\n    \"zip\": \"string\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("CF-Turnstile-Response", "CF-Turnstile-Response")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.moxie.com/v1/signup")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["CF-Turnstile-Response"] = 'CF-Turnstile-Response'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"address\": {\n    \"line1\": \"string\",\n    \"city\": \"string\",\n    \"state\": \"string\",\n    \"zip\": \"string\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.moxie.com/v1/signup")
  .header("CF-Turnstile-Response", "CF-Turnstile-Response")
  .header("Content-Type", "application/json")
  .body("{\n  \"address\": {\n    \"line1\": \"string\",\n    \"city\": \"string\",\n    \"state\": \"string\",\n    \"zip\": \"string\"\n  }\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.moxie.com/v1/signup', [
  'body' => '{
  "address": {
    "line1": "string",
    "city": "string",
    "state": "string",
    "zip": "string"
  }
}',
  'headers' => [
    'CF-Turnstile-Response' => 'CF-Turnstile-Response',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.moxie.com/v1/signup");
var request = new RestRequest(Method.POST);
request.AddHeader("CF-Turnstile-Response", "CF-Turnstile-Response");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"address\": {\n    \"line1\": \"string\",\n    \"city\": \"string\",\n    \"state\": \"string\",\n    \"zip\": \"string\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "CF-Turnstile-Response": "CF-Turnstile-Response",
  "Content-Type": "application/json"
]
let parameters = ["address": [
    "line1": "string",
    "city": "string",
    "state": "string",
    "zip": "string"
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.moxie.com/v1/signup")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```