OpheliaDocs
Search docs⌘K
DashboardCreate an account
v3 · Endpoints

POST /v3/sessions/{session_id}/continue

Send the code the site sent the person, to finish connecting their account.

POST/v3/sessions/{session_id}/continue

More in Use a person's own account.

Request

FieldTypeDefaultRule
session_id
path
none
The vss_ id from POST /v3/sessions.
code
string
none
Required. The code the site sent. otp_code is accepted as the same field. Empty → 400 code_required.

Response

The session object. Once connected: status: "active", account.name (how the site greets the person), connected_at, and expires_at: when the site's own sign-in expires (30 days on the practice site).

Statuses and error codes

HTTPStatus / error codeWhen
200
active
The site took the code. Bookings can now sign in as the person.
200
failed + otp_invalid
The site did not take the code. A connect does not ask again: start a new one.
200
failed + attempt_expired
The code came after next_action.expires_at.
200
failed + another code
password_required, account_required, otp_not_sent, session_verification_required, internal (signed in, and Ophelia could not keep the account: connect again), a site's bot wall, …
202
connecting
Still going. Read GET /v3/sessions/{session_id}.
400
code_required
No code.
404
session_not_found
No connected account with that id in your organization.
409
not_awaiting_code, continue_in_flight
The connected account is not waiting for a code, or another continue is typing one. Read GET /v3/sessions/{session_id}.
503
drive_capacity, no_clean_exit
Ophelia cannot start the drive right now. Retry-After: 60.

Example

curl
curl -X POST https://api.opheliaos.com/v3/sessions/vss_f1fc8f70c5abb973eeeea519/continue \
-H "Authorization: Bearer YOUR_TEST_KEY" \
-H "Content-Type: application/json" \
-d '{ "code": "246810" }'

Response 200:

json
{
"object": "v3.session",
"id": "vss_f1fc8f70c5abb973eeeea519",
"site": "opheliapractice.com",
"end_user": "u_jane_1",
"status": "active",
"next_action": null,
"error_code": null,
"error": null,
"account": {
"name": "Guest"
},
"created_at": "2026-11-04T01:10:52.024898Z",
"connected_at": "2026-11-04T01:10:52.024898Z",
"expires_at": "2026-12-04T01:10:52Z"
}

A wrong code, response 200:

json
{
"object": "v3.session",
"id": "vss_02277e022d59980d465e1d7d",
"site": "opheliapractice.com",
"end_user": "u_jane_2",
"status": "failed",
"next_action": null,
"error_code": "otp_invalid",
"error": "the site did not accept that code: it asked for a code again",
"created_at": "2026-11-04T01:10:52.030996Z",
"connected_at": null,
"expires_at": null
}