# Read a sign-in attempt, waiting for the website

> Read the current website sign-in step, with optional long polling.

Source: https://docs.fous.com/api-reference/getConnectionAttempt

`GET /v1/connections/attempts/{attempt_id}`

Authentication: `Authorization: Bearer $FOUS_API_KEY`.

## Path parameters

- `attempt_id` (string, required)

## Query parameters

- `wait` (integer): Seconds to wait while the attempt is working. Default 0.

## Response 200

Success

- `success` (true, required)
- `data` (ConnectionAttempt, required): One sign-in, step by step. challenge: the website asks for something, described in form; submit the answers. working: wait. verified: confirm it. ready: the account is connected. failed: notice says why, can_retry whether another method can be tried.

## Errors

Every error uses the Error schema: branch on `error.code`. Codes are listed at https://docs.fous.com/guides/errors.

- 400
- 401 (headers: WWW-Authenticate)
- 402
- 403
- 404
- 408
- 409
- 410
- 413
- 422
- 429 (headers: Retry-After)
- 500
- 502
- 503 (headers: Retry-After)
- 504

## Example request

```bash
curl 'https://api.fous.com/v1/connections/attempts/{attempt_id}?wait=60' \
  -H "Authorization: Bearer $FOUS_API_KEY"
```
