API

VerificationProjectPersona

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}/personas/{id}/archive create Persona
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/personas create Success
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/personas list PersonaCollection
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/personas/{id} load Persona
PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/personas/{id} patch Persona
DELETE /api/v1/organizations/{organization_id}/verification/projects/{project_id}/personas/{id} remove Success
PUT /api/v1/organizations/{organization_id}/verification/projects/{project_id}/personas/{id} update Persona

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:

verification_project_personas, err := client.VerificationProjectPersona(nil).List(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(verification_project_personas)
verification_project_persona, err := client.VerificationProjectPersona(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(verification_project_persona)
created, err := client.VerificationProjectPersona(nil).Create(map[string]any{"organization_id": "example", "project_id": "example", "name": "example", "role": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.VerificationProjectPersona(nil).Update(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.VerificationProjectPersona(nil).Patch(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.VerificationProjectPersona(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 verification_project_personas, err = client:VerificationProjectPersona():list({ organization_id = "example", project_id = "example" })
local verification_project_persona, err = client:VerificationProjectPersona():load({ id = "example_id", organization_id = "example", project_id = "example" })
local created, err = client:VerificationProjectPersona():create({ organization_id = "example", project_id = "example", name = "example", role = "example" })
local updated, err = client:VerificationProjectPersona():update({ id = "example_id", organization_id = "example", project_id = "example" })
local patched, err = client:VerificationProjectPersona():patch({ id = "example_id", organization_id = "example", project_id = "example" })
local removed, err = client:VerificationProjectPersona():remove({ id = "example_id", organization_id = "example", project_id = "example" })

PHP

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

$verification_project_personas = $client->VerificationProjectPersona()->list(["organization_id" => "example", "project_id" => "example"]);
$verification_project_persona = $client->VerificationProjectPersona()->load(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$created = $client->VerificationProjectPersona()->create(["organization_id" => "example", "project_id" => "example", "name" => "example", "role" => "example"]);
$updated = $client->VerificationProjectPersona()->update(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$patched = $client->VerificationProjectPersona()->patch(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$client->VerificationProjectPersona()->remove(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);

Python

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

verification_project_personas = client.VerificationProjectPersona().list({"organization_id": "example", "project_id": "example"})
verification_project_persona = client.VerificationProjectPersona().load({"id": "example_id", "organization_id": "example", "project_id": "example"})
created = client.VerificationProjectPersona().create({ "organization_id": "example", "project_id": "example", "name": "example", "role": "example" })
updated = client.VerificationProjectPersona().update({"id": "example_id", "organization_id": "example", "project_id": "example"})
patched = client.VerificationProjectPersona().patch({"id": "example_id", "organization_id": "example", "project_id": "example"})
client.VerificationProjectPersona().remove({"id": "example_id", "organization_id": "example", "project_id": "example"})

Ruby

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

verification_project_personas = client.VerificationProjectPersona.list({ "organization_id" => "example", "project_id" => "example" })
verification_project_persona = client.VerificationProjectPersona.load({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
created = client.VerificationProjectPersona.create({ "organization_id" => "example", "project_id" => "example", "name" => "example", "role" => "example" })
updated = client.VerificationProjectPersona.update({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
patched = client.VerificationProjectPersona.patch({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
client.VerificationProjectPersona.remove({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })

TypeScript

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

const verification_project_personas = await client.VerificationProjectPersona().list({ organization_id: "example", project_id: "example" })
const verification_project_persona = await client.VerificationProjectPersona().load({ id: "example_id", organization_id: "example", project_id: "example" })
const created = await client.VerificationProjectPersona().create({ organization_id: "example", project_id: "example", name: "example", role: "example" })
const updated = await client.VerificationProjectPersona().update({ id: "example_id", organization_id: "example", project_id: "example" })
const patched = await client.VerificationProjectPersona().patch({ id: "example_id", organization_id: "example", project_id: "example" })
await client.VerificationProjectPersona().remove({ id: "example_id", organization_id: "example", project_id: "example" })

Fields

Field Type Required Description
access_mode string Yes Access Mode
archived_at one,string,null Yes Archived At
capabilities one,string,null Yes Capabilities
created_at string Yes Created At
credential_id one,string,null Yes The credential this persona signs in with.
goals one,string,null Yes Goals
id string Yes Id
lock_version integer Yes Lock Version
name string Yes Name
project_id string Yes Project Id
role string Yes Role
updated_at string Yes Updated At
version integer Yes Version

create

POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/personas/{id}/archive

Operation ID: archive_api_v1_verification_project_persona.

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
version integer Yes

Responses

200: Persona

application/json

Property Type Required Description
access_mode enum: anonymous, account, signup Yes
archived_at string,null (date-time) Yes
capabilities string,null Yes
created_at string (date-time) Yes
credential_id string,null Yes The credential this persona signs in with. Without one, a run chooses from the project's credentials.
goals string,null Yes
id string Yes
lock_version integer Yes
name string Yes
project_id string Yes
role string Yes
updated_at string (date-time) Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

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

Operation ID: post_api_v1_organizations_organization_id_verification_projects_project_id_personas.

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
access_mode enum: anonymous, account, signup No
capabilities string No
credential_id string,null No The credential this persona signs in with. Without one, a run chooses from the project's credentials.
goals string No
name string Yes
role string Yes

Responses

200: Success

application/json

The response is object.

201: Persona

application/json

Property Type Required Description
access_mode enum: anonymous, account, signup Yes
archived_at string,null (date-time) Yes
capabilities string,null Yes
created_at string (date-time) Yes
credential_id string,null Yes The credential this persona signs in with. Without one, a run chooses from the project's credentials.
goals string,null Yes
id string Yes
lock_version integer Yes
name string Yes
project_id string Yes
role string Yes
updated_at string (date-time) Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

list

GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/personas

Operation ID: api_v1_verification_project_personas.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: PersonaCollection

application/json

Property Type Required Description
permissions object Yes
permissions.manage boolean Yes
personas array of object Yes
personas[].access_mode enum: anonymous, account, signup Yes
personas[].archived_at string,null (date-time) Yes
personas[].capabilities string,null Yes
personas[].created_at string (date-time) Yes
personas[].credential_id string,null Yes The credential this persona signs in with. Without one, a run chooses from the project's credentials.
personas[].goals string,null Yes
personas[].id string Yes
personas[].lock_version integer Yes
personas[].name string Yes
personas[].project_id string Yes
personas[].role string Yes
personas[].updated_at string (date-time) Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

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

Operation ID: api_v1_verification_project_persona.

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: Persona

application/json

Property Type Required Description
access_mode enum: anonymous, account, signup Yes
archived_at string,null (date-time) Yes
capabilities string,null Yes
created_at string (date-time) Yes
credential_id string,null Yes The credential this persona signs in with. Without one, a run chooses from the project's credentials.
goals string,null Yes
id string Yes
lock_version integer Yes
name string Yes
project_id string Yes
role string Yes
updated_at string (date-time) Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/personas/{id}

Operation ID: patch_api_v1_organizations_organization_id_verification_projects_project_id_personas_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

Request body

application/json

Property Type Required Description
access_mode enum: anonymous, account, signup No
capabilities string No
credential_id string,null No The credential this persona signs in with. Without one, a run chooses from the project's credentials.
goals string No
name string No
role string No
version integer Yes

Responses

200: Persona

application/json

Property Type Required Description
access_mode enum: anonymous, account, signup Yes
archived_at string,null (date-time) Yes
capabilities string,null Yes
created_at string (date-time) Yes
credential_id string,null Yes The credential this persona signs in with. Without one, a run chooses from the project's credentials.
goals string,null Yes
id string Yes
lock_version integer Yes
name string Yes
project_id string Yes
role string 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}/personas/{id}

Operation ID: delete_api_v1_organizations_organization_id_verification_projects_project_id_personas_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

Request body

application/json

Property Type Required Description
version integer Yes

Responses

200: Success

application/json

The response is object.

204: Persona deleted; historical reports retained
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/organizations/{organization_id}/verification/projects/{project_id}/personas/{id}

Operation ID: put_api_v1_organizations_organization_id_verification_projects_project_id_personas_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

Request body

application/json

Property Type Required Description
access_mode enum: anonymous, account, signup No
capabilities string No
credential_id string,null No The credential this persona signs in with. Without one, a run chooses from the project's credentials.
goals string No
name string No
role string No
version integer Yes

Responses

200: Persona

application/json

Property Type Required Description
access_mode enum: anonymous, account, signup Yes
archived_at string,null (date-time) Yes
capabilities string,null Yes
created_at string (date-time) Yes
credential_id string,null Yes The credential this persona signs in with. Without one, a run chooses from the project's credentials.
goals string,null Yes
id string Yes
lock_version integer Yes
name string Yes
project_id string Yes
role string Yes
updated_at string (date-time) Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway