文档

通过托管 OAuth 接入 Quo 商业电话 API,可发送短信、查询通话、管理联系人、获取录音与转写。

它能做什么

本技能借助 Maton 代理 Quo(原 OpenPhone)开放接口,只需配置 MATON_API_KEY 并附加 User-Agent: Maton/1.0 请求头,Maton 会自动注入 OAuth token。所有请求统一发往 https://api.maton.ai/quo/v1/{native-api-path},覆盖电话号、用户、短信、通话、录音、转写、摘要、语音留言、联系人和会话等资源;分页采用 maxResults 加 pageToken 的令牌机制。读取类接口(列出电话号、用户、消息、通话、联系人、会话等)可直接调用,但任何创建、更新、删除操作以及新建 OAuth 连接,都必须先与用户确认。

什么时候用它

  • 从指定的 Quo 号向客户发送短信
  • 按号码和单个通话人筛选,列出最近的通话记录
  • 按通话 ID 拉取录音、转写、摘要或语音留言
  • 在已绑定的 Quo 账号中创建、更新或删除联系人

技能文档

Quo

Access the Quo API with managed OAuth authentication. Send SMS messages, manage calls and contacts, and retrieve call recordings and transcripts.

Quick Start

# List phone numbers
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/quo/v1/phone-numbers')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('User-Agent', 'Maton/1.0')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Base URL

https://api.maton.ai/quo/{native-api-path}

Maton proxies requests to api.openphone.com and automatically injects your OAuth token.

Authentication

All requests require the Maton API key in the Authorization header and a User-Agent header:

Authorization: Bearer $MATON_API_KEY
User-Agent: Maton/1.0

Environment Variable: Set your API key as MATON_API_KEY:

export MATON_API_KEY="YOUR_API_KEY"

Getting Your API Key

  1. Sign in or create an account at maton.ai
  2. Go to maton.ai/settings
  3. Copy your API key

Connection Management

Manage your Quo OAuth connections at https://api.maton.ai.

List Connections

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=quo&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': 'quo'}).encode()
req = urllib.request.Request('https://api.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://api.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": "{connection_id}",
    "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": "quo",
    "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://api.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

If you have multiple Quo connections, specify which one to use with the Maton-Connection header:

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/quo/v1/phone-numbers')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('User-Agent', 'Maton/1.0')
req.add_header('Maton-Connection', '{connection_id}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

If you have multiple connections, always include this header to ensure requests go to the intended account.

Security & Permissions

  • Access is scoped to calls, messages, contacts, and conversations for your business phone system within the connected Quo account.
  • All write operations require explicit user approval. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.

API Reference

Phone Numbers

List Phone Numbers

GET /quo/v1/phone-numbers

Optional query parameter:

  • userId - Filter by user ID (pattern: ^US(.*)$)

Response:

{
  "data": [
    {
      "id": "PN123abc",
      "number": "+15555555555",
      "formattedNumber": "(555) 555-5555",
      "name": "Main Line",
      "users": [
        {
          "id": "US123abc",
          "email": "user@example.com",
          "firstName": "John",
          "lastName": "Doe",
          "role": "admin"
        }
      ],
      "createdAt": "2022-01-01T00:00:00Z",
      "updatedAt": "2022-01-01T00:00:00Z"
    }
  ]
}

Users

List Users

GET /quo/v1/users?maxResults=50

Query parameters:

  • maxResults (required) - Results per page (1-50, default: 10)
  • pageToken - Pagination token

Response:

{
  "data": [
    {
      "id": "US123abc",
      "email": "user@example.com",
      "firstName": "John",
      "lastName": "Doe",
      "role": "owner",
      "createdAt": "2022-01-01T00:00:00Z",
      "updatedAt": "2022-01-01T00:00:00Z"
    }
  ],
  "totalItems": 10,
  "nextPageToken": null
}

Get User by ID

GET /quo/v1/users/{userId}

Messages

Send Text Message

POST /quo/v1/messages
Content-Type: application/json

{
  "content": "Hello, world!",
  "from": "PN123abc",
  "to": ["+15555555555"]
}

Request body:

  • content (required) - Message text (1-1600 characters)
  • from (required) - Phone number ID (PN*) or E.164 format
  • to (required) - Array with single recipient in E.164 format
  • userId - User ID (defaults to phone owner)
  • setInboxStatus - Set to "done" to mark conversation complete

Response (202):

{
  "id": "AC123abc",
  "to": ["+15555555555"],
  "from": "+15555555555",
  "text": "Hello, world!",
  "phoneNumberId": "PN123abc",
  "direction": "outgoing",
  "userId": "US123abc",
  "status": "queued",
  "createdAt": "2022-01-01T00:00:00Z",
  "updatedAt": "2022-01-01T00:00:00Z"
}

List Messages

GET /quo/v1/messages?phoneNumberId=PN123abc&participants[]=+15555555555&maxResults=100

Query parameters:

  • phoneNumberId (required) - Phone number ID
  • participants (required) - Array of participant phone numbers in E.164 format
  • maxResults (required) - Results per page (1-100, default: 10)
  • userId - Filter by user ID
  • createdAfter - ISO 8601 timestamp
  • createdBefore - ISO 8601 timestamp
  • pageToken - Pagination token

Get Message by ID

GET /quo/v1/messages/{messageId}

Calls

List Calls

GET /quo/v1/calls?phoneNumberId=PN123abc&participants[]=+15555555555&maxResults=100

Query parameters:

  • phoneNumberId (required) - Phone number ID
  • participants (required) - Array with single participant phone number in E.164 format (max 1)
  • maxResults (required) - Results per page (1-100, default: 10)
  • userId - Filter by user ID
  • createdAfter - ISO 8601 timestamp
  • createdBefore - ISO 8601 timestamp
  • pageToken - Pagination token

Response:

{
  "data": [
    {
      "id": "AC123abc",
      "phoneNumberId": "PN123abc",
      "userId": "US123abc",
      "direction": "incoming",
      "status": "completed",
      "duration": 120,
      "participants": ["+15555555555"],
      "answeredAt": "2022-01-01T00:00:00Z",
      "completedAt": "2022-01-01T00:02:00Z",
      "createdAt": "2022-01-01T00:00:00Z",
      "updatedAt": "2022-01-01T00:02:00Z"
    }
  ],
  "totalItems": 50,
  "nextPageToken": "..."
}

Get Call by ID

GET /quo/v1/calls/{callId}

Get Call Recordings

GET /quo/v1/call-recordings/{callId}

Response:

{
  "data": [
    {
      "id": "REC123abc",
      "duration": 120,
      "startTime": "2022-01-01T00:00:00Z",
      "status": "completed",
      "type": "voicemail",
      "url": "https://..."
    }
  ]
}

Recording status values: absent, completed, deleted, failed, in-progress, paused, processing, stopped, stopping

Get Call Summary

GET /quo/v1/call-summaries/{callId}

Get Call Transcript

GET /quo/v1/call-transcripts/{callId}

Get Call Voicemail

GET /quo/v1/call-voicemails/{callId}

Contacts

List Contacts

GET /quo/v1/contacts?maxResults=50

Query parameters:

  • maxResults (required) - Results per page (1-50, default: 10)
  • externalIds - Array of external identifiers
  • sources - Array of source indicators
  • pageToken - Pagination token

Response:

{
  "data": [
    {
      "id": "CT123abc",
      "externalId": null,
      "source": null,
      "defaultFields": {
        "company": "Acme Corp",
        "firstName": "Jane",
        "lastName": "Doe",
        "role": "Manager",
        "emails": [{"name": "work", "value": "jane@example.com", "id": "EM1"}],
        "phoneNumbers": [{"name": "mobile", "value": "+15555555555", "id": "PH1"}]
      },
      "customFields": [],
      "createdAt": "2022-01-01T00:00:00Z",
      "updatedAt": "2022-01-01T00:00:00Z",
      "createdByUserId": "US123abc"
    }
  ],
  "totalItems": 100,
  "nextPageToken": "..."
}

Get Contact by ID

GET /quo/v1/contacts/{contactId}

Create Contact

POST /quo/v1/contacts
Content-Type: application/json

{
  "defaultFields": {
    "firstName": "Jane",
    "lastName": "Doe",
    "company": "Acme Corp",
    "phoneNumbers": [{"name": "mobile", "value": "+15555555555"}],
    "emails": [{"name": "work", "value": "jane@example.com"}]
  }
}

Update Contact

PATCH /quo/v1/contacts/{contactId}
Content-Type: application/json

{
  "defaultFields": {
    "company": "New Company"
  }
}

Delete Contact

DELETE /quo/v1/contacts/{contactId}

Get Contact Custom Fields

GET /quo/v1/contact-custom-fields

Conversations

List Conversations

GET /quo/v1/conversations?maxResults=100

Query parameters:

  • maxResults (required) - Results per page (1-100, default: 10)
  • phoneNumbers - Array of phone number IDs or E.164 numbers (1-100 items)
  • userId - Filter by user ID
  • createdAfter - ISO 8601 timestamp
  • createdBefore - ISO 8601 timestamp
  • updatedAfter - ISO 8601 timestamp
  • updatedBefore - ISO 8601 timestamp
  • excludeInactive - Boolean to exclude inactive conversations
  • pageToken - Pagination token

Response:

{
  "data": [
    {
      "id": "CV123abc",
      "phoneNumberId": "PN123abc",
      "name": "Jane Doe",
      "participants": ["+15555555555"],
      "assignedTo": "US123abc",
      "lastActivityAt": "2022-01-01T00:00:00Z",
      "createdAt": "2022-01-01T00:00:00Z",
      "updatedAt": "2022-01-01T00:00:00Z"
    }
  ],
  "totalItems": 50,
  "nextPageToken": "..."
}

Pagination

Quo uses token-based pagination. Include maxResults to set page size and use pageToken to retrieve subsequent pages.

GET /quo/v1/contacts?maxResults=50&pageToken=eyJsYXN0SWQiOi...

Response includes pagination info:

{
  "data": [...],
  "totalItems": 150,
  "nextPageToken": "eyJsYXN0SWQiOi..."
}

When nextPageToken is null, you've reached the last page.

Code Examples

JavaScript

const response = await fetch(
  'https://api.maton.ai/quo/v1/phone-numbers',
  {
    headers: {
      'Authorization': `Bearer ${process.env.MATON_API_KEY}`,
      'User-Agent': 'Maton/1.0'
    }
  }
);
const data = await response.json();

Python

import os
import requests

response = requests.get(
    'https://api.maton.ai/quo/v1/phone-numbers',
    headers={
        'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
        'User-Agent': 'Maton/1.0'
    }
)
data = response.json()

Send SMS Example

import os
import requests

response = requests.post(
    'https://api.maton.ai/quo/v1/messages',
    headers={
        'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
        'User-Agent': 'Maton/1.0',
        'Content-Type': 'application/json'
    },
    json={
        'content': 'Hello from Quo!',
        'from': 'PN123abc',
        'to': ['+15555555555']
    }
)
data = response.json()

Notes

  • Phone number IDs start with PN
  • User IDs start with US
  • Call/Message IDs start with AC
  • Phone numbers must be in E.164 format (e.g., +15555555555)
  • SMS pricing: $0.01 per segment (US/Canada); international rates apply
  • Maximum 1600 characters per message
  • List calls requires exactly 1 participant (1:1 conversations only)
  • IMPORTANT: All API requests require a User-Agent header (e.g., User-Agent: Maton/1.0). Requests without this header will be blocked.
  • IMPORTANT: When using curl commands, use curl -g when URLs contain brackets (participants[]) 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

Error Handling

StatusMeaning
400Bad request (e.g., too many participants, invalid format)
401Invalid or missing Maton API key
402Insufficient credits for SMS
403Not authorized for this phone number
404Resource not found
429Rate limited
500Server error

Troubleshooting: API Key Issues

  1. Check that the MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
  1. Verify the API key is valid by listing connections:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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

  1. Ensure your URL path starts with quo. For example:
  • Correct: https://api.maton.ai/quo/v1/phone-numbers
  • Incorrect: https://api.maton.ai/openphone/v1/phone-numbers

Resources

相关技能

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai21 次安装8 星标

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván557 次安装18 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

按用户明确指令,在得到大脑(Get笔记)中保存、搜索并管理笔记与知识库。

作者 iswalle767 次安装66 星标

byungkyu 的更多技能

浏览全部技能

通过托管 OAuth 访问 Microsoft Graph Excel 接口,读写 OneDrive 中的工作簿、工作表、区域、表格与图表。

作者 byungkyu804 次安装42 星标

通过 OAuth 认证网关管理 Stripe 客户、订阅、发票、产品、价格和支付。

作者 byungkyu721 次安装29 星标

通过托管 OAuth 的统一网关读写 Google Sheets 数据。

作者 byungkyu499 次安装13 星标

通过托管 OAuth 代理访问 YouTube Data API v3,搜索与管理视频、播放列表、频道、订阅和评论。

作者 byungkyu883 次安装145 星标

通过托管 OAuth 代理调用 WooCommerce REST API,管理商品、订单、客户、优惠券、物流、税务等数据。

作者 byungkyu510 次安装18 星标

通过托管 OAuth 认证,访问并管理 ClickUp 工作区、空间、文件夹、清单与任务等数据。

作者 byungkyu612 次安装12 星标