OpenParable
Skip to content
← Back to skills

Front Id Converter

Apps & Automation
front-id-converter

Front Id Converter is an Agent Skill for apps & automation published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/front-id-converter/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/front-id-converter, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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

PrefixResource
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 [PHONE] → inb_4bj7r
urlToApiId([PHONE], 'inb_') // => "inb_4bj7r"

API ID to URL

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

// Example: inb_4bj7r → [PHONE]
apiIdToUrl('inb_4bj7r') // => [PHONE]

Quick Bash Conversion

# URL ID to API ID (requires node)
node -e "console.log('inb_' + ([PHONE]).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/[PHONE]/unassigned/[PHONE]

  • Inbox ID: [PHONE] → inb_4bj7r
  • Conversation ID: [PHONE] → 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.