API

ProjectRecording

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/recordings/{id}/finish create The recording, now drafting
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/recordings/{id}/redraft create The recording, drafting again
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/recordings create The recording, with its browser starting
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/recordings/{id} load The recording; only its creator can read it
DELETE /api/v1/organizations/{organization_id}/verification/projects/{project_id}/recordings/{id} remove The discarded recording

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

project_recording, err := client.ProjectRecording(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(project_recording)
created, err := client.ProjectRecording(nil).Create(map[string]any{"organization_id": "example", "project_id": "example", "environment_id": "example", "persona_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
removed, err := client.ProjectRecording(nil).Remove(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local project_recording, err = client:ProjectRecording():load({ id = "example_id", organization_id = "example", project_id = "example" })
local created, err = client:ProjectRecording():create({ organization_id = "example", project_id = "example", environment_id = "example", persona_id = "example" })
local removed, err = client:ProjectRecording():remove({ id = "example_id", organization_id = "example", project_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$project_recording = $client->ProjectRecording()->load(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$created = $client->ProjectRecording()->create(["organization_id" => "example", "project_id" => "example", "environment_id" => "example", "persona_id" => "example"]);
$client->ProjectRecording()->remove(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

project_recording = client.ProjectRecording().load({"id": "example_id", "organization_id": "example", "project_id": "example"})
created = client.ProjectRecording().create({ "organization_id": "example", "project_id": "example", "environment_id": "example", "persona_id": "example" })
client.ProjectRecording().remove({"id": "example_id", "organization_id": "example", "project_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

project_recording = client.ProjectRecording.load({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
created = client.ProjectRecording.create({ "organization_id" => "example", "project_id" => "example", "environment_id" => "example", "persona_id" => "example" })
client.ProjectRecording.remove({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const project_recording = await client.ProjectRecording().load({ id: "example_id", organization_id: "example", project_id: "example" })
const created = await client.ProjectRecording().create({ organization_id: "example", project_id: "example", environment_id: "example", persona_id: "example" })
await client.ProjectRecording().remove({ id: "example_id", organization_id: "example", project_id: "example" })

Fields

Field Type Required Description
browser object Yes Browser
created_at string Yes Created At
draft any Yes Present once drafted.
environment_id string Yes The project environment the browser opens.
error one,string,null Yes Error
event_count integer Yes Event Count
id string Yes Id
persona_id string Yes The project persona the journey acts as.
phase string Yes What the owner can do now.
signed_in_during_recording boolean Yes Signed In During Recording
start_path string No A path on the environment to start at, such as /settings.
status string Yes Status
updated_at string Yes Updated At

create

POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/recordings/{id}/finish

Operation ID: finish_api_v1_verification_project_recording.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
outcome_hint string No What shows the journey worked.

Responses

202: The recording, now drafting

application/json

Property Type Required Description
browser object Yes
browser.expires_at string (date-time) Yes
browser.origin string Yes
browser.status enum: pending, starting, ready, saved, closed, failed Yes
browser.viewer_url string,null Yes Creator-only bearer link while the browser is ready. Do not share.
created_at string (date-time) Yes
draft object or null Yes Present once drafted.
environment_id string Yes
error string,null Yes
event_count integer Yes
id string Yes
persona_id string Yes
phase enum: preparing, recording, saving, drafting, drafted, redraftable, ... Yes What the owner can do now. preparing: the browser is starting. recording: the browser takes input and the recording can be finished. saving: the lease ended and the journey is being saved. drafting: the draft is being written. drafted: the draft is ready. redraftable: the journey is saved and can be drafted again. ended: nothing more happens; start a new recording. drafted, redraftable and ended change only when the owner acts.
signed_in_during_recording boolean Yes
status enum: recording, drafting, drafted, failed, discarded, expired Yes
updated_at string (date-time) Yes
401: Not signed in
403: Only organization admins record
404: Recording is not enabled
422: Refused with code recording_unavailable (the recording browser ended) or invalid_recording

POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/recordings/{id}/redraft

Operation ID: redraft_api_v1_verification_project_recording.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

202: The recording, drafting again

application/json

Property Type Required Description
browser object Yes
browser.expires_at string (date-time) Yes
browser.origin string Yes
browser.status enum: pending, starting, ready, saved, closed, failed Yes
browser.viewer_url string,null Yes Creator-only bearer link while the browser is ready. Do not share.
created_at string (date-time) Yes
draft object or null Yes Present once drafted.
environment_id string Yes
error string,null Yes
event_count integer Yes
id string Yes
persona_id string Yes
phase enum: preparing, recording, saving, drafting, drafted, redraftable, ... Yes What the owner can do now. preparing: the browser is starting. recording: the browser takes input and the recording can be finished. saving: the lease ended and the journey is being saved. drafting: the draft is being written. drafted: the draft is ready. redraftable: the journey is saved and can be drafted again. ended: nothing more happens; start a new recording. drafted, redraftable and ended change only when the owner acts.
signed_in_during_recording boolean Yes
status enum: recording, drafting, drafted, failed, discarded, expired Yes
updated_at string (date-time) Yes
401: Not signed in
403: Only organization admins record
404: Recording is not enabled
422: Refused with code recording_not_redraftable or redraft_limit_reached

POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/recordings

Operation ID: api_v1_verification_project_recordings.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes

Request body

application/json

Property Type Required Description
environment_id string Yes The project environment the browser opens.
persona_id string Yes The project persona the journey acts as.
start_path string No A path on the environment to start at, such as /settings. Defaults to its address.

Responses

201: The recording, with its browser starting

application/json

Property Type Required Description
browser object Yes
browser.expires_at string (date-time) Yes
browser.origin string Yes
browser.status enum: pending, starting, ready, saved, closed, failed Yes
browser.viewer_url string,null Yes Creator-only bearer link while the browser is ready. Do not share.
created_at string (date-time) Yes
draft object or null Yes Present once drafted.
environment_id string Yes
error string,null Yes
event_count integer Yes
id string Yes
persona_id string Yes
phase enum: preparing, recording, saving, drafting, drafted, redraftable, ... Yes What the owner can do now. preparing: the browser is starting. recording: the browser takes input and the recording can be finished. saving: the lease ended and the journey is being saved. drafting: the draft is being written. drafted: the draft is ready. redraftable: the journey is saved and can be drafted again. ended: nothing more happens; start a new recording. drafted, redraftable and ended change only when the owner acts.
signed_in_during_recording boolean Yes
status enum: recording, drafting, drafted, failed, discarded, expired Yes
updated_at string (date-time) Yes
401: Not signed in
403: Only organization admins record
404: Recording is not enabled
422: Refused, with a code such as recording_target_unsupported or browser_session_busy, or an archived persona or environment

load

GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/recordings/{id}

Operation ID: api_v1_verification_project_recording.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes

Responses

200: The recording; only its creator can read it

application/json

Property Type Required Description
browser object Yes
browser.expires_at string (date-time) Yes
browser.origin string Yes
browser.status enum: pending, starting, ready, saved, closed, failed Yes
browser.viewer_url string,null Yes Creator-only bearer link while the browser is ready. Do not share.
created_at string (date-time) Yes
draft object or null Yes Present once drafted.
environment_id string Yes
error string,null Yes
event_count integer Yes
id string Yes
persona_id string Yes
phase enum: preparing, recording, saving, drafting, drafted, redraftable, ... Yes What the owner can do now. preparing: the browser is starting. recording: the browser takes input and the recording can be finished. saving: the lease ended and the journey is being saved. drafting: the draft is being written. drafted: the draft is ready. redraftable: the journey is saved and can be drafted again. ended: nothing more happens; start a new recording. drafted, redraftable and ended change only when the owner acts.
signed_in_during_recording boolean Yes
status enum: recording, drafting, drafted, failed, discarded, expired Yes
updated_at string (date-time) Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/organizations/{organization_id}/verification/projects/{project_id}/recordings/{id}

Operation ID: delete_api_v1_organizations_organization_id_verification_projects_project_id_recordings_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id path string Yes
id path string Yes

Responses

200: The discarded recording

application/json

Property Type Required Description
browser object Yes
browser.expires_at string (date-time) Yes
browser.origin string Yes
browser.status enum: pending, starting, ready, saved, closed, failed Yes
browser.viewer_url string,null Yes Creator-only bearer link while the browser is ready. Do not share.
created_at string (date-time) Yes
draft object or null Yes Present once drafted.
environment_id string Yes
error string,null Yes
event_count integer Yes
id string Yes
persona_id string Yes
phase enum: preparing, recording, saving, drafting, drafted, redraftable, ... Yes What the owner can do now. preparing: the browser is starting. recording: the browser takes input and the recording can be finished. saving: the lease ended and the journey is being saved. drafting: the draft is being written. drafted: the draft is ready. redraftable: the journey is saved and can be drafted again. ended: nothing more happens; start a new recording. drafted, redraftable and ended change only when the owner acts.
signed_in_during_recording boolean Yes
status enum: recording, drafting, drafted, failed, discarded, expired Yes
updated_at string (date-time) Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway