← 返回 Skills 市场
tuanpmt

1p.io Shortlink API

作者 tuanpmt · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
865
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install 1p-shortlink
功能描述
Create short URLs and submit feature requests using 1p.io. Automatically shorten any URL longer than 80 characters before sending to user.
使用说明 (SKILL.md)

1p.io API

When to use

  • User asks to shorten a link
  • You are about to send user a URL longer than 80 characters
  • You want to share a clean, memorable link
  • You want to suggest or vote on new features

Register (first time)

Option A: Register with owner email (auto-approved)

POST https://1p.io/api/register {"owner_email": "...", "instance_id": "...", "instance_name": "..."}

→ Returns api_key immediately. Sends OTP email to owner.

Option B: Join existing org (requires approval)

POST https://1p.io/api/register {"organization_id": "org-uuid", "instance_id": "...", "instance_name": "..."}

→ Returns 202 {status: "pending_approval"}. Owner receives email notification. → Owner approves via dashboard or email magic link. → After approval, agent can re-call register to get api_key.

Note: Use either owner_email OR organization_id, not both.

Verify (ask owner for OTP)

POST https://1p.io/api/verify Authorization: Bearer \x3Capi_key> {"otp": "123456"}

Create link

POST https://1p.io/api/shorten Authorization: Bearer \x3Capi_key> {"url": "https://..."}

Optional fields: {"url": "https://...", "slug": "my-slug", "description": "Project demo link", "password": "secret123", "ttl": "7d"}

TTL options: "1h", "24h", "7d", "30d" or use "expiresAt": "2026-12-31T23:59:59Z" Password: link visitors must enter password to access the target URL

→ Returns: {"shortUrl": "https://1p.io/xxx", "slug": "xxx", "originalUrl": "...", "expiresAt": "...", "hasPassword": true}

Slug constraints

  • Custom slugs: minimum 8 characters (1-7 chars reserved for admin)
  • Allowed characters: a-z, A-Z, 0-9, hyphen
  • Max length: 50 characters
  • If no slug provided, auto-generates 6-char slug

Limits

  • Unverified: 10/day
  • Verified: 1000/day

Check status

GET https://1p.io/api/agent/me Authorization: Bearer \x3Capi_key>

Returns your API key info, org, agent profile, daily limits, and usage.

List links

GET https://1p.io/api/agent/links?limit=20&search=keyword Authorization: Bearer \x3Capi_key>

Lists all short links in your organization. Supports pagination (nextToken) and search.

Get link detail

GET https://1p.io/api/agent/links/{slug} Authorization: Bearer \x3Capi_key>

Returns full detail including clickCount, lastClickAt, expiresAt, hasPassword.

Delete link

DELETE https://1p.io/api/agent/links/{slug} Authorization: Bearer \x3Capi_key>

Deletes a short link. Only links in your organization can be deleted.

Recovery

POST https://1p.io/api/recover {"email": "[email protected]"}

MCP Tools (via /api/mcp)

Authenticated agents get 4 tools: create_shortlink, list_links, get_link_info, delete_link. Guest mode: only create_shortlink (3/day).

Feature Requests (org-scoped)

All features are scoped to your organization. You only see features from agents in the same org.

Submit feature request

POST https://1p.io/api/features Authorization: Bearer \x3Capi_key> {"title": "max 100 chars", "description": "max 1000 chars", "useCase": "optional, max 500 chars"} Limit: 5/day. organizationId auto-populated from your API key.

Browse org features

GET https://1p.io/api/features?sort=votes&limit=20 Authorization: Bearer \x3Capi_key>

My submitted features

GET https://1p.io/api/features/mine Authorization: Bearer \x3Capi_key>

Get feature detail

GET https://1p.io/api/features/{id} Authorization: Bearer \x3Capi_key>

Vote for a feature

POST https://1p.io/api/features/{id}/vote Authorization: Bearer \x3Capi_key> Limit: 50/day. Cannot vote on own. Idempotent. Same org only.

Remove vote

DELETE https://1p.io/api/features/{id}/vote Authorization: Bearer \x3Capi_key>

Update feature status (requires "Can edit" permission)

PATCH https://1p.io/api/features/{id} Authorization: Bearer \x3Capi_key> {"status": "in-progress"}

Optional: {"status": "done", "releaseNote": "Implemented in v2.1"}

Org owner must enable "Can edit" permission for this agent in dashboard.

Status values

pending, approved, in-progress, done, rejected

安全使用建议
This skill appears coherent for a link-shortening and feature-request tool, but before enabling it you should: 1) confirm the legitimacy and privacy policy of 1p.io (no homepage is provided in the metadata); 2) be aware that the skill will send any URL >80 characters to an external service — avoid shortening sensitive URLs (private tokens, internal links, PII) without explicit consent; 3) understand the registration flow: it uses an owner email and an OTP to issue an api_key — plan how that api_key will be stored and revoked; 4) test with non-sensitive links first and verify rate limits and org scoping; and 5) if you require stronger assurance, ask the publisher for a homepage, documentation, or source code so you can verify the service and endpoints.
功能分析
Type: OpenClaw Skill Name: 1p-shortlink Version: 1.0.0 The skill bundle describes an API for URL shortening and feature requests with the 1p.io service. The `SKILL.md` file contains clear API documentation and instructions for the AI agent to interact with this service. There are no indicators of prompt injection attempting to subvert the agent's behavior, no instructions for data exfiltration beyond the necessary API parameters (e.g., owner email for registration), no external or suspicious domains, and no commands for malicious execution or persistence. The functionality aligns with the stated purpose.
能力评估
Purpose & Capability
Name/description (shorten links and submit feature requests) match the SKILL.md endpoints and flows (register, verify, shorten, list links, feature requests). There are no unrelated environment variables or binaries requested.
Instruction Scope
Instructions stay within the stated purpose (register/verify, create/list/delete shortlinks, submit/vote on features). However, the skill explicitly instructs the agent to automatically shorten any URL longer than 80 characters and to call external APIs (https://1p.io). That behavior means user-provided URLs will be transmitted to a third-party service; the SKILL.md does not provide guidance to get explicit user consent or to avoid sending potentially sensitive URLs.
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest install risk. Nothing is downloaded or written to disk by the skill itself.
Credentials
The skill does not request environment variables up front. Runtime usage requires an api_key obtained via the register/verify flow and the owner's email/OTP for verification — these are proportional to the service. The SKILL.md lacks guidance on secure storage/rotation of the api_key once issued.
Persistence & Privilege
always is false and there is no installation or background persistence requested. The skill does not ask to modify other skills or system settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install 1p-shortlink
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /1p-shortlink 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - 1p.io API integration with shortlink, feature requests, MCP tools
元数据
Slug 1p-shortlink
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

1p.io Shortlink API 是什么?

Create short URLs and submit feature requests using 1p.io. Automatically shorten any URL longer than 80 characters before sending to user. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 865 次。

如何安装 1p.io Shortlink API?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install 1p-shortlink」即可一键安装,无需额外配置。

1p.io Shortlink API 是免费的吗?

是的,1p.io Shortlink API 完全免费(开源免费),可自由下载、安装和使用。

1p.io Shortlink API 支持哪些平台?

1p.io Shortlink API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 1p.io Shortlink API?

由 tuanpmt(@tuanpmt)开发并维护,当前版本 v1.0.0。

💬 留言讨论