Create Assessment
recaptcha_enterprise.create_assessment
ActionGoogle Cloudconnection required
Calls reCAPTCHA Enterprise POST projects/{p}/assessments.
Verify a reCAPTCHA token and get its risk score and reasons.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google reCAPTCHA Enterprise
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id, site_key
- Resolved by
- config.connection_id, else node.connection_id
Configuration
6 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
project_id GCP project id (overrides connection). | string | No | — | — | — |
site_key reCAPTCHA site key (overrides connection). | string | No | — | — | — |
token Token from the client. Supports {{ }}. | string | Yes | — | credential material | credential |
expected_action Expected action name, e.g. login (optional). | string | No | — | — | — |
user_ip End-user IP (optional). | string | No | — | — | — |
user_agent End-user User-Agent (optional). | string | No | — | — | — |
Input
Used when the config leaves token blank.
| Field | Type | Example |
|---|---|---|
token The reCAPTCHA token from the client. | string | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
name | string | — |
valid | boolean | — |
token_valid | boolean | — |
invalid_reason | string | — |
score | number | — |
reasons | array | — |
action | string | — |
action_matches | boolean | — |
hostname | string | — |
{
"action": "",
"action_matches": false,
"hostname": "",
"invalid_reason": "",
"name": "",
"reasons": [],
"score": 0,
"token_valid": false,
"valid": false
}Related Google reCAPTCHA Enterprise nodes
See Create Assessment run in a workflow.
In a technical demo we add the Google reCAPTCHA Enterprise connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.