---
title: "Finish connector login"
method: POST
path: "/api/connectors/login/{loginId}/finish"
---

# Finish connector login

`POST /api/connectors/login/{loginId}/finish`

## Request

- Base URL: `https://reduck.ai`
- URL: `https://reduck.ai/api/connectors/login/{loginId}/finish`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

End a sign-in now instead of waiting out its window: harvest whatever cookies are there, store them, release the browser. Returns the final state. A sign-in also ends on its own when the person is done or the window closes, so this is only a shortcut.

## Path parameters

- `loginId` string, required

## Response `200`

OK

- object
  - `loginId` string, required
  - `status` 'waiting' | 'stored' | 'done' | 'failed', required
  - `loginUrl` string, required
  - `hosts` ConnectorLoginHost[], required
    - `host` string, required
    - `cookies` number, required: Cookies stored for this site; 0 until the sign-in lands.
    - `stored` boolean, required
  - `pageUrl` string: Where the browser stands, so the page can say whether the sign-in has moved.
  - `expiresAt` string, required
  - `error` string: Why nothing more will happen, when something went wrong.
  - `credential` ConnectorLoginCredential
    - `username` string
    - `password` string
  - `profile` string: The end-user profile the connectors are stored into; absent for your own account.
  - `label` string: The label of the connector the sign-in stores into, when it was given one.

## Other responses

- `400`: Invalid request
- `401`: Not authenticated
- `403`: Forbidden
- `404`: No such sign-in on this account.

---

[API](https://skmtc.dev/reduck/apis/reduck-api.md) · [All operations](https://skmtc.dev/reduck/apis/reduck-api/llms.txt) · [OpenAPI document](https://skmtc.dev/reduck/apis/reduck-api/revisions/a573b91206d6?raw)
