Schedule Templates

Reusable schedule templates for workspaces

Save your Post Windows configuration as reusable templates that can be applied to any workspace.

List Schedule Templates

GET /v1/account/schedule-templates/

Response

{
  "templates": [
    {
      "id": 1,
      "name": "Standard Business Hours",
      "description": "M-F 9am-5pm, weekends off",
      "active_days": 5,
      "created_at": "2024-11-01T10:00:00Z"
    },
    {
      "id": 2,
      "name": "24/7 Posting",
      "description": "All days, extended hours",
      "active_days": 7,
      "created_at": "2024-12-15T14:00:00Z"
    }
  ]
}

Create Schedule Template

Save your current workspace Post Windows as a template:

POST /v1/account/schedule-templates/

Request Body

{
  "name": "Agency Template",
  "description": "Client-friendly posting hours",
  "day_schedules": {
    "0": {
      "allChannels": { "startHour": 10, "endHour": 14, "enabled": false, "aiLearning": true },
      "customWindows": []
    },
    "1": {
      "allChannels": { "startHour": 9, "endHour": 18, "enabled": true, "aiLearning": true },
      "customWindows": [
        { "channelId": "twitter", "startHour": 8, "endHour": 20, "aiLearning": true }
      ]
    }
    // ... days 2-6
  },
  "holiday_settings": {
    "christmas": "blocked",
    "thanksgiving-us": "blocked"
  },
  "blocked_periods": []
}

Example

curl -X POST "https://api.missinglettr.com/v1/account/schedule-templates/" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d @template.json

Get Template Details

GET /v1/account/schedule-templates/{id}/

Response

{
  "id": 1,
  "name": "Standard Business Hours",
  "description": "M-F 9am-5pm, weekends off",
  "day_schedules": { /* full 7-day schedule */ },
  "holiday_settings": { /* holiday configurations */ },
  "blocked_periods": []
}

Apply Template to Workspace

Copy a template's settings to a workspace (overwrites existing Post Windows):

POST /v1/account/schedule-templates/{id}/apply/

Request Body

{
  "workspace_id": 5
}

Example

curl -X POST "https://api.missinglettr.com/v1/account/schedule-templates/1/apply/" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"workspace_id": 5}'

Response

{
  "message": "Template applied successfully",
  "workspace_id": 5,
  "template_name": "Standard Business Hours"
}

Delete Template

DELETE /v1/account/schedule-templates/{id}/

Agency Use Case: Create templates for different client types (B2B, B2C, E-commerce) and apply them to new workspaces instantly.

Use Cases

  • Multi-Client Agencies: Standardize Post Windows across similar clients
  • Multi-Brand Companies: Apply consistent scheduling to new workspaces
  • Testing: Quickly switch between different posting strategies
  • Onboarding: Start new workspaces with proven configurations