搜索

PythonReactSEOPDF
GitHub Skill

front-id-converter

Convert between Front URL IDs (base-10) and API IDs (base-36 with prefix). Use when working with Front inbox, conversation, or message IDs.

skillrecordings☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Front ID Converter Skill

Convert between Front URL IDs (base-10) and API IDs (base-36 with prefix).

Conversion Rules

Front API IDs are created by:

  1. Converting the numeric URL ID (base-10) to base-36
  2. Adding a resource prefix

Resource Prefixes

Prefix Resource
inb_ Inboxes
cnv_ Conversations
tag_ Tags
msg_ Messages
tea_ Teammates
rul_ Rules
cmt_ Comments
alt_ Attachments
cha_ Channels
ctc_ Contacts
grp_ Contact Groups
shf_ Shifts
sig_ Signatures
tmr_ Message Template Folders
tmp_ Message Templates

URL to API ID

function urlToApiId(urlId: number, prefix: string): string {
  return `${prefix}${urlId.toString(36)}`
}

// Example: Inbox 7256583 → inb_4bj7r
urlToApiId(7256583, 'inb_') // => "inb_4bj7r"

API ID to URL

function apiIdToUrl(apiId: string): number {
  const base36 = apiId.split('_')[1]
  return parseInt(base36, 36)
}

// Example: inb_4bj7r → 7256583
apiIdToUrl('inb_4bj7r') // => 7256583

Quick Bash Conversion

# URL ID to API ID (requires node)
node -e "console.log('inb_' + (7256583).toString(36))"

# API ID to URL ID
node -e "console.log(parseInt('4bj7r', 36))"

Common Use Cases

From Front URL

Given: https://app.frontapp.com/inboxes/teams/folders/7256583/unassigned/120537545061

  • Inbox ID: 7256583 → inb_4bj7r
  • Conversation ID: 120537545061 → cnv_1z2x3y4z (calculate as needed)
Validating API Responses

When Front API returns an ID like inb_4bj7r, you can verify it matches the expected inbox by converting back to the URL ID.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!