API

VerificationProjectCredential

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}/credentials/{id}/disable create Success
POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/credentials create Success
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/credentials list ProjectCredentialCollection
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/credentials/{id} load ProjectCredential
GET /api/v1/organizations/{organization_id}/verification/projects/{project_id}/credentials/{id}/inbox load ProjectCredentialInbox
PATCH /api/v1/organizations/{organization_id}/verification/projects/{project_id}/credentials/{id} patch ProjectCredential
DELETE /api/v1/organizations/{organization_id}/verification/projects/{project_id}/credentials/{id} remove Success
PUT /api/v1/organizations/{organization_id}/verification/projects/{project_id}/credentials/{id} update ProjectCredential

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_credentials, err := client.VerificationProjectCredential(nil).List(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(verification_project_credentials)
verification_project_credential, err := client.VerificationProjectCredential(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(verification_project_credential)
created, err := client.VerificationProjectCredential(nil).Create(map[string]any{"organization_id": "example", "project_id": "example", "login_method": "example", "name": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.VerificationProjectCredential(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.VerificationProjectCredential(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.VerificationProjectCredential(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_credentials, err = client:VerificationProjectCredential():list({ organization_id = "example", project_id = "example" })
local verification_project_credential, err = client:VerificationProjectCredential():load({ id = "example_id", organization_id = "example", project_id = "example" })
local created, err = client:VerificationProjectCredential():create({ organization_id = "example", project_id = "example", login_method = "example", name = "example" })
local updated, err = client:VerificationProjectCredential():update({ id = "example_id", organization_id = "example", project_id = "example" })
local patched, err = client:VerificationProjectCredential():patch({ id = "example_id", organization_id = "example", project_id = "example" })
local removed, err = client:VerificationProjectCredential():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_credentials = $client->VerificationProjectCredential()->list(["organization_id" => "example", "project_id" => "example"]);
$verification_project_credential = $client->VerificationProjectCredential()->load(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$created = $client->VerificationProjectCredential()->create(["organization_id" => "example", "project_id" => "example", "login_method" => "example", "name" => "example"]);
$updated = $client->VerificationProjectCredential()->update(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$patched = $client->VerificationProjectCredential()->patch(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$client->VerificationProjectCredential()->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_credentials = client.VerificationProjectCredential().list({"organization_id": "example", "project_id": "example"})
verification_project_credential = client.VerificationProjectCredential().load({"id": "example_id", "organization_id": "example", "project_id": "example"})
created = client.VerificationProjectCredential().create({ "organization_id": "example", "project_id": "example", "login_method": "example", "name": "example" })
updated = client.VerificationProjectCredential().update({"id": "example_id", "organization_id": "example", "project_id": "example"})
patched = client.VerificationProjectCredential().patch({"id": "example_id", "organization_id": "example", "project_id": "example"})
client.VerificationProjectCredential().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_credentials = client.VerificationProjectCredential.list({ "organization_id" => "example", "project_id" => "example" })
verification_project_credential = client.VerificationProjectCredential.load({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
created = client.VerificationProjectCredential.create({ "organization_id" => "example", "project_id" => "example", "login_method" => "example", "name" => "example" })
updated = client.VerificationProjectCredential.update({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
patched = client.VerificationProjectCredential.patch({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
client.VerificationProjectCredential.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_credentials = await client.VerificationProjectCredential().list({ organization_id: "example", project_id: "example" })
const verification_project_credential = await client.VerificationProjectCredential().load({ id: "example_id", organization_id: "example", project_id: "example" })
const created = await client.VerificationProjectCredential().create({ organization_id: "example", project_id: "example", login_method: "example", name: "example" })
const updated = await client.VerificationProjectCredential().update({ id: "example_id", organization_id: "example", project_id: "example" })
const patched = await client.VerificationProjectCredential().patch({ id: "example_id", organization_id: "example", project_id: "example" })
await client.VerificationProjectCredential().remove({ id: "example_id", organization_id: "example", project_id: "example" })

Fields

Field Type Required Description
browser_authentication one,object,null No Browser Authentication
browser_session string No JSON artifact containing scoped app cookies, localStorage and IndexedDB; Google provider cookies and other origins are rejected.
composal_address one,string,null Yes The Composal address provisioned for this account, kept while it signs in with another username so turning the address back on reuses it.
composal_inbox boolean No email_password only: true signs in with a Composal-provisioned email address (reused if already provisioned) whose mail people and agents can read, ignoring username; the password may be saved later, after signing up with that address,…
composal_inbox_user string No The user part of a new Composal address, which becomes <user>@<organization slug>.mailposal.com.
composal_managed_google boolean No Select the Composal-managed Google test account when available.
configured boolean Yes Configured
cookies string No Pasted cookies as name=value (Cookie header supported) or name:"value", separated by newlines or semicolons.
credential_keys object Yes Credential Keys
description one,string,null Yes When to choose this account: role, plan, tenant and intended journeys
email_link_auth_origins array Yes Explicit auth-service origins for protected email-link login and signup links.
has_inbox boolean Yes Whether Composal provisioned this address and can show the mail it receives
id string Yes Id
identity_provider one,object,null Yes For oidc_identity accounts, the Composal issuer the app trusts and the persona settings it must match
instructions one,string,null Yes Non-secret login instructions and the expected signed-in state; required for custom login
login_method string Yes Login Method
login_url string Yes Optional sign-in path or URL.
managed boolean Yes Managed
mfa_enabled boolean Yes Mfa Enabled
name string Yes Name
oidc object No Composal sign-in settings for oidc_identity, which only project credentials accept.
passkey string No JSON enrollment artifact for a cloud-managed software passkey; never returned.
password string No Required for email_password and other password methods, except an email_password account that uses a Composal address
project_id string Yes Project Id
provider_guidance string Yes Provider Guidance
remove_browser_authentication boolean No Remove Browser Authentication
remove_totp boolean No Remove Totp
sign_in_verified boolean Yes A sign-in check confirmed this account signs in with its current settings
sign_in_verified_at one,string,null Yes Sign In Verified At
status string Yes Status
totp_secret string No Base32 setup key or otpauth URI, not a current one-time code
updated_at string Yes Updated At
username string Yes Username

create

POST /api/v1/organizations/{organization_id}/verification/projects/{project_id}/credentials/{id}/disable

Operation ID: disable_api_v1_verification_project_credential.

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

200: Success

application/json

The response is object.

204: Credential disabled; its inbox is retained
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

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

Operation ID: post_api_v1_organizations_organization_id_verification_projects_project_id_credentials.

Authentication: bearer token (bearerAuth).

Parameters

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

Request body

application/json

The request body is object and any.

Responses

200: Success

application/json

The response is object.

201: ProjectCredential

application/json

The response is object and object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

list

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

Operation ID: api_v1_verification_project_credentials.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: ProjectCredentialCollection

application/json

Property Type Required Description
credentials array of object and object Yes
permissions object Yes
permissions.manage boolean 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}/credentials/{id}

Operation ID: api_v1_verification_project_credential.

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

application/json

The response is object and object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

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

Operation ID: inbox_api_v1_verification_project_credential.

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

application/json

Property Type Required Description
messages array of object Yes
messages[].from string Yes
messages[].id string Yes
messages[].received_at string (date-time) Yes
messages[].recipient_tag string,null No The +tag the sender added to the address, such as run-7f3a in name+run-7f3a@acme.mailposal.com.
messages[].subject string,null Yes
messages[].text string 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}/credentials/{id}

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

The request body is object.

Responses

200: ProjectCredential

application/json

The response is object and object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

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

Operation ID: delete_api_v1_organizations_organization_id_verification_projects_project_id_credentials_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
permanent query boolean No

Responses

200: Success

application/json

The response is object.

204: Credential disabled, or permanently deleted with its inbox when permanent=true
401: Unauthorized
403: Forbidden
404: Not found
422: Credential is in use or inbox cleanup is unavailable
502: Bad gateway

update

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

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

The request body is object.

Responses

200: ProjectCredential

application/json

The response is object and object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway