Get the freee connection.
GET/api/v1/freee-connectionconnectors:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Whether the organisation is connected to freee, for which product and company and with which scopes, whether you may send employee data, the operator's switch for it, and the freee company approved to receive employee data (approving it is a Portal action). Always answers: is_connected false when there is no connection. Needs View Freee Connection.
| スコープ | connectors:read (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | get_freee_connection |
| Portal の権限 | view_freee_connection |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json FreeeConnection |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
FreeeConnection
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
can_send_employees | boolean | 必須 | You hold Submit Freee Employee Transfers, which sending employee data needs. |
destination | FreeeDestination または null | 必須 | The freee company approved to receive employee data. Approving and revoking are done in the Portal; null when none is approved. |
freee_company_id | string または null | 必須 | |
freee_company_name | string または null | 必須 | |
freee_company_role | string または null | 必須 | The connecting user's role in the freee company. |
has_write_scope | boolean | 必須 | The connection may write employees (hr:employees:write). |
is_connected | boolean | 必須 | |
is_employee_creation_enabled | boolean | 必須 | The operator's switch for creating employees in freee for this organisation; on unless an operator switched it off. |
product | string または null | 必須 | accounting or hr: what the connection was authorised for; null when not connected. |
scope | string または null | 必須 | The scopes freee granted, space separated. |
FreeeDestination
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
approved_at | string (date-time) | 必須 | |
approved_by | UserRef | 必須 | |
consent_version | integer または null | 必須 | The version of the opt-in wording the approver agreed to; null when approved before versioning. |
freee_company_id | string | 必須 | |
freee_company_name | string | 必須 |
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |