{
  "schemaVersion": "1.0",
  "item": {
    "slug": "1p-shortlink",
    "name": "1p.io Shortlink API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tuanpmt/1p-shortlink",
    "canonicalUrl": "https://clawhub.ai/tuanpmt/1p-shortlink",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/1p-shortlink",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=1p-shortlink",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/1p-shortlink"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/1p-shortlink",
    "agentPageUrl": "https://openagent3.xyz/skills/1p-shortlink/agent",
    "manifestUrl": "https://openagent3.xyz/skills/1p-shortlink/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/1p-shortlink/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "When to use",
        "body": "User asks to shorten a link\nYou are about to send user a URL longer than 80 characters\nYou want to share a clean, memorable link\nYou want to suggest or vote on new features"
      },
      {
        "title": "Option A: Register with owner email (auto-approved)",
        "body": "POST https://1p.io/api/register\n{\"owner_email\": \"...\", \"instance_id\": \"...\", \"instance_name\": \"...\"}\n\n→ Returns api_key immediately. Sends OTP email to owner."
      },
      {
        "title": "Option B: Join existing org (requires approval)",
        "body": "POST https://1p.io/api/register\n{\"organization_id\": \"org-uuid\", \"instance_id\": \"...\", \"instance_name\": \"...\"}\n\n→ Returns 202 {status: \"pending_approval\"}. Owner receives email notification.\n→ Owner approves via dashboard or email magic link.\n→ After approval, agent can re-call register to get api_key.\n\nNote: Use either owner_email OR organization_id, not both."
      },
      {
        "title": "Verify (ask owner for OTP)",
        "body": "POST https://1p.io/api/verify\nAuthorization: Bearer <api_key>\n{\"otp\": \"123456\"}"
      },
      {
        "title": "Create link",
        "body": "POST https://1p.io/api/shorten\nAuthorization: Bearer <api_key>\n{\"url\": \"https://...\"}\n\nOptional fields:\n{\"url\": \"https://...\", \"slug\": \"my-slug\", \"description\": \"Project demo link\", \"password\": \"secret123\", \"ttl\": \"7d\"}\n\nTTL options: \"1h\", \"24h\", \"7d\", \"30d\" or use \"expiresAt\": \"2026-12-31T23:59:59Z\"\nPassword: link visitors must enter password to access the target URL\n\n→ Returns: {\"shortUrl\": \"https://1p.io/xxx\", \"slug\": \"xxx\", \"originalUrl\": \"...\", \"expiresAt\": \"...\", \"hasPassword\": true}"
      },
      {
        "title": "Slug constraints",
        "body": "Custom slugs: minimum 8 characters (1-7 chars reserved for admin)\nAllowed characters: a-z, A-Z, 0-9, hyphen\nMax length: 50 characters\nIf no slug provided, auto-generates 6-char slug"
      },
      {
        "title": "Limits",
        "body": "Unverified: 10/day\nVerified: 1000/day"
      },
      {
        "title": "Check status",
        "body": "GET https://1p.io/api/agent/me\nAuthorization: Bearer <api_key>\n\nReturns your API key info, org, agent profile, daily limits, and usage."
      },
      {
        "title": "List links",
        "body": "GET https://1p.io/api/agent/links?limit=20&search=keyword\nAuthorization: Bearer <api_key>\n\nLists all short links in your organization. Supports pagination (nextToken) and search."
      },
      {
        "title": "Get link detail",
        "body": "GET https://1p.io/api/agent/links/{slug}\nAuthorization: Bearer <api_key>\n\nReturns full detail including clickCount, lastClickAt, expiresAt, hasPassword."
      },
      {
        "title": "Delete link",
        "body": "DELETE https://1p.io/api/agent/links/{slug}\nAuthorization: Bearer <api_key>\n\nDeletes a short link. Only links in your organization can be deleted."
      },
      {
        "title": "Recovery",
        "body": "POST https://1p.io/api/recover\n{\"email\": \"owner@example.com\"}"
      },
      {
        "title": "MCP Tools (via /api/mcp)",
        "body": "Authenticated agents get 4 tools: create_shortlink, list_links, get_link_info, delete_link.\nGuest mode: only create_shortlink (3/day)."
      },
      {
        "title": "Feature Requests (org-scoped)",
        "body": "All features are scoped to your organization. You only see features from agents in the same org."
      },
      {
        "title": "Submit feature request",
        "body": "POST https://1p.io/api/features\nAuthorization: Bearer <api_key>\n{\"title\": \"max 100 chars\", \"description\": \"max 1000 chars\", \"useCase\": \"optional, max 500 chars\"}\nLimit: 5/day. organizationId auto-populated from your API key."
      },
      {
        "title": "Browse org features",
        "body": "GET https://1p.io/api/features?sort=votes&limit=20\nAuthorization: Bearer <api_key>"
      },
      {
        "title": "My submitted features",
        "body": "GET https://1p.io/api/features/mine\nAuthorization: Bearer <api_key>"
      },
      {
        "title": "Get feature detail",
        "body": "GET https://1p.io/api/features/{id}\nAuthorization: Bearer <api_key>"
      },
      {
        "title": "Vote for a feature",
        "body": "POST https://1p.io/api/features/{id}/vote\nAuthorization: Bearer <api_key>\nLimit: 50/day. Cannot vote on own. Idempotent. Same org only."
      },
      {
        "title": "Remove vote",
        "body": "DELETE https://1p.io/api/features/{id}/vote\nAuthorization: Bearer <api_key>"
      },
      {
        "title": "Update feature status (requires \"Can edit\" permission)",
        "body": "PATCH https://1p.io/api/features/{id}\nAuthorization: Bearer <api_key>\n{\"status\": \"in-progress\"}\n\nOptional: {\"status\": \"done\", \"releaseNote\": \"Implemented in v2.1\"}\n\nOrg owner must enable \"Can edit\" permission for this agent in dashboard."
      },
      {
        "title": "Status values",
        "body": "pending, approved, in-progress, done, rejected"
      }
    ],
    "body": "1p.io API\nWhen to use\nUser asks to shorten a link\nYou are about to send user a URL longer than 80 characters\nYou want to share a clean, memorable link\nYou want to suggest or vote on new features\nRegister (first time)\nOption A: Register with owner email (auto-approved)\n\nPOST https://1p.io/api/register {\"owner_email\": \"...\", \"instance_id\": \"...\", \"instance_name\": \"...\"}\n\n→ Returns api_key immediately. Sends OTP email to owner.\n\nOption B: Join existing org (requires approval)\n\nPOST https://1p.io/api/register {\"organization_id\": \"org-uuid\", \"instance_id\": \"...\", \"instance_name\": \"...\"}\n\n→ 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.\n\nNote: Use either owner_email OR organization_id, not both.\n\nVerify (ask owner for OTP)\n\nPOST https://1p.io/api/verify Authorization: Bearer <api_key> {\"otp\": \"123456\"}\n\nCreate link\n\nPOST https://1p.io/api/shorten Authorization: Bearer <api_key> {\"url\": \"https://...\"}\n\nOptional fields: {\"url\": \"https://...\", \"slug\": \"my-slug\", \"description\": \"Project demo link\", \"password\": \"secret123\", \"ttl\": \"7d\"}\n\nTTL options: \"1h\", \"24h\", \"7d\", \"30d\" or use \"expiresAt\": \"2026-12-31T23:59:59Z\" Password: link visitors must enter password to access the target URL\n\n→ Returns: {\"shortUrl\": \"https://1p.io/xxx\", \"slug\": \"xxx\", \"originalUrl\": \"...\", \"expiresAt\": \"...\", \"hasPassword\": true}\n\nSlug constraints\nCustom slugs: minimum 8 characters (1-7 chars reserved for admin)\nAllowed characters: a-z, A-Z, 0-9, hyphen\nMax length: 50 characters\nIf no slug provided, auto-generates 6-char slug\nLimits\nUnverified: 10/day\nVerified: 1000/day\nCheck status\n\nGET https://1p.io/api/agent/me Authorization: Bearer <api_key>\n\nReturns your API key info, org, agent profile, daily limits, and usage.\n\nList links\n\nGET https://1p.io/api/agent/links?limit=20&search=keyword Authorization: Bearer <api_key>\n\nLists all short links in your organization. Supports pagination (nextToken) and search.\n\nGet link detail\n\nGET https://1p.io/api/agent/links/{slug} Authorization: Bearer <api_key>\n\nReturns full detail including clickCount, lastClickAt, expiresAt, hasPassword.\n\nDelete link\n\nDELETE https://1p.io/api/agent/links/{slug} Authorization: Bearer <api_key>\n\nDeletes a short link. Only links in your organization can be deleted.\n\nRecovery\n\nPOST https://1p.io/api/recover {\"email\": \"owner@example.com\"}\n\nMCP Tools (via /api/mcp)\n\nAuthenticated agents get 4 tools: create_shortlink, list_links, get_link_info, delete_link. Guest mode: only create_shortlink (3/day).\n\nFeature Requests (org-scoped)\n\nAll features are scoped to your organization. You only see features from agents in the same org.\n\nSubmit feature request\n\nPOST https://1p.io/api/features Authorization: Bearer <api_key> {\"title\": \"max 100 chars\", \"description\": \"max 1000 chars\", \"useCase\": \"optional, max 500 chars\"} Limit: 5/day. organizationId auto-populated from your API key.\n\nBrowse org features\n\nGET https://1p.io/api/features?sort=votes&limit=20 Authorization: Bearer <api_key>\n\nMy submitted features\n\nGET https://1p.io/api/features/mine Authorization: Bearer <api_key>\n\nGet feature detail\n\nGET https://1p.io/api/features/{id} Authorization: Bearer <api_key>\n\nVote for a feature\n\nPOST https://1p.io/api/features/{id}/vote Authorization: Bearer <api_key> Limit: 50/day. Cannot vote on own. Idempotent. Same org only.\n\nRemove vote\n\nDELETE https://1p.io/api/features/{id}/vote Authorization: Bearer <api_key>\n\nUpdate feature status (requires \"Can edit\" permission)\n\nPATCH https://1p.io/api/features/{id} Authorization: Bearer <api_key> {\"status\": \"in-progress\"}\n\nOptional: {\"status\": \"done\", \"releaseNote\": \"Implemented in v2.1\"}\n\nOrg owner must enable \"Can edit\" permission for this agent in dashboard.\n\nStatus values\n\npending, approved, in-progress, done, rejected"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/tuanpmt/1p-shortlink",
    "publisherUrl": "https://clawhub.ai/tuanpmt/1p-shortlink",
    "owner": "tuanpmt",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/1p-shortlink",
    "downloadUrl": "https://openagent3.xyz/downloads/1p-shortlink",
    "agentUrl": "https://openagent3.xyz/skills/1p-shortlink/agent",
    "manifestUrl": "https://openagent3.xyz/skills/1p-shortlink/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/1p-shortlink/agent.md"
  }
}