AptlyStar

Persona

Verify identities with Persona

使用说明

Integrate Persona identity verification into the workflow. Manage the full inquiry lifecycle (create, update, approve, decline, review, resume, expire, redact), generate one-time verification links and PDF summaries, manage accounts including CSV bulk import, run watchlist and adverse media reports, review cases, retrieve verifications and documents, and discover inquiry templates.

工具

persona_create_inquiry

Create a new identity verification inquiry from an inquiry template. Returns the created inquiry, which can then be completed by the individual via a one-time link.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryTemplateIdstring是Inquiry template ID (starts with itmpl_), inquiry template version ID (starts with itmplv_), or legacy template ID (starts with tmpl_)
accountIdstring否Account ID (starts with act_) to associate with this inquiry
referenceIdstring否Reference ID that refers to an entity in your user model. An account is auto-created for it if one does not exist.
fieldsjson否JSON object of field name to field value pairs to pre-fill, as defined by the inquiry template (e.g. {"name-first": "Jane"})
notestring否Free-form note to attach to the inquiry
redirectUristring否URI to redirect the individual to after completing the inquiry flow

输出

参数类型描述
inquiryobjectThe created inquiry

persona_get_inquiry

Retrieve a single identity verification inquiry by ID, including its status, collected fields, and decision timestamps.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryIdstring是Inquiry ID to retrieve (starts with inq_)

输出

参数类型描述
inquiryobjectThe retrieved inquiry

persona_list_inquiries

List identity verification inquiries, optionally filtered by status, account ID, reference ID, or creation date range. Results are cursor-paginated.

输入

参数类型必填描述
apiKeystring是Persona API key
statusstring否Filter by inquiry status (created, pending, completed, failed, expired, needs_review, approved, declined)
accountIdstring否Filter by account ID (starts with act_); comma-separate multiple IDs
referenceIdstring否Filter by reference ID
createdAtStartstring否Filter to inquiries created at or after this ISO 8601 timestamp
createdAtEndstring否Filter to inquiries created at or before this ISO 8601 timestamp
pageSizenumber否Number of inquiries to return per page (1-100, default 10)
pageAfterstring否Pagination cursor: return inquiries after this inquiry ID

输出

参数类型描述
inquiriesarrayInquiries matching the filters
nextCursorstringCursor for the next page (pass as pageAfter), or null on the last page

persona_update_inquiry

Update an inquiry’s note, fields, tags, or redirect URI. Only the provided values are changed.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryIdstring是Inquiry ID to update (starts with inq_)
notestring否Free-form note to set on the inquiry
fieldsjson否JSON object of field name to field value pairs to set, as defined by the inquiry template (e.g. {"name-first": "Jane"})
tagsarray否JSON array of tag names to set on the inquiry (e.g. ["vip"])
redirectUristring否URI to redirect the individual to after completing the inquiry flow

输出

参数类型描述
inquiryobjectThe updated inquiry

persona_approve_inquiry

Approve an identity verification inquiry. Approving prevents further progress on the inquiry and triggers any associated workflows and webhooks.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryIdstring是Inquiry ID to approve (starts with inq_)

输出

参数类型描述
inquiryobjectThe approved inquiry

persona_decline_inquiry

Decline an identity verification inquiry. Declining prevents further progress on the inquiry and triggers any associated workflows and webhooks.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryIdstring是Inquiry ID to decline (starts with inq_)

输出

参数类型描述
inquiryobjectThe declined inquiry

persona_mark_inquiry_for_review

Mark an identity verification inquiry for manual review, moving it to the needs_review status.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryIdstring是Inquiry ID to mark for review (starts with inq_)

输出

参数类型描述
inquiryobjectThe inquiry marked for review

persona_resume_inquiry

Resume a pending or expired inquiry, creating a new session so the individual can continue verification. Returns a session token.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryIdstring是Inquiry ID to resume (starts with inq_)

输出

参数类型描述
inquiryobjectThe resumed inquiry
sessionTokenstringSession token for the new inquiry session, used to continue the flow in embedded SDKs

persona_expire_inquiry

Expire an in-progress inquiry, invalidating its sessions and one-time links so the individual can no longer continue it.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryIdstring是Inquiry ID to expire (starts with inq_)

输出

参数类型描述
inquiryobjectThe expired inquiry

Generate a one-time link for an inquiry that the individual can open to complete their identity verification.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryIdstring是Inquiry ID to generate a one-time link for (starts with inq_)
expiresInSecondsnumber否Number of seconds from now until the link expires (must be greater than 0; defaults to the inquiry template setting, typically 24 hours)

输出

参数类型描述
inquiryobjectThe inquiry the link was generated for
oneTimeLinkstringOne-time link the individual can open to complete the inquiry
oneTimeLinkShortstringShortened version of the one-time link

persona_print_inquiry_pdf

Download a PDF summary of an inquiry, including its collected information and verification results.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryIdstring是Inquiry ID to print (starts with inq_)

输出

参数类型描述
filefilePDF summary of the inquiry, stored in execution files

persona_redact_inquiry

Permanently delete all personally identifiable information collected by an inquiry, for example to honor a data deletion request. This cannot be undone.

输入

参数类型必填描述
apiKeystring是Persona API key
inquiryIdstring是Inquiry ID to redact (starts with inq_)

输出

参数类型描述
inquiryobjectThe redacted inquiry (PII fields are removed)

persona_create_account

Create an account that represents an individual in Persona. Accounts consolidate inquiries, verifications, and reports for the same person.

输入

参数类型必填描述
apiKeystring是Persona API key
accountTypeIdstring否Account type ID to create the account for (starts with acttp_); defaults to your organization default
referenceIdstring否Reference ID that refers to an entity in your user model
countryCodestring否ISO 3166-1 alpha-2 country code (e.g. US)
fieldsjson否JSON object of field name to field value pairs, as defined by the account type (e.g. {"name-first": "Jane"})
tagsarray否JSON array of tag names to associate with the account (e.g. ["vip"])

输出

参数类型描述
accountobjectThe created account

persona_get_account

Retrieve a single account by ID, including its reference ID, fields, tags, and status.

输入

参数类型必填描述
apiKeystring是Persona API key
accountIdstring是Account ID to retrieve (starts with act_)

输出

参数类型描述
accountobjectThe retrieved account

persona_list_accounts

List accounts in your Persona organization, optionally filtered by reference ID. Results are cursor-paginated.

输入

参数类型必填描述
apiKeystring是Persona API key
referenceIdstring否Filter by reference ID
pageSizenumber否Number of accounts to return per page (1-100, default 10)
pageAfterstring否Pagination cursor: return accounts after this account ID

输出

参数类型描述
accountsarrayAccounts matching the filters
nextCursorstringCursor for the next page (pass as pageAfter), or null on the last page

persona_update_account

Update an account’s reference ID, country code, fields, or tags. Only the provided values are changed.

输入

参数类型必填描述
apiKeystring是Persona API key
accountIdstring是Account ID to update (starts with act_)
referenceIdstring否Reference ID that refers to an entity in your user model
countryCodestring否ISO 3166-1 alpha-2 country code (e.g. US)
fieldsjson否JSON object of field name to field value pairs to set, as defined by the account type (e.g. {"name-first": "Jane"})
tagsarray否JSON array of tag names to set on the account (e.g. ["vip"])

输出

参数类型描述
accountobjectThe updated account

persona_import_accounts

Bulk-import accounts into Persona from a CSV file. Returns an importer whose status can be polled until processing completes.

输入

参数类型必填描述
apiKeystring是Persona API key
filefile是CSV file of accounts to import

输出

参数类型描述
importerobjectThe created account importer

persona_redact_account

Permanently delete all personally identifiable information stored on an account, for example to honor a data deletion request. This cannot be undone.

输入

参数类型必填描述
apiKeystring是Persona API key
accountIdstring是Account ID to redact (starts with act_)

输出

参数类型描述
accountobjectThe redacted account (PII fields are removed)

persona_list_cases

List manual review cases, optionally filtered by status, account ID, or reference ID. Results are cursor-paginated.

输入

参数类型必填描述
apiKeystring是Persona API key
statusstring否Filter by case status (e.g. Open, Resolved)
accountIdstring否Filter by account ID (starts with act_)
referenceIdstring否Filter by reference ID
pageSizenumber否Number of cases to return per page (1-100, default 10)
pageAfterstring否Pagination cursor: return cases after this case ID

输出

参数类型描述
casesarrayCases matching the filters
nextCursorstringCursor for the next page (pass as pageAfter), or null on the last page

persona_get_case

Retrieve a single manual review case by ID, including its status, resolution, and assignee.

输入

参数类型必填描述
apiKeystring是Persona API key
caseIdstring是Case ID to retrieve (starts with case_)

输出

参数类型描述
caseobjectThe retrieved case

persona_create_report

Run a screening report (watchlist, adverse media, or politically exposed person) against an individual by name or search term.

输入

参数类型必填描述
apiKeystring是Persona API key
reportTypestring是Type of report to run: watchlist, adverse-media, or politically-exposed-person
reportTemplateIdstring是Report template ID to run (starts with rptp_)
termstring否Full-name search term (e.g. "Jane Q Doe"). Provide this or the separate name parts.
nameFirststring否First name of the individual to search
nameMiddlestring否Middle name of the individual to search
nameLaststring否Last name of the individual to search
birthdatestring否Birthdate of the individual, formatted as YYYY-MM-DD
countryCodestring否ISO 3166-1 alpha-2 country code (e.g. US)
accountIdstring否Account ID (starts with act_) to associate with this report

输出

参数类型描述
reportobjectThe created report. Reports run asynchronously; poll until status is ready.

persona_get_report

Retrieve a single screening report by ID, including its status, match results, and full type-specific attributes.

输入

参数类型必填描述
apiKeystring是Persona API key
reportIdstring是Report ID to retrieve (starts with rep_)

输出

参数类型描述
reportobjectThe retrieved report

persona_list_reports

List screening reports, optionally filtered by account ID or reference ID. Results are cursor-paginated.

输入

参数类型必填描述
apiKeystring是Persona API key
accountIdstring否Filter by account ID (starts with act_)
referenceIdstring否Filter by reference ID
pageSizenumber否Number of reports to return per page (1-100, default 10)
pageAfterstring否Pagination cursor: return reports after this report ID

输出

参数类型描述
reportsarrayReports matching the filters
nextCursorstringCursor for the next page (pass as pageAfter), or null on the last page

persona_get_verification

Retrieve a single verification by ID (government ID, selfie, document, database, and more), including its status and the checks that ran.

输入

参数类型必填描述
apiKeystring是Persona API key
verificationIdstring是Verification ID to retrieve (starts with ver_)

输出

参数类型描述
verificationobjectThe retrieved verification

persona_get_document

Retrieve a single document by ID (government ID, generic document, and more), including its processing status and uploaded files.

输入

参数类型必填描述
apiKeystring是Persona API key
documentIdstring是Document ID to retrieve (starts with doc_)

输出

参数类型描述
documentobjectThe retrieved document

persona_list_inquiry_templates

List the inquiry templates in your Persona organization, to discover template IDs for creating inquiries. Results are cursor-paginated.

输入

参数类型必填描述
apiKeystring是Persona API key
pageSizenumber否Number of templates to return per page (1-100, default 10)
pageAfterstring否Pagination cursor: return templates after this template ID

输出

参数类型描述
inquiryTemplatesarrayInquiry templates in the organization
nextCursorstringCursor for the next page (pass as pageAfter), or null on the last page

On this page