---
search:
  tags:
    - Connected accounts
    - POST
seo:
  description: >-
    Record the connected account once consent has finished,… Reference for the
    POST /api/v2/connections/sessions/{sessionId}/complete endpoint in the
    Anlyon API.
sidebar:
  label: Complete a connect session
  badge: POST
title: Complete a connect session
type: openapi-operation
---
Record the connected account once consent has finished, as a secret of kind `connection` bound to the integration's hosts. Pass the `reference` the consent window reported. Without it the call answers `status: pending` until Anlyon has been told the consent finished, so a client can poll. Idempotent: completing twice returns the same secret.

`POST /api/v2/connections/sessions/{sessionId}/complete`
