SDK reference · Node SDK
prov.identify
prov.identify in the Node SDK: 13 methods. The identify methods.
Methods
assess
prov.identify.assess(params: IdentifyAssessParams): Promise<TrafficAssessment>Assess one request (POST /v1/identify/assessments, metered per 1,000 checks).
Calls POST /v1/identify/assessments.
listAssessments
prov.identify.listAssessments(params?: ListTrafficAssessmentsParams): Promise<{ data: TrafficAssessment[]; hasMore: boolean; nextCursor: string | null }>The recorded hosted checks, newest first, filtered and paged by the API.
Calls GET /v1/identify/assessments.
getAssessment
prov.identify.getAssessment(id: string, opts?: { raw?: boolean }): Promise<TrafficAssessment | Record<string, unknown>>Calls GET /v1/identify/assessments/{id}.
reportDecisions
prov.identify.reportDecisions(decisions: Array<Record<string, unknown>>): Promise<{ object: "decision_report"; accepted: number; duplicates: number; rejected: Array<{ index: number; message: string }> }>Report middleware/edge decisions (at most 1,000; the reportOf(verdict) shape).
Calls POST /v1/identify/decisions.
listDecisions
prov.identify.listDecisions(params?: ListTrafficDecisionsParams): Promise<{ data: Array<Record<string, unknown>>; hasMore: boolean; nextCursor: string | null }>Calls GET /v1/identify/decisions.
getDecision
prov.identify.getDecision(id: string): Promise<Record<string, unknown> & { bot: BotAssessment; agentPlatform: AgentPlatform | null }>Slice 13: bot is what an assessment naming this visit would see with no request (the score, its band, the reason when unclassified, the named signals); agentPlatform the platform the verdict named.
Calls GET /v1/identify/decisions/{id}.
summary
prov.identify.summary(window?: "24h" | "7d" | "30d"): Promise<Record<string, unknown>>Calls GET /v1/identify/decisions/summary.
getConfig
prov.identify.getConfig(): Promise<Record<string, unknown>>Calls GET /v1/identify/settings/site.
updateConfig
prov.identify.updateConfig(params: IdentifyConfigParams): Promise<Record<string, unknown>>Calls PUT /v1/identify/settings/site.
policyTemplates
prov.identify.policyTemplates(): Promise<{ data: Array<{ id: string; name: string; description: string; document: unknown }> }>Calls GET /v1/identify/policy_templates.
addSigningKey
prov.identify.addSigningKey(agentId: string, params: SigningKeyParams): Promise<Record<string, unknown>>Agent side: publish a public signing key for one of your agents (free).
Calls POST /v1/identify/agents/{id}/signing_keys.
listSigningKeys
prov.identify.listSigningKeys(agentId: string): Promise<{ data: Array<Record<string, unknown>> }>Calls GET /v1/identify/agents/{id}/signing_keys.
revokeSigningKey
prov.identify.revokeSigningKey(agentId: string, keyId: string): Promise<{ id: string; object: string; deleted: true }>Calls DELETE /v1/identify/agents/{id}/signing_keys/{key_id}.