简介
通过托管OAuth集成Acuity Scheduling,管理预约、日历、客户和可用时间,适合中小型企业自动化预约流程。
原始描述
Acuity Scheduling API integration with managed OAuth. Manage appointments, calendars, clients, and availability. Use this skill when users want to schedule, reschedule, or cancel appointments, check availability, or manage clients and calendars. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
通过你的 Agent 添加
安装目录:acuity-scheduling/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Acuity Scheduling Skill 是 Maton 提供的托管式 OAuth 网关,允许用户通过统一的 API 接口操作 Acuity Scheduling 平台的核心功能。用户需先在 ctrl.maton.ai 完成 OAuth 授权,随后使用 Maton API Key 调用 gateway.maton.ai/acuity-scheduling 下的各类端点。
主要功能模块:
- 预约管理:创建、查询、更新、取消、改期预约,支持按日期范围、日历、客户信息筛选
- 可用时间查询:获取指定月份的可预约日期和具体时间段
- 客户管理:维护客户档案,支持按姓名/电话搜索(注意:仅支持已有预约的客户更新/删除)
- 日历与预约类型:管理多日历配置和服务类型
- 时间块管理:创建/删除不可用时段(如午休、休假)
- 表单与标签:读取客户 intake 表单和预约标签
认证流程:通过 ctrl.maton.ai/connections 创建连接 → 浏览器完成 OAuth → 使用 Authorization: Bearer $MATON_API_KEY 调用网关。多账户场景下可通过 Maton-Connection 头部指定特定连接。
显著优点
- 托管OAuth简化集成:无需自行实现 OAuth 2.0 流程,Maton 自动处理 token 刷新和存储
- 完整API覆盖:涵盖预约、客户、日历、可用性、表单等 Acuity 核心功能
- 多语言示例:提供 Python、JavaScript、Bash 等现成代码片段
- 灵活的时间查询:支持按月份批量获取可约日期,再细化到具体时间段
- 批量操作支持:通过日期范围参数实现分页查询,适合数据同步场景
潜在缺点与局限性
- 功能限制:客户更新/删除仅适用于已有预约的客户,无法直接管理潜在客户档案
- 时间格式依赖:datetime 需符合 PHP
strtotime() 解析规则,跨语言开发需注意格式兼容
- 无实时推送:依赖轮询查询,无 webhook 支持,实时性受限
- 改期约束:reschedule 操作要求目标时段必须可用,无法强制覆盖冲突
- 网关依赖:服务稳定性受 Maton 网关影响,非直连 Acuity 官方 API
适合人群
- 中小型企业主或行政人员,需自动化预约管理流程
- 开发者构建预约相关的内部工具或集成工作流
- 服务行业的多日历管理团队(如诊所、咨询公司、美容工作室)
常规风险
- OAuth 会话过期:长期运行的自动化流程需监控连接状态,避免授权失效导致中断
- 时区处理复杂:需严格区分账户时区、客户时区和服务器时区,避免预约时间错位
- 速率限制:高频调用可能触发 429 限制,批量操作建议增加延迟
- 数据隐私:客户 PII(姓名、邮箱、电话)流经第三方网关,需评估合规要求
- API Key 安全:
MATON_API_KEY 泄露将导致账户完全暴露,建议配合密钥管理服务使用
- 功能限制:客户更新/删除仅适用于已有预约的客户,无法直接管理潜在客户档案
- 时间格式依赖:datetime 需符合 PHP
strtotime()解析规则,跨语言开发需注意格式兼容 - 无实时推送:依赖轮询查询,无 webhook 支持,实时性受限
- 改期约束:reschedule 操作要求目标时段必须可用,无法强制覆盖冲突
- 网关依赖:服务稳定性受 Maton 网关影响,非直连 Acuity 官方 API
适合人群
- 中小型企业主或行政人员,需自动化预约管理流程
- 开发者构建预约相关的内部工具或集成工作流
- 服务行业的多日历管理团队(如诊所、咨询公司、美容工作室)
常规风险
- OAuth 会话过期:长期运行的自动化流程需监控连接状态,避免授权失效导致中断
- 时区处理复杂:需严格区分账户时区、客户时区和服务器时区,避免预约时间错位
- 速率限制:高频调用可能触发 429 限制,批量操作建议增加延迟
- 数据隐私:客户 PII(姓名、邮箱、电话)流经第三方网关,需评估合规要求
- API Key 安全:
MATON_API_KEY 泄露将导致账户完全暴露,建议配合密钥管理服务使用
- OAuth 会话过期:长期运行的自动化流程需监控连接状态,避免授权失效导致中断
- 时区处理复杂:需严格区分账户时区、客户时区和服务器时区,避免预约时间错位
- 速率限制:高频调用可能触发 429 限制,批量操作建议增加延迟
- 数据隐私:客户 PII(姓名、邮箱、电话)流经第三方网关,需评估合规要求
- API Key 安全:
MATON_API_KEY泄露将导致账户完全暴露,建议配合密钥管理服务使用
技能正文
name: acuity-scheduling
description: |
Acuity Scheduling API integration with managed OAuth. Manage appointments, calendars, clients, and availability. Use this skill when users want to schedule, reschedule, or cancel appointments, check availability, or manage clients and calendars. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
compatibility: Requires network access and valid Maton API key
metadata:
author: maton
version: "1.0"
clawdbot:
emoji: 🧠
requires:
env:
- MATON_API_KEY
Acuity Scheduling
Access the Acuity Scheduling API with managed OAuth authentication. Manage appointments, calendars, clients, availability, and more.
Quick Start
# List appointments
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/acuity-scheduling/api/v1/appointments?max=10')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Base URL
https://gateway.maton.ai/acuity-scheduling/{native-api-path}
# List appointments
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/acuity-scheduling/api/v1/appointments?max=10')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
https://gateway.maton.ai/acuity-scheduling/{native-api-path}
Replace {native-api-path} with the actual Acuity API endpoint path. The gateway proxies requests to acuityscheduling.com and automatically injects your OAuth token.
Authentication
All requests require the Maton API key in the Authorization header:
Authorization: Bearer $MATON_API_KEY
Environment Variable: Set your API key as MATON_API_KEY:
export MATON_API_KEY="YOUR_API_KEY"
Getting Your API Key
- Sign in or create an account at maton.ai
- Go to maton.ai/settings
- Copy your API key
Connection Management
Manage your Acuity Scheduling OAuth connections at https://ctrl.maton.ai.
List Connections
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections?app=acuity-scheduling&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Create Connection
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'acuity-scheduling'}).encode()
req = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Get Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections?app=acuity-scheduling&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'acuity-scheduling'}).encode()
req = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Get Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"connection": {
"connection_id": "21fd90f9-5935-43cd-b6c8-bde9d915ca80",
"status": "ACTIVE",
"creation_time": "2025-12-08T07:20:53.488460Z",
"last_updated_time": "2026-01-31T20:03:32.593153Z",
"url": "https://connect.maton.ai/?session_token=...",
"app": "acuity-scheduling",
"metadata": {}
}
}
Open the returned url in a browser to complete OAuth authorization.
Delete Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Specifying Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If you have multiple Acuity Scheduling connections, specify which one to use with the Maton-Connection header:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/acuity-scheduling/api/v1/appointments')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If omitted, the gateway uses the default (oldest) active connection.
API Reference
Account Information
Get Account Info
GET /acuity-scheduling/api/v1/me
GET /acuity-scheduling/api/v1/me
Returns account information including timezone, scheduling page URL, and plan details.
Response:
{
"id": 12345,
"email": "user@example.com",
"timezone": "America/Los_Angeles",
"name": "My Business",
"schedulingPage": "https://app.acuityscheduling.com/schedule.php?owner=12345",
"plan": "Professional",
"currency": "USD"
}
Appointments
List Appointments
GET /acuity-scheduling/api/v1/appointments
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
max |
integer | Maximum results (default: 100) |
minDate |
date | Appointments on or after this date |
maxDate |
date | Appointments on or before this date |
calendarID |
integer | Filter by calendar |
appointmentTypeID |
integer | Filter by appointment type |
canceled |
boolean | Include canceled appointments (default: false) |
firstName |
string | Filter by client first name |
lastName |
string | Filter by client last name |
email |
string | Filter by client email |
excludeForms |
boolean | Omit intake forms for faster response |
direction |
string | Sort order: ASC or DESC (default: DESC) |
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/acuity-scheduling/api/v1/appointments?max=10&minDate=2026-02-01')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
[
{
"id": 1630290133,
"firstName": "Jane",
"lastName": "McTest",
"phone": "1235550101",
"email": "jane.mctest@example.com",
"date": "February 4, 2026",
"time": "9:30am",
"endTime": "10:20am",
"datetime": "2026-02-04T09:30:00-0800",
"type": "Consultation",
"appointmentTypeID": 88791369,
"duration": "50",
"calendar": "Chris",
"calendarID": 13499175,
"canceled": false,
"confirmationPage": "https://app.acuityscheduling.com/schedule.php?..."
}
]
Get Appointment
GET /acuity-scheduling/api/v1/appointments/{id}
Create Appointment
POST /acuity-scheduling/api/v1/appointments
Content-Type: application/json
{
"datetime": "2026-02-15T09:00",
"appointmentTypeID": 123,
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "555-123-4567",
"timezone": "America/New_York"
}
GET /acuity-scheduling/api/v1/appointments/{id}
POST /acuity-scheduling/api/v1/appointments
Content-Type: application/json
{
"datetime": "2026-02-15T09:00",
"appointmentTypeID": 123,
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "555-123-4567",
"timezone": "America/New_York"
}
Required Fields:
datetime- Date and time (parseable by PHP's strtotime)appointmentTypeID- Appointment type IDfirstName- Client's first namelastName- Client's last nameemail- Client's email
Optional Fields:
phone- Client phone numbercalendarID- Specific calendar (auto-selected if omitted)timezone- Client's timezonecertificate- Package or coupon codenotes- Admin notesaddonIDs- Array of addon IDsfields- Array of form field values
Example:
python <<'EOF'
import urllib.request, os, json
data = json.dumps({
'datetime': '2026-02-15T09:00',
'appointmentTypeID': 123,
'firstName': 'John',
'lastName': 'Doe',
'email': 'john.doe@example.com'
}).encode()
req = urllib.request.Request('https://gateway.maton.ai/acuity-scheduling/api/v1/appointments', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Update Appointment
PUT /acuity-scheduling/api/v1/appointments/{id}
Content-Type: application/json
{
"firstName": "Jane",
"lastName": "Smith",
"email": "jane.smith@example.com"
}
Cancel Appointment
PUT /acuity-scheduling/api/v1/appointments/{id}/cancel
PUT /acuity-scheduling/api/v1/appointments/{id}
Content-Type: application/json
{
"firstName": "Jane",
"lastName": "Smith",
"email": "jane.smith@example.com"
}
PUT /acuity-scheduling/api/v1/appointments/{id}/cancel
Returns the canceled appointment with canceled: true.
Reschedule Appointment
PUT /acuity-scheduling/api/v1/appointments/{id}/reschedule
Content-Type: application/json
{
"datetime": "2026-02-20T10:00"
}
PUT /acuity-scheduling/api/v1/appointments/{id}/reschedule
Content-Type: application/json
{
"datetime": "2026-02-20T10:00"
}
Note: The new datetime must be an available time slot.
Calendars
List Calendars
GET /acuity-scheduling/api/v1/calendars
Response:
[
{
"id": 13499175,
"name": "Chris",
"email": "",
"replyTo": "chris@example.com",
"description": "",
"location": "",
"timezone": "America/Los_Angeles"
}
]
Appointment Types
List Appointment Types
GET /acuity-scheduling/api/v1/appointment-types
Query Parameters:
includeDeleted(boolean) - Include deleted types
Response:
[
{
"id": 88791369,
"name": "Consultation",
"active": true,
"description": "",
"duration": 50,
"price": "45.00",
"category": "",
"color": "#ED7087",
"private": false,
"type": "service",
"calendarIDs": [13499175],
"schedulingUrl": "https://app.acuityscheduling.com/schedule.php?..."
}
]
Availability
Get Available Dates
GET /acuity-scheduling/api/v1/availability/dates?month=2026-02&appointmentTypeID=123
Required Parameters:
month- Month to check (e.g., "2026-02")appointmentTypeID- Appointment type ID
Optional Parameters:
calendarID- Specific calendartimezone- Timezone for results (e.g., "America/New_York")
Response:
[
{"date": "2026-02-09"},
{"date": "2026-02-10"},
{"date": "2026-02-11"}
]
Get Available Times
GET /acuity-scheduling/api/v1/availability/times?date=2026-02-10&appointmentTypeID=123
GET /acuity-scheduling/api/v1/availability/times?date=2026-02-10&appointmentTypeID=123
Required Parameters:
date- Date to checkappointmentTypeID- Appointment type ID
Optional Parameters:
calendarID- Specific calendartimezone- Timezone for results
Response:
[
{"time": "2026-02-10T09:00:00-0800", "slotsAvailable": 1},
{"time": "2026-02-10T09:50:00-0800", "slotsAvailable": 1},
{"time": "2026-02-10T10:40:00-0800", "slotsAvailable": 1}
]
Clients
List Clients
GET /acuity-scheduling/api/v1/clients
Query Parameters:
search- Filter by first name, last name, or phone
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/acuity-scheduling/api/v1/clients?search=John')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
[
{
"firstName": "Jane",
"lastName": "McTest",
"email": "jane.mctest@example.com",
"phone": "(123) 555-0101",
"notes": ""
}
]
Create Client
POST /acuity-scheduling/api/v1/clients
Content-Type: application/json
{
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"phone": "555-123-4567"
}
Update Client
PUT /acuity-scheduling/api/v1/clients
Content-Type: application/json
{
"firstName": "John",
"lastName": "Doe",
"email": "john.updated@example.com"
}
POST /acuity-scheduling/api/v1/clients
Content-Type: application/json
{
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"phone": "555-123-4567"
}
PUT /acuity-scheduling/api/v1/clients
Content-Type: application/json
{
"firstName": "John",
"lastName": "Doe",
"email": "john.updated@example.com"
}
Note: Client update/delete only works for clients with existing appointments.
Delete Client
DELETE /acuity-scheduling/api/v1/clients
Content-Type: application/json
{
"firstName": "John",
"lastName": "Doe"
}
Blocks
List Blocks
GET /acuity-scheduling/api/v1/blocks
DELETE /acuity-scheduling/api/v1/clients
Content-Type: application/json
{
"firstName": "John",
"lastName": "Doe"
}
List Blocks
GET /acuity-scheduling/api/v1/blocks
Query Parameters:
max- Maximum results (default: 100)minDate- Blocks on or after this datemaxDate- Blocks on or before this datecalendarID- Filter by calendar
Get Block
GET /acuity-scheduling/api/v1/blocks/{id}
Create Block
POST /acuity-scheduling/api/v1/blocks
Content-Type: application/json
{
"start": "2026-02-15T12:00",
"end": "2026-02-15T13:00",
"calendarID": 1234,
"notes": "Lunch break"
}
GET /acuity-scheduling/api/v1/blocks/{id}
POST /acuity-scheduling/api/v1/blocks
Content-Type: application/json
{
"start": "2026-02-15T12:00",
"end": "2026-02-15T13:00",
"calendarID": 1234,
"notes": "Lunch break"
}
Response:
{
"id": 9589304654,
"calendarID": 13499175,
"start": "2026-02-15T12:00:00-0800",
"end": "2026-02-15T13:00:00-0800",
"notes": "Lunch break",
"description": "Sunday, February 15, 2026 12:00pm - 1:00pm"
}
Delete Block
DELETE /acuity-scheduling/api/v1/blocks/{id}
DELETE /acuity-scheduling/api/v1/blocks/{id}
Returns 204 No Content on success.
Forms
List Forms
GET /acuity-scheduling/api/v1/forms
Response:
[
{
"id": 123,
"name": "Client Intake Form",
"appointmentTypeIDs": [456, 789],
"fields": [
{
"id": 1,
"name": "How did you hear about us?",
"type": "dropdown",
"options": ["Google", "Friend", "Social Media"],
"required": true
}
]
}
]
Labels
List Labels
GET /acuity-scheduling/api/v1/labels
Response:
[
{"id": 23116714, "name": "Checked In", "color": "green"},
{"id": 23116715, "name": "Completed", "color": "pink"},
{"id": 23116713, "name": "Confirmed", "color": "yellow"}
]
Pagination
Acuity Scheduling uses the max parameter to limit results. Use minDate and maxDate to paginate through date ranges:
# First page
GET /acuity-scheduling/api/v1/appointments?max=100&minDate=2026-01-01&maxDate=2026-01-31
# Next page
GET /acuity-scheduling/api/v1/appointments?max=100&minDate=2026-02-01&maxDate=2026-02-28
Code Examples
JavaScript
const response = await fetch(
'https://gateway.maton.ai/acuity-scheduling/api/v1/appointments?max=10',
{
headers: {
'Authorization': `Bearer ${process.env.MATON_API_KEY}`
}
}
);
const appointments = await response.json();
Python
import os
import requests
response = requests.get(
'https://gateway.maton.ai/acuity-scheduling/api/v1/appointments',
headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'},
params={'max': 10}
)
appointments = response.json()
Notes
- Datetime values must be parseable by PHP's
strtotime() function
- Timezones use IANA format (e.g., "America/New_York", "America/Los_Angeles")
- Client update/delete requires clients to have existing appointments
- Rescheduling requires the new datetime to be an available time slot
- Use
excludeForms=true for faster appointment list responses
- IMPORTANT: When using curl commands, use
curl -g when URLs contain brackets to disable glob parsing
- IMPORTANT: When piping curl output to
jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments. You may get "Invalid API key" errors when piping.
Error Handling
Status
Meaning
400
Invalid request (e.g., time not available, client not found)
401
Invalid or missing Maton API key
404
Resource not found
429
Rate limited
4xx/5xx
Passthrough error from Acuity API
Troubleshooting: API Key Issues
- Check that the
MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
- Verify the API key is valid by listing connections:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Troubleshooting: Invalid App Name
- Ensure your URL path starts with
acuity-scheduling. For example:
- Correct:
https://gateway.maton.ai/acuity-scheduling/api/v1/appointments
- Incorrect:
https://gateway.maton.ai/api/v1/appointments
Resources
import os
import requests
response = requests.get(
'https://gateway.maton.ai/acuity-scheduling/api/v1/appointments',
headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'},
params={'max': 10}
)
appointments = response.json()
- Datetime values must be parseable by PHP's
strtotime()function - Timezones use IANA format (e.g., "America/New_York", "America/Los_Angeles")
- Client update/delete requires clients to have existing appointments
- Rescheduling requires the new datetime to be an available time slot
- Use
excludeForms=truefor faster appointment list responses - IMPORTANT: When using curl commands, use
curl -gwhen URLs contain brackets to disable glob parsing - IMPORTANT: When piping curl output to
jqor other commands, environment variables like$MATON_API_KEYmay not expand correctly in some shell environments. You may get "Invalid API key" errors when piping.
Error Handling
Status
Meaning
400
Invalid request (e.g., time not available, client not found)
401
Invalid or missing Maton API key
404
Resource not found
429
Rate limited
4xx/5xx
Passthrough error from Acuity API
Troubleshooting: API Key Issues
| Status | Meaning |
|---|---|
| 400 | Invalid request (e.g., time not available, client not found) |
| 401 | Invalid or missing Maton API key |
| 404 | Resource not found |
| 429 | Rate limited |
| 4xx/5xx | Passthrough error from Acuity API |
- Check that the
MATON_API_KEYenvironment variable is set:
echo $MATON_API_KEY
- Verify the API key is valid by listing connections:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Troubleshooting: Invalid App Name
acuity-scheduling. For example:https://gateway.maton.ai/acuity-scheduling/api/v1/appointmentshttps://gateway.maton.ai/api/v1/appointments