Skip to main content

Create the freee connect URL.

POST/api/v1/freee-connection/create-connect-urlconnectors:write

Returns the freee authorise URL for product accounting (the default) or hr. Open it in a browser signed in to the Portal as the same user and approve on freee; the connection is made when freee returns to the Portal, and the one-time state expires after 15 minutes. Connecting does not approve the destination for employee data: that is done in the Portal. Needs Connect Freee.

Scopeconnectors:write (sensitive)
AsynchronousNo
MCP toolcreate_freee_connection_connect_url
Portal permissionsconnect_freee

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonFreeeConnectRequestInput

Responses​

StatusDescriptionBody
200Success.application/json FreeeConnectURL or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

FreeeConnectRequestInput​

FieldTypeRequiredDescription
productstring or nullOptionalaccounting (the default) or hr: what to authorise freee for. Employee data needs hr.

FreeeConnectURL​

FieldTypeRequiredDescription
authorize_urlstringRequired
expires_in_secondsintegerRequired≥ -2147483648; ≤ 2147483647
next_stepstringRequired