当前位置: 首页 > Skill >

Quo

Quo

Quo

Quo API 集成,托管 OAuth,管理企业电话系统的通话、消息、联系人和对话。当用户想要...时使用此技能。

1.0.3 2026.11.16 558
获取Skill文件查看使用说明
作 者:顾禾 许可证: 更新时间:2026.11.16
本文目录展开

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

Status Meaning
400 Bad request (e.g., too many participants, invalid format)
401 Invalid or missing Maton API key
402 Insufficient credits for SMS
403 Not authorized for this phone number
404 Resource not found
429 Rate limited
500 Server 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

  • Quo API Introduction
  • Quo API Authentication
  • Quo Support Center
  • Maton Community
  • Maton Support

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Quo
    • Quick Start
    • Base URL
    • Authentication
      • Getting Your API Key
    • Connection Management
      • List Connections
      • Create Connection
      • Get Connection
      • Delete Connection
      • Specifying Connection
    • Security & Permissions
    • API Reference
      • Phone Numbers
        • List Phone Numbers
      • Users
        • List Users
        • Get User by ID
      • Messages
        • Send Text Message
        • List Messages
        • Get Message by ID
      • Calls
        • List Calls
        • Get Call by ID
        • Get Call Recordings
        • Get Call Summary
        • Get Call Transcript
        • Get Call Voicemail
      • Contacts
        • List Contacts
        • Get Contact by ID
        • Create Contact
        • Update Contact
        • Delete Contact
        • Get Contact Custom Fields
      • Conversations
        • List Conversations
    • Pagination
    • Code Examples
      • JavaScript
      • Python
      • Send SMS Example
    • Notes
    • Error Handling
      • Troubleshooting: API Key Issues
      • Troubleshooting: Invalid App Name
    • Resources
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期