All skills
freee avatar

/freee-api-skill

@f5d1212
by freeefreee/freee-mcp503 stars
58

freee-mcp / freee-sign-mcp と連携するスキル。会計・人事労務・請求書・工数管理・販売・IT管理・固定資産・業務委託管理・サーベイ・開業・人事評価・申告・サイン(電子契約)の詳細APIリファレンスと使い方ガイドを提供。freee の経費申請・取引登録・勤怠打刻・給与明細・見積書・試算表・仕訳・従業員管理・工数登録・売上管理・SaaSアカウント管理・備品管理・固定資産管理・業務委託先の企業ユーザー/部門管理・サーベイ企画/実施回の取得・開業申請用データの参照/更新・人事評価結果の取得・法人税申告データや帳票の参照・電子契約の文書管理などの操作やAPI仕様を調べたいときに使う。ユーザーが freee のデータ操作、会計処理、人事労務管理、請求・見積、プロジェクト工数管理、販売管理、IT管理、固定資産管理、業務委託管理、サーベイ、開業、人事評価、申告、電子契約について質問や操作を依頼してきた場合は、明示的に freee と言及していなくても、このスキルの利用を検討すること。サインは別途 freee-sign-mcp の設定が必要。

Use this Skill: https://skilld.dev/gh/freee/freee-mcp/freee-api-skill

This session only. Nothing lands on disk.

referencesaccounting-approval-requests.md

≈3.3k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Approval requests

各種申請

GET /api/1/approval_requests — 各種申請一覧の取得

概要 指定した事業所の各種申請一覧を取得する 各種申請APIの使い方については、 freee会計の各種申請APIの使い方 をご参照ください

注意点 本APIでは、各種申請一覧を取得することができます。 申請フォームの項目に契約書(freeeサイン連携)が利用されている各種申請については、API経由で参照は可能ですが、作成と更新ができません。

パラメータ

  • company_id*: integer(int64) - 事業所ID
  • status: string - 申請ステータス(draft:下書き, in_progress:申請中, approved:承認済, rejected:却下, feedback:差戻し) 承認者指定時には無効です。 (選択肢: draft, in_progress, approved, rejected, feedback)
  • application_number: integer(int64) - 申請No.
  • title: string - 申請タイトル
  • form_id: integer(int64) - 申請フォームID
  • start_application_date: string - 申請日で絞込:開始日(yyyy-mm-dd)
  • end_application_date: string - 申請日で絞込:終了日(yyyy-mm-dd)
  • applicant_id: integer(int64) - 申請者のユーザーID
  • min_amount: integer(int64) - 金額で絞込:以上
  • max_amount: integer(int64) - 金額で絞込:以下
  • approver_id: integer(int64) - 承認者のユーザーID 承認者指定時には申請ステータスが申請中のものだけが取得可能です。
  • offset: integer(int64) - 取得レコードのオフセット (デフォルト: 0)
  • limit: integer(int64) - 取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 500)

レスポンス

  • approval_requests*: array[object]

POST /api/1/approval_requests — 各種申請の作成

概要 指定した事業所の各種申請を作成する 各種申請APIの使い方については、 freee会計の各種申請APIの使い方 をご参照ください

注意点 本APIでは、各種申請を作成することができます。 申請項目(request_items)については、申請フォームで設定された項目のIDとそれに対応する値を入力してください。 タイトル(title):文字列(必須項目, 255文字まで, 改行なし) 例)予算申請 1行コメント(single_line):文字列(255文字まで, 改行なし) 例)予算に関する申請 複数行コメント(multi_line):文字列(1000文字まで, 改行あり)   例)   予算に関する申請   申請日 2019-12-17 プルダウン(select): プルダウンの選択肢の名前(改行なし) 例)開発部 複数選択(checkbox): 選択肢名の JSON 配列文字列 例)["関東","九州"] 日付(date): 日付形式 例)2019-12-17 金額(amount): 数値(申請フォームで設定した上限・...

リクエストボディ

  • company_id*: integer(int64) - 事業所ID 例: 1 (最小: 1)

  • application_date: string - 申請日 (yyyy-mm-dd)

    指定しない場合は当日の日付が登録されます。 例: 2019-12-17

  • approval_flow_route_id*: integer(int64) - 申請経路ID 例: 1 (最小: 1)

  • form_id*: integer(int64) - 申請フォームID 例: 1 (最小: 1)

  • approver_id: integer(int64) - 承認者のユーザーID 例: 1 (最小: 1)

  • applicant_group_id: integer(int64) - 申請者の所属部門ID

    「部門役職」の承認ステップを含む申請経路で、申請者がどの所属部門として申請するかを指定します。

    申請者が複数の部門に所属している場合は必須です。省略すると400エラーになります。

    申請者の所属部門が1つだけの場合は、省略するとその部門が採用されます。 例: 1 (最小: 1)

  • approval_flow_group_id: integer(int64) - 申請経路の承認部門ID

    1段階目の承認ステップが部門選択型の場合に、承認させる部門を指定してください。 例: 1 (最小: 1)

  • draft*: boolean - 各種申請のステータス

    falseを指定した時は申請中(in_progress)で各種申請を作成します。

    trueを指定した時は下書き(draft)で各種申請を作成します。 例: true

  • parent_id: integer(int64) - 親申請ID(既存各種申請IDのみ指定可能です。) 例: 2 (最小: 1)

  • request_items*: array[object] 配列の要素:

    • id: integer(int64) - 項目ID 例: 1 (最小: 1)
    • type: string - 項目タイプ(title: 申請タイトル, single_line: 自由記述形式 1行, multi_line: 自由記述形式 複数行, select: プルダウン, checkbox: 複数選択, date: 日付, amount: 金額, receipt: 添付ファイル, section: 部門ID, partner: 取引先ID) (選択肢: title, single_line, multi_line, select, checkbox, date, amount, receipt, section, partner)
    • value: string - 項目の値 例: 申請理由

レスポンス

  • approval_request*: object

GET /api/1/approval_requests/{id} — 各種申請の取得

概要 指定した事業所の各種申請を取得する 各種申請APIの使い方については、 freee会計の各種申請APIの使い方 をご参照ください

注意点 申請フォームの項目に契約書(freeeサイン連携)が利用されている各種申請については、API経由で参照は可能ですが、作成と更新ができません。

パラメータ

  • id* (path): integer(int64) - 各種申請ID
  • company_id*: integer(int64) - 事業所ID

レスポンス

POST /api/1/approval_requests と同じ

PUT /api/1/approval_requests/{id} — 各種申請の更新

概要 指定した事業所の各種申請を更新する 各種申請APIの使い方については、 freee会計の各種申請APIの使い方 をご参照ください

注意点 本APIでは、各種申請を更新することができます。 申請項目(request_items)については、各種申請の取得APIで取得したrequest_items.idとそれに対応する値を入力してください。 タイトル(title):文字列(必須項目, 255文字まで, 改行なし) 例)予算申請 1行コメント(single_line):文字列(255文字まで, 改行なし) 例)予算に関する申請 複数行コメント(multi_line):文字列(1000文字まで, 改行あり)   例)   予算に関する申請   申請日 2019-12-17 プルダウン(select): プルダウンの選択肢の名前(改行なし) 例)開発部 複数選択(checkbox): 選択肢名の JSON 配列文字列 例)["関東","九州"] 日付(date): 日付形式 例)2019-12-17 金額(amount): 数値(...

パラメータ

  • id* (path): integer(int64) - 各種申請ID

リクエストボディ*

  • company_id*: integer(int64) - 事業所ID 例: 1 (最小: 1)

  • application_date: string - 申請日 (yyyy-mm-dd)

    指定しない場合は当日の日付が登録されます。 例: 2019-12-17

  • approval_flow_route_id*: integer(int64) - 申請経路ID 例: 1 (最小: 1)

  • approver_id: integer(int64) - 承認者のユーザーID 例: 1 (最小: 1)

  • applicant_group_id: integer(int64) - 申請者の所属部門ID

    「部門役職」の承認ステップを含む申請経路で、申請者がどの所属部門として申請するかを指定します。

    申請者が複数の部門に所属している場合は必須です。省略すると400エラーになります。

    申請者の所属部門が1つだけの場合は、省略するとその部門が採用されます。 例: 1 (最小: 1)

  • approval_flow_group_id: integer(int64) - 申請経路の承認部門ID

    1段階目の承認ステップが部門選択型の場合に、承認させる部門を指定してください。 例: 1 (最小: 1)

  • draft*: boolean - 各種申請のステータス

    falseを指定した時は申請中(in_progress)で各種申請を更新します。

    trueを指定した時は下書き(draft)で各種申請を更新します。 例: true

  • request_items*: array[object] 配列の要素:

    • id: integer(int64) - 項目ID 例: 1 (最小: 1)
    • type: string - 項目タイプ(title: 申請タイトル, single_line: 自由記述形式 1行, multi_line: 自由記述形式 複数行, select: プルダウン, checkbox: 複数選択, date: 日付, amount: 金額, receipt: 添付ファイル, section: 部門ID, partner: 取引先ID) (選択肢: title, single_line, multi_line, select, checkbox, date, amount, receipt, section, partner)
    • value: string - 項目の値 例: 申請理由

レスポンス

POST /api/1/approval_requests と同じ

DELETE /api/1/approval_requests/{id} — 各種申請の削除

概要 指定した事業所の各種申請を削除する 各種申請APIの使い方については、 freee会計の各種申請APIの使い方 をご参照ください

注意点 申請ステータス(下書き、申請中)の指定と変更、及び承認操作(承認する、却下する、申請者へ差し戻す、特権承認する、承認済み・却下済みを取り消す)は以下を参考にして行ってください。 承認操作は申請ステータスが申請中、承認済み、却下のものだけが対象です。 初回申請の場合 申請の作成(POST) 作成済みの申請の申請ステータス変更・更新する場合 申請の更新(PUT) 申請中、承認済み、却下の申請の承認操作を行う場合 承認操作の実行(POST) 申請の削除(DELETE)が可能なのは申請ステータスが下書き、差戻しの場合のみです

パラメータ

GET /api/1/approval_requests/{id} と同じ

POST /api/1/approval_requests/{id}/actions — 各種申請の承認操作

概要 指定した事業所の各種申請の承認操作を行う 各種申請APIの使い方については、 freee会計の各種申請APIの使い方 をご参照ください

注意点 本APIでは、各種申請の承認操作(承認する、却下する、申請者へ差し戻す、特権承認する、承認済み・却下済みを取り消す)を行うことができます。 申請ステータス(下書き、申請中)の指定と変更、及び承認操作(承認する、却下する、申請者へ差し戻す、特権承認する、承認済み・却下済みを取り消す)は以下を参考にして行ってください。 承認操作は申請ステータスが申請中、承認済み、却下のものだけが対象です。 初回申請の場合 申請の作成(POST) 作成済みの申請の申請ステータス変更・更新する場合 申請の更新(PUT) 申請中、承認済み、却下の申請の承認操作を行う場合 承認操作の実行(POST) 申請の削除(DELETE)が可能なのは申請ステータスが下書き、差戻しの場合のみです 承認者の指定に部門役職データ連携を活用した、以下のいずれかの承認ステップを含む申請経路にも対応しています。 役職指定(申請者の所属部門) 役職指定(申請時に部門指定) 部門および役職指定...

パラメータ

PUT /api/1/approval_requests/{id} と同じ

リクエストボディ*

  • company_id*: integer(int64) - 事業所ID 例: 1 (最小: 1)

  • approval_action*: string - 操作(approve: 承認する、force_approve: 特権承認する、cancel: 申請を取り消す、reject: 却下する、feedback: 申請者へ差し戻す、force_feedback: 承認済み・却下済みを取り消す) (選択肢: approve, force_approve, cancel, reject, feedback, force_feedback) 例: approve

  • target_step_id*: integer(int64) - 対象承認ステップID 各種申請の取得APIレスポンス.current_step_idを送信してください。 例: 1 (最小: 1)

  • target_round*: integer - 対象round。差し戻し等により申請がstepの最初からやり直しになるとroundの値が増えます。各種申請の取得APIレスポンス.current_roundを送信してください。 例: 1 (最小: 0, 最大: 2147483647)

  • next_approver_id: integer(int64) - 次ステップの承認者のユーザーID 例: 1 (最小: 1)

  • next_group_id: integer(int64) - 次ステップの承認部門ID

    次の承認ステップが部門選択型の場合に、承認させる部門を指定してください。 例: 1 (最小: 1)

レスポンス

POST /api/1/approval_requests と同じ

GET /api/1/approval_requests/forms — 各種申請の申請フォーム一覧の取得

概要 指定した事業所の各種申請の申請フォーム一覧を取得する 各種申請APIの使い方については、 freee会計の各種申請APIの使い方 をご参照ください

パラメータ

  • company_id*: integer(int64) - 事業所ID

レスポンス

  • approval_request_forms*: array[object]

GET /api/1/approval_requests/forms/{id} — 各種申請の申請フォームの取得

概要 指定した事業所の各種申請の申請フォームを取得する 各種申請APIの使い方については、 freee会計の各種申請APIの使い方 をご参照ください

パラメータ

  • id* (path): integer(int64) - 申請フォームID
  • company_id*: integer(int64) - 事業所ID

レスポンス

  • approval_request_form*: object

Source: SKILL.md on GitHub

1 warningtoday5 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill provides a comprehensive interface for AI agents to interact with the freee suite of APIs (Accounting, HR, Invoices, IT Management, etc.) via the Model Context Protocol (MCP). It includes exhaustive documentation, usage recipes, and security-conscious guidelines that instruct the agent to treat all retrieved financial and tax data as information rather than executable commands.

  • Sockettoday

    No alerts

  • Snyktoday

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    3/83 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f5d1212. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 3 weeks ago
metadata
{
  "author": "freee_jp",
  "homepage": "https://github.com/freee/freee-mcp"
}
  • API
  • MCP
  • freee
  • accounting
  • hr
  • invoicing
  • project-management
  • expense-tracking
  • payroll

README badge

README badge for freee/freee-mcp

Provides detailed API reference and usage guides for freee's accounting, HR, invoicing, project management, sales, and IT management services through the freee-mcp MCP server. Use this skill when you need to query or perform operations on freee data like expense reports, transactions, employee records, timesheets, invoices, or project hours.

Generated from the current SKILL.md.

Does this skill work with both Remote MCP and local setup?
Yes. The skill supports Remote MCP (recommended, auto-authenticated via browser) and local MCP server setup (requires running `npx freee-mcp configure`). Use `freee_server_info` to check which transport mode is active.
Which freee products does this skill cover?
The skill covers accounting, HR/payroll, invoicing, project time tracking, sales management, IT management, and expense applications. Signing (electronic contracts) requires a separate `freee-sign-mcp` setup.
Do I need to specify a company ID for API calls?
Yes. You must first fetch the current company ID using `freee_get_current_company`, and it must match the company you want to operate on. Use `freee_set_current_company` to switch between companies before making API calls.
What should I do if I get an authentication error?
For Remote MCP, the client will prompt for re-authentication; if that fails, remove and re-add the custom connector. For local mode, use `freee_auth_status` to check status, then run `freee_clear_auth` followed by `freee_authenticate`.
Where do I find API details and usage examples?
The skill includes `recipes/` for common workflows (expense applications, deals, payroll, invoicing, etc.) and `references/` with detailed API parameters and response specs. Start with relevant recipes before consulting references.

Generated from the current SKILL.md. These answers refresh after source changes.