v3 · Endpoints
POST /v3/sessions
Start connecting a person's own account on a site, with their phone or email. The site sends them a code; you send it to the continue route.
POST
/v3/sessionsScope: v3:bookLimit: 10 per 5 minutes, shared with POST /v3/bookings
How connected accounts work: Use a person's own account. Ophelia never types a password and never creates an account.
Request
FieldTypeDefaultRule
sitestring
none
The website, as a host or a URL.
url is accepted too. None → 400 no_site.end_userstring
none
Required. Your own id for the person. None →
400 end_user_required.profile.phonestring
none
E.164 (
+15551234567) or a 10-digit US number. Anything else → 400 phone_invalid.profile.emailstring
none
Used when there is no phone. Neither →
400 phone_or_email_required.profile.given_namestring
none
The person’s given name.
Response
A session object (vss_). Its site is the host. The call waits for the site's answer; when the site sends a code, status is requires_action with next_action: {"type": "otp", "expires_at"}.
Statuses and error codes
HTTPStatus / error codeWhen
201
requires_actionThe site sent a code. Send it to
POST /v3/sessions/{session_id}/continue.201
activeThe site signed the person in.
201
failed + error_codeThe site did not sign them in (
password_required, account_required, otp_not_sent, a site's bot wall, …). The failed connect is still answered with 201 and the session object.202
connectingStill going. Read
GET /v3/sessions/{session_id}.400
end_user_required, phone_or_email_required, phone_invalidThe request is missing or misstates who to connect.
400
no_site, unresolvable_site, private_addressThe
site cannot be driven.403
merchant_not_enabled_for_keyThe key is not enabled for this site. The body adds
merchant and allowed_sites.409
continue_in_flightAnother connect for the same person and site started at the same moment and has already ended. Read
GET /v3/sessions/{session_id}.503
drive_capacity, no_clean_exitOphelia cannot start the drive right now.
Retry-After: 60.503
sessions_unavailableConnected accounts are not enabled on this deployment.
Errors on these routes answer {"error_code", "error"}. Every code: Statuses and error codes.
Example
Response 201: