Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

sinch-number-order-apisinch number order API 搜索

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

1,388

周安装

59

GitHub Stars

7

下载量

486
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sinch-number-order-api(sinch number order API 搜索)
来源仓库:https://github.com/sinch/skills
仓库路径:skills/sinch-number-order-api
安装命令:
npx skills add https://github.com/sinch/skills --skill sinch-number-order-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sinch/skills --skill sinch-number-order-api

简介

用于辅助 API 设计、接口文档和请求响应结构梳理。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中生成 OpenAPI 草稿或检查字段命名。
  • 使用时需确认业务语义、鉴权方式和错误处理规则,避免凭空补字段。
  • 建议从现有代码、schema 或接口样例中提取事实,确保信息准确。
  • 安装前请核实权限范围和维护状态,避免触发不必要的网络或文件操作。

SKILL.md

Number Order API

Order phone numbers with KYC compliance through a guided multi-step workflow. Required in countries where number purchases need identity verification.

Agent Instructions

This is a sequential, fragile workflow — steps must be followed in order. Do not combine API calls. Step 2 may be skipped if the user already has a specific E.164 number.

Before starting, collect from the user:

  1. Country — ISO 3166-1 alpha-2 region code (e.g. AU, DE, BR)
  2. Number typeMOBILE, LOCAL, or TOLL_FREE
  3. Specific number or quantity? — E.164 phone number, or quantity + criteria
  4. SMS or Voice?

- SMS → needs servicePlanId (+ campaignId for US 10DLC) - Voice → needs type (RTC/EST/FAX) + corresponding ID (appId/trunkId/serviceId)

For authentication setup, see the authentication skill.

Workflow

Execute in order. Report state to the user after each step.

  • Step 1 — Lookup requirements: POST /v1/projects/{projectId}/numberOrders:lookupNumberRequirements with regionCode + numberType. Save the response — it defines KYC fields schema and attachments (with id, mandatory, allowedMimeTypes, allowedDocumentTypes). Tell the user what's needed.
  • Step 2 — Search available numbers *(skip if user has a specific number)*: GET /v1/projects/{projectId}/availableNumbers?regionCode=XX&type=YY. Optional filters: capabilities, numberPattern.pattern, numberPattern.searchPattern, size. Present results and let user choose.
  • Step 3 — Create order: POST /v1/projects/{projectId}/numberOrders:createNumberOrder. Use numberOrderOption (specific phones) or quantityOrderOption (criteria-based) — never both. Save idNumberOrder and expireTime from response.
  • Step 4 — Submit registration: PUT /v1/projects/{projectId}/numberOrders/{numberOrderId}/registration. Populate requestDetails.data using the schema from Step 1. Returns 400 on validation errors — fix and retry. Use GET /v1/projects/{projectId}/numberOrders/{numberOrderId}/registration to review.
  • Step 5 — Upload attachments *(if Step 1 returned mandatory attachments)*: POST /v1/projects/{projectId}/numberOrders/{numberOrderId}/attachments/{attachmentId} as multipart/form-data. Check allowedMimeTypes before uploading.
  • Step 6 — Submit order: POST /v1/projects/{projectId}/numberOrders/{numberOrderId}/submit. State becomes IN_REVIEW.
The 48-hour clock starts at Step 3. Steps 4–6 must complete before the order expires.

Check status anytime: GET /v1/projects/{projectId}/numberOrders/{numberOrderId}

Order States

CREATEDIN_REVIEWCOMPLETED | REJECTED | EXPIRED | BLOCKED | NUMBER_ORDER_STATE_UNSPECIFIED

Canonical Example — Lookup Requirements (Step 1)

Base URL: https://numbers.api.sinch.com. Auth: OAuth2 bearer token (recommended) or Basic.

Store credentials in environment variables — never hardcode tokens or keys in commands or source code:

export SINCH_PROJECT_ID="your-project-id"
export SINCH_ACCESS_TOKEN="your-oauth-token"
curl -X POST \
  "https://numbers.api.sinch.com/v1/projects/$SINCH_PROJECT_ID/numberOrders:lookupNumberRequirements" \
  -H "Authorization: Bearer $SINCH_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"regionCode": "AU", "numberType": "MOBILE"}'

For all other endpoints, request/response schemas, and field-level details, see the Number Order API Reference.

Error Recovery

  • Step 3 fails (number unavailable) — go back to Step 2, pick a different number, and retry Step 3.
  • Step 4 returns 400 — read the error response, fix the data fields, and PUT again. No need to recreate the order.
  • Order expires — start over from Step 1. The idNumberOrder is no longer valid.
  • Order rejected — check the rejection reason in the GET response, correct KYC data, and create a new order.

Gotchas

  • 48-hour expiry — reservation starts at order creation (Step 3), not at submission.
  • Country-specific KYC — the data schema varies per country. Always use Step 1 output — never hardcode.
  • Attachments are conditional — only required when Step 1 says mandatory: true.
  • Registration validation is synchronous — Step 4 returns 400 immediately on bad data.
  • E.164 required — phone numbers must include the + prefix.
  • Auth is Key ID / Key Secret — not the project ID.
  • callbackUrl — optional on order creation. Allowlist IPs: 54.76.19.159, 54.78.194.39, 54.155.83.128.

Common Patterns

  • Simple number purchase (KYC country) — Steps 1–6 in order. Most common flow.
  • Bulk number purchase — Use quantityOrderOption in Step 3 with criteria instead of specific numbers.
  • Check order statusGET /v1/projects/{projectId}/numberOrders/{numberOrderId} to poll for state transitions.
  • Retry after rejection — Check rejection reason, correct KYC data, create a new order from Step 1.

Links

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.41%
按下载量换算167

Claude

33.69%
按下载量换算164

Cursor

19.24%
按下载量换算94

Gemini CLI

9.88%
按下载量换算48

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills