# Account opening (/score-api/endpoints/account-opening)



{/* Written by scripts/build-use-cases.mjs from internal/usecases/catalog.json and use-cases/site.json. Change those, not this file. */}

**Let real customers in. Keep fake accounts out.** Score every sign-up before the account opens. Send the email, device, address and anything else you collect, and get a risk score with the reasons behind it.

| Endpoint                         | Price           | Group               |
| -------------------------------- | --------------- | ------------------- |
| `POST /v1/score/account_opening` | $0.005 per call | Identity & Accounts |

## Request [#request]

Send what you know in one `context` object. `email` is required; every other field is optional. A field can hold text, JSON or CSV.

<Tabs items="[&#x22;curl&#x22;, &#x22;Python&#x22;, &#x22;TypeScript&#x22;]">
  <Tab value="curl">
    ```bash
    curl https://api.finic.ai/v1/score/account_opening \
      --header "Authorization: Bearer $FINIC_API_KEY" \
      --header "Content-Type: application/json" \
      --data '{
        "context": {
          "email": "xk92.bnq@proton.me",
          "address": "8 The Green, Suite A, Dover, DE 19901",
          "ip": { "address": "198.51.100.23", "country": "DE", "is_vpn": true, "is_datacenter": true },
          "device": { "os": "Android 14", "model": "sdk_gphone64_x86_64", "is_emulator": true, "first_seen": "2026-11-25T14:02:11Z", "signups_last_hour": 3 }
        }
      }'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import os
    import requests

    response = requests.post(
        "https://api.finic.ai/v1/score/account_opening",
        headers={"Authorization": f"Bearer {os.environ['FINIC_API_KEY']}"},
        json={
            "context": {
                "email": "xk92.bnq@proton.me",
                "address": "8 The Green, Suite A, Dover, DE 19901",
                "ip": { "address": "198.51.100.23", "country": "DE", "is_vpn": True, "is_datacenter": True },
                "device": { "os": "Android 14", "model": "sdk_gphone64_x86_64", "is_emulator": True, "first_seen": "2026-11-25T14:02:11Z", "signups_last_hour": 3 }
            }
        },
        timeout=30,
    )
    response.raise_for_status()
    print(response.json()["score"])
    ```
  </Tab>

  <Tab value="TypeScript">
    ```ts
    const response = await fetch("https://api.finic.ai/v1/score/account_opening", {
      method: "POST",
      headers: {
        Authorization: `Bearer ${process.env.FINIC_API_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({
        context: {
          "email": "xk92.bnq@proton.me",
          "address": "8 The Green, Suite A, Dover, DE 19901",
          "ip": { "address": "198.51.100.23", "country": "DE", "is_vpn": true, "is_datacenter": true },
          "device": { "os": "Android 14", "model": "sdk_gphone64_x86_64", "is_emulator": true, "first_seen": "2026-11-25T14:02:11Z", "signups_last_hour": 3 }
        },
      }),
    });
    const { score, questions } = await response.json();
    ```
  </Tab>
</Tabs>

## Fields you send [#fields-you-send]

Send the details, not only an ID: an account ID tells the score nothing, but the account's age, profile and history do. Fields that are not in this list are also read.

| Field           |          | Description                                                                                                           |
| --------------- | -------- | --------------------------------------------------------------------------------------------------------------------- |
| `email`         | Required | The email address, with anything you know about it, such as how old it is and whether you have seen it before.        |
| `identity`      | Optional | The name, date of birth and ID details the person gave, written out.                                                  |
| `phone`         | Optional | The phone number, with its type and carrier if you know them.                                                         |
| `address`       | Optional | The address they gave, as they wrote it.                                                                              |
| `ip`            | Optional | The IP address with what your lookup says about it: country, city and network type. An address by itself says little. |
| `device`        | Optional | A description of the device, not a device ID: its type, its operating system, and whether you have seen it before.    |
| `other_context` | Optional | Any other information, structured or unstructured, that is useful for scoring.                                        |

## Response [#response]

`score` runs from 0, the lowest risk, to 1000, the highest. `questions` are the yes/no questions behind it, each with the probability that the answer is yes.

```json title="200 OK"
{
  "score": 912,
  "questions": [
    {
      "text": "Does the email address look machine-generated?",
      "probability": 0.93
    },
    {
      "text": "Is the sign-up coming from an emulator or a virtual device?",
      "probability": 0.91
    },
    {
      "text": "Has this device been used for other recent sign-ups?",
      "probability": 0.88
    },
    {
      "text": "Does the address look like a registered-agent or mail-forwarding address?",
      "probability": 0.84
    }
  ],
  "request_id": "req_01M4YF1068X8B4C458ENPD4JHT"
}
```

## The questions behind the score [#the-questions-behind-the-score]

1. Does the email address look machine-generated?
2. Is the sign-up coming from an emulator or a virtual device?
3. Has this device been used for other recent sign-ups?
4. Does the address look like a registered-agent or mail-forwarding address?

Every organization gets the same questions for this score. To use your own questions, or to calibrate a score to your own outcomes, copy it to a [custom scoring model](/score-model) in the Finic app (Starter plan and above).

## Turn the score into an action [#turn-the-score-into-an-action]

These thresholds are examples. Choose your own, and change them as you learn.

| Score       | Action  | Example                         |
| ----------- | ------- | ------------------------------- |
| Under 300   | Approve | Open the account.               |
| 300 to 599  | Step up | Ask for a document or a selfie. |
| 600 to 849  | Review  | Hold for an analyst.            |
| 850 or more | Block   | Refuse the sign-up.             |

## Errors [#errors]

| Status | `type`                 | When                                                                                                         |
| ------ | ---------------------- | ------------------------------------------------------------------------------------------------------------ |
| 400    | `invalid_request`      | `context` is missing, is not a JSON object, or a required field (`email`) is empty. `param` names the field. |
| 401    | `authentication_error` | The API key is missing or not valid.                                                                         |
| 402    | `insufficient_credit`  | The organization has no credit. Add credit in the Finic app.                                                 |
| 429    | `rate_limited`         | Too many requests. Retry with exponential backoff.                                                           |

See the [API reference](/reference) for every error and limit, and [Pricing](/pricing) for what a call costs.
