> ## Documentation Index
> Fetch the complete documentation index at: https://api-portal.etoro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Register users, submit KYC, and sign them in

> End-to-end guide for a partner that creates etoro users from its own product, completes KYC and verification on their behalf, and opens etoro for them already signed in.

## Overview

This guide covers the journey for a partner that owns the customer relationship in its own product and uses etoro as the brokerage and identity layer underneath. The user never has to register on etoro first.

The journey has two parts, and they run on different channels:

| Part | Channel | What it achieves |
| - | - | - |
| **A. Account and KYC** | Partner backend to etoro APIs | Create the etoro user, prepare the profile, and submit verification evidence |
| **B. Silent login** | User's browser, with the partner backend in the middle | Open etoro in the user's browser already signed in, with no password prompt |

```text theme={null}
Partner backend                                   etoro
  1. Obtain a partner token ----------------------> client credentials
  2. Check eligibility and consent documents ------> GET  /registration/users/eligibility
  3. Register the user ----------------------------> POST /registration/users
  4. Issue a non-interactive token (NIT) ----------> needs a sub-account id; registration does not return one
  5. Submit profile, KYC and verification ---------> personal details, email, phone, verification

Browser + partner backend                         etoro
  6. Browser opens etoro's initiate page ----------> etoro sets a short-lived cookie
  7. Browser comes back to your callback with tid and state
  8. Partner backend exchanges tid for a one-time token
  9. Browser opens the returned verify URL --------> user is signed in
```

> [!NOTE]
>
> Access is provisioned per partner. Before you start, your etoro contact must have set up your application (client credentials and redirect URIs), the scopes below, your API key, and the allow-listing of your egress IP addresses. See [Before you start](#before-you-start).

All endpoints in this guide are production endpoints. The authorization server is `https://www.etoro.com`; the API is `https://public-api.etoro.com`.

## Before you start

Ask your etoro contact to confirm each of the following:

**1. Application and credentials**

A `client_id` and `client_secret` for your application, and the exact redirect URI or URIs you will use for silent login. Keep the secret on your backend only.

**2. Scopes**

The scopes this journey uses are listed below; the full scope map is in [Permitted operations and scopes](https://api-portal.etoro.com/partners/integration.md#permitted-operations-and-scopes). A scope outside your grant is rejected.

| Used for | Scope |
| - | - |
| Registration | `etoro-public:partner:registration:read`, `etoro-public:partner:registration:write` |
| Personal details and address | `etoro-public:verification.personaldetails:read` / `:write`, `etoro-public:verification.address:read` / `:write` |
| KYC questionnaire | `etoro-public:kyc:read`, `etoro-public:kyc:write`, `etoro-public:kyc:questions:read`, `etoro-public:kyc:answers:read` / `:write`, `etoro-public:kyc:regulations:read` |
| Trusted verification | `etoro-public:verification.trusted.email:write`, `etoro-public:verification.trusted.phone:write`, `etoro-public:verification:trusted:user:write` |
| Silent login | `etoro-public:partner:silent-login:write`. The application must also be enabled for cookie-bound silent login, and the callback URI must be registered |

**3. API key and IP allow-listing**

An `x-api-key` for your application, and your egress addresses registered with etoro, as described in the [integration prerequisites](https://api-portal.etoro.com/partners/integration.md#prerequisites).

**4. Trusted-partner entitlement**

Direct email and phone confirmation, and trusted user verification, are available only to partners etoro has approved as trusted, and only for users your application created.

## Part A: Create the user and submit KYC

### 1. Obtain a partner token

Authenticate your application with the OAuth 2.0 client credentials grant. No end user is involved at this stage.

```bash theme={null}
curl -X POST "https://www.etoro.com/api/sso/v1/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "grant_type=client_credentials" \
  --data-urlencode "client_id=<CLIENT_ID>" \
  --data-urlencode "client_secret=<CLIENT_SECRET>"
```

The response contains an `access_token` and the scopes granted to your application. Send the client secret in the form body, as above, or as HTTP Basic — not both. Request a new token when it expires.

### 2. Check eligibility and get the consent documents

Which legal documents a user must accept depends on their country. Always fetch them for the country you are onboarding; never hard-code document identifiers.

```bash theme={null}
curl -X GET "https://public-api.etoro.com/api/v1/registration/users/eligibility?countryIso=AU" \
  -H "x-request-id: <UUID>" \
  -H "Authorization: Bearer <PARTNER_TOKEN>"
```

```json Response 200 theme={null}
{
  "countryIso": "AU",
  "eligibility": { "blocked": false, "restricted": false },
  "documents": [
    { "documentId": 279, "type": "PrivacyPolicy" },
    { "documentId": 280, "type": "CookiePolicy" }
  ]
}
```

If `blocked` or `restricted` is `true`, do not continue to registration for that country. Present every returned document to the user, and record the time they accepted it and their IP address.

### 3. Register the user

Send one `consents` entry for **every** document returned in step 2.

```bash theme={null}
curl -X POST "https://public-api.etoro.com/api/v1/registration/users" \
  -H "x-request-id: <UUID>" \
  -H "Authorization: Bearer <PARTNER_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
        "username": "<UNIQUE_USERNAME>",
        "email": "<USER_EMAIL>",
        "countryIso": "AU",
        "languageIso": "en",
        "partnerCorrelationId": "<YOUR_REFERENCE>",
        "consents": [
          { "documentId": 279, "signedAt": "<UTC_ISO8601>", "clientIp": "<END_USER_IP>" },
          { "documentId": 280, "signedAt": "<UTC_ISO8601>", "clientIp": "<END_USER_IP>" }
        ]
      }'
```

| Field | Required | Notes |
| - | - | - |
| `username` | Yes | 4 to 20 characters, unique |
| `email` | Yes | Unique |
| `countryIso` | Yes | ISO 3166 country code |
| `consents` | Yes | One entry per document from step 2. `signedAt` is UTC ISO 8601, within the last 24 hours and not more than 10 minutes in the future. `clientIp` is the end user's IPv4 address, not your server's |
| `partnerCorrelationId` | No | Your own reference for the user, up to 100 characters. Keep it; it is useful for support and audit |
| `languageIso`, `regionIsoCode` | No | Preferred language, and sub-national region where it applies (for example `US-TX`) |

No password is supplied; etoro generates one. A successful call returns `201` and a token bundle for the new user:

```json Response 201 theme={null}
{
  "success": true,
  "data": {
    "username": "<UNIQUE_USERNAME>",
    "partnerCorrelationId": "<YOUR_REFERENCE>",
    "loginInfo": {
      "id_token": "<ID_TOKEN>",
      "access_token": "<USER_ACCESS_TOKEN>",
      "token_type": "bearer",
      "expires_in": 600,
      "scope": "<GRANTED_SCOPES>"
    },
    "loginSucceeded": true
  }
}
```

Persist two values from this response:

* The `sub` claim of the `id_token`. For a user this application registered, that claim is the `externalUserId` you send to [silent login](#part-b-sign-the-user-in-silently). It is not an etoro customer id. A person who already had an etoro account is the other path: you recognize them by the sign-in `sub`, and you read `externalUserId` from [Associate the accounts](https://api-portal.etoro.com/partners/integration.md#associate-the-accounts).
* The `access_token`. It is short-lived; honor `expires_in`. Use it as a bearer token for the next user-scoped calls, then replace it with a non-interactive token.

Common errors: `409` for a username, email, or `partnerCorrelationId` that is already in use (use new values); `422` for an invalid or missing consent, or a stale `signedAt`. See [Errors and rate limits](#errors-and-rate-limits) for the rest.

### 4. Issue a non-interactive token

The registration `access_token` expires. To keep calling user-scoped endpoints from your backend after that, issue a **non-interactive token (NIT)** for the user.

The NIT published in this portal is the sub-account user token in [Issue a non-interactive token](https://api-portal.etoro.com/partners/integration.md#issue-a-non-interactive-token). That call needs the registration `access_token` and an `x-sub-account-id`, and it returns the secret only once. Store it in a secret store, and set `expiresAt` and `ipsWhitelist`.

Where the `x-sub-account-id` comes from depends on the path:

* The person already had an etoro account and signed in. `x-sub-account-id` is the `subAccountId` from `GET /api/v1/sub-accounts/me/accounts`. See [Associate the accounts](https://api-portal.etoro.com/partners/integration.md#associate-the-accounts).
* Your application registered the user with `POST /api/v1/registration/users`. That response does not include a sub-account id. If you do not already have one, confirm the issuance path with your etoro contact before you build it. Do not call an internal host.

Until a NIT exists, user-scoped calls use `Authorization: Bearer` and the registration `access_token`. After it exists, they use your `x-api-key` and the user's `x-user-key`. The two are mutually exclusive; see [Issue a non-interactive token](https://api-portal.etoro.com/partners/integration.md#issue-a-non-interactive-token). The examples below show the key pair.

```bash theme={null}
curl -X GET "https://public-api.etoro.com/api/v1/users/personaldetails" \
  -H "x-request-id: <UUID>" \
  -H "x-api-key: <YOUR_API_KEY>" \
  -H "x-user-key: <NIT>"
```

### 5. Prepare the profile and submit KYC

Call the operations below for the new user. Each lists the scopes it needs on its own page under Partners API.

| Step | Operation | Purpose |
| - | - | - |
| Read the profile | `GET /api/v1/users/personaldetails`, `GET /api/v1/users/address/{addressType}` | A newly registered user usually holds only the country. Read before you write |
| Update personal details | `PUT /api/v1/users/personaldetails` | Partial update: send only the fields you have, such as name, date of birth, citizenship, and tax identifications |
| Update the address | `PUT /api/v1/users/address/{addressType}` | The user's residential address |
| Read the questionnaire | `GET /api/v1/kyc-data/questionnaire` | A new user returns no answers yet |
| Submit answers | `POST /api/v1/kyc-data/questionnaire`, or `POST /api/v1/kyc-data/questionnaire/{questionId}` | All answers at once, or one question at a time |
| Check what is missing | `GET /api/v1/kyc/gaps` | Outstanding KYC requirements for the user |

Where your own provider has already verified the user, you can supply that evidence instead of asking the user to repeat it.

#### Confirm email and phone with your own evidence

Direct confirmation records that **you** verified the email or phone, so etoro does not send a one-time code. Both calls take a `verificationEvidence` object:

| Field | Required | Notes |
| - | - | - |
| `partnerReferenceId` | Yes | Your reference for the verification. Reusing the registration `partnerCorrelationId` keeps one reference per user |
| `verificationMethod` | Yes | One of `sms`, `voiceCall`, `inPerson`, `videoCall`, `documentCheck`, `documentVerification`, `bankVerification`, `governmentDb`, `other` |
| `verifiedAt` | Yes | When you verified it, in UTC |
| `externalProviderId` | When the method is `documentVerification` | Your verification provider |
| `externalReferenceId`, `additionalDetails` | No | The provider's reference and free-text context |

```bash Email theme={null}
curl -X POST "https://public-api.etoro.com/api/v1/users/email/verifications/direct-confirmations" \
  -H "x-request-id: <UUID>" \
  -H "x-api-key: <YOUR_API_KEY>" \
  -H "x-user-key: <NIT>" \
  -H "Content-Type: application/json" \
  -d '{
        "email": "<USER_EMAIL>",
        "verificationEvidence": {
          "partnerReferenceId": "<YOUR_REFERENCE>",
          "verificationMethod": "documentVerification",
          "verifiedAt": "<UTC_ISO8601>",
          "externalProviderId": "<YOUR_KYC_PROVIDER>"
        }
      }'
```

```bash Phone theme={null}
curl -X POST "https://public-api.etoro.com/api/v1/users/phone/verifications/direct-confirmations" \
  -H "x-request-id: <UUID>" \
  -H "x-api-key: <YOUR_API_KEY>" \
  -H "x-user-key: <NIT>" \
  -H "Content-Type: application/json" \
  -d '{
        "phoneCountryCode": "+61",
        "phoneNumber": "<NATIONAL_NUMBER_DIGITS>",
        "verificationEvidence": {
          "partnerReferenceId": "<YOUR_REFERENCE>",
          "verificationMethod": "sms",
          "verifiedAt": "<UTC_ISO8601>"
        },
        "enable2Fa": false
      }'
```

`phoneNumber` is digits only, without the country code, and must be a valid national number for that country. A `409` means the email or phone is already verified, or is in use by another user; where the verification was intentional, treat an "already verified" response as done.

#### Submit trusted user verification

When the user has reached the required verification level, submit your verification evidence to complete trusted verification:

```bash theme={null}
curl -X POST "https://public-api.etoro.com/api/v1/users/verification" \
  -H "x-request-id: <UUID>" \
  -H "x-api-key: <YOUR_API_KEY>" \
  -H "x-user-key: <NIT>" \
  -H "Content-Type: application/json" \
  -d '{
        "verificationEvidence": {
          "partnerReferenceId": "<YOUR_REFERENCE>",
          "verificationMethod": "document_verification",
          "verifiedAt": "<UTC_ISO8601>",
          "externalProviderId": "<YOUR_KYC_PROVIDER>"
        }
      }'
```

This operation requires the user to be at verification level 2 and then upgrades them to level 3. It is idempotent for a user already at level 3. If the user has not reached level 2, the call returns `400`; complete the earlier profile and verification steps and check `GET /api/v1/kyc/gaps` rather than retrying. Use the `verificationMethod` value `document_verification` on this operation; the enumeration in the table above applies to the email and phone confirmations.

> [!WARNING]
>
> Trusted verification asserts that **you** verified the user. It is only accepted for users your application created, and you are accountable for the evidence you submit. Never send evidence for a verification that did not take place.

## Part B: Sign the user in silently

Silent login opens etoro in the user's browser already signed in. It is a handshake between the browser, your backend, and etoro, and the order matters.

```text theme={null}
Your app (user clicks "Open etoro")
   |
   v
The user's browser opens etoro's initiate page  <- etoro sets the login cookie here
   |
   v
etoro sends the browser to your callback        <- your callback receives tid and state
   |
   v
Your backend calls partner-login-token          -> returns { ott, redirectUrl }
   |
   v
Browser opens that redirectUrl                  <- cookie + ott establish the session
   |
   v
User is signed in on etoro
```

> [!WARNING]
>
> **Only etoro's own page may set the login cookie.** The cookie is created on etoro's initiate page, in the user's browser. Your application must never create, copy, forge, or proxy it. Do not call the initiate endpoint yourself. From your server, the cookie lands on the server and the browser never receives it. From your own page, the browser blocks the call. Either way, verify fails. That is expected behavior, not a defect.

### 1. Send the browser to etoro's initiate page

When the user clicks "Open etoro", send their browser to etoro's initiate page, with a link or a redirect:

```text theme={null}
https://www.etoro.com/accounts/partners/silent-login/initiate?client_id=<CLIENT_ID>&redirect_uri=<REGISTERED_REDIRECT_URI>&state=<OPAQUE_VALUE>
```

| Parameter | Value |
| - | - |
| `client_id` | Your application's client id. |
| `redirect_uri` | Your silent-login callback. It must match a registered redirect URI character for character, including scheme and path. Encode it once. |
| `state` | A new random value for every attempt. etoro returns it to your callback. |

Use these names exactly, in snake case as in the OAuth login link. The page is the same for every partner, and the user does not need to be signed in to etoro first.

The page sets `etoro-silent-login-tid` in the browser (`HttpOnly`, `Secure`, domain `.etoro.com`, about five minutes), then sends the browser to your callback:

```text theme={null}
<REGISTERED_REDIRECT_URI>?tid=<TID>&state=<OPAQUE_VALUE>
```

Check that `state` is the value you sent for this attempt, and stop if it is missing or different. `tid` is a GUID with no dashes.

If etoro rejects the request, for example because `redirect_uri` is not registered, the user sees an error page on etoro and does not come back to your callback.

### 2. Exchange the tid for a one-time token

On your backend, after the `state` check, read `tid` from the callback and identify the user. Authenticate with a partner token (see [step 1 of Part A](#1-obtain-a-partner-token)) and send the user's `externalUserId`, which is the `sub` claim saved at registration:

```bash theme={null}
curl -X POST "https://public-api.etoro.com/api/v1/silent-login/partner-login-token" \
  -H "x-request-id: <UUID>" \
  -H "Authorization: Bearer <PARTNER_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
        "tid": "<TID>",
        "externalUserId": "<ID_TOKEN_SUB>"
      }'
```

```json Response 201 theme={null}
{
  "ott": "<ONE_TIME_TOKEN>",
  "redirectUrl": "https://www.etoro.com/accounts/partners/silent-login/verify?ott=<ONE_TIME_TOKEN>"
}
```

`tid` must be the GUID from the callback. `externalUserId` must be the value saved from registration and must belong to your application; a value minted for another application is rejected.

This call needs the `etoro-public:partner:silent-login:write` scope on your partner token. It is granted per application, so a partner token that works for registration does not necessarily work here. It must be a partner token from the client credentials grant; a user access token is rejected with `401`.

### 3. Open the verify URL in the same browser

Redirect the browser to the `redirectUrl` **exactly as returned**. Do not change its host, path, or query string. The etoro page combines the cookie from step 1 with the one-time token, establishes the session, and lands the user on etoro signed in. You do not call the verify endpoint yourself.

### Timing and single use

* The cookie lives for about five minutes. Complete steps 1 to 3 promptly.
* The one-time token (`ott`) is single use. If a sign-in fails, start again from step 1; do not reuse an `ott` or a `tid`.
* The cookie must come from the **same browser** that opens the verify URL.

### From a native mobile app

The handshake is the same, but on mobile it is easy to lose the cookie between step 1 and step 3, because the two steps can end up in different browser contexts. Everything below follows from one rule: the browser context that opens the initiate page must still hold its cookies when it opens the verify URL.

The simplest way to guarantee that is to keep the whole handshake inside the browser and never hand control back to the app in the middle:

1. The app opens the initiate page in an external browser, as in step 1.
2. etoro redirects that browser to your `redirect_uri`, which is an ordinary `https` endpoint on **your backend**, not a custom URL scheme.
3. That endpoint checks `state`, calls `partner-login-token` server to server, and answers the browser with a `302` to the returned `redirectUrl`.
4. The same browser follows the redirect to the verify URL and the user lands on etoro signed in.

The browser never leaves, so the cookie is still there, and your app does not have to move a `tid` or a URL across process boundaries.

How to open that browser:

| Platform | Use | Avoid |
| - | - | - |
| iOS | `ASWebAuthenticationSession` with `prefersEphemeralWebBrowserSession` left at `false`, or `SFSafariViewController` | `WKWebView` with a fresh data store per screen |
| Android | Chrome Custom Tabs | `WebView` that does not keep one `CookieManager` across both steps |

An ephemeral session on iOS does work while it stays open, but it discards its cookies the moment it closes. If your flow closes the session at the callback and opens a second one for the verify URL, the cookie is gone and verify fails. Keeping the redirect inside a single browser session, as above, avoids the question.

A `redirect_uri` using a custom scheme such as `myapp://callback` cannot be registered for silent login. Register an `https` callback on your backend.

### Silent login errors

| Symptom | Likely cause | What to do |
| - | - | - |
| The user stays on an etoro error page after "Open etoro" | The link uses other parameter names or misses one, `client_id` is not a GUID, or `redirect_uri` is not registered for your `client_id` | Send `client_id`, `redirect_uri`, and `state`. Use a registered URI, or ask etoro to register it |
| Your callback gets `tid` with a missing or different `state` | This browser did not start this attempt on your site | Reject the callback and start again from step 1 |
| A CORS error in your page's console | Your page calls the initiate endpoint itself | Send the browser to the initiate page instead |
| Verify fails with `SilentLoginCookieMissing` | The cookie is absent: this browser did not open the initiate page, or the cookie expired | Send the browser to the initiate page again |
| Verify fails with `SilentLoginCookieMissing` from a mobile app, though the web flow works | The verify URL opened in a different browser context from the initiate page, or an ephemeral session was closed in between | Follow [From a native mobile app](#from-a-native-mobile-app) and keep the whole handshake in one browser session |
| Verify fails with `403` | The cookie does not match the one-time token, or was altered | Start a new handshake |
| `partner-login-token` returns `400` | `tid` or `externalUserId` is missing, or `tid` is not a GUID | Send the `tid` from the callback and the saved `externalUserId` |
| `partner-login-token` returns `401` | The token is a user access token, not a partner token | Call the token endpoint with `grant_type=client_credentials` and use that `access_token` |
| `partner-login-token` returns `403` | Your application does not hold `etoro-public:partner:silent-login:write`, or `externalUserId` belongs to another application | Ask your etoro contact to add the scope; send the `externalUserId` your application saved for this user |
| Verify fails after a retry | The `ott` was already used or has expired | Start a new handshake |

## Errors and rate limits

Each operation's rate limit is stated on its page under Partners API; most share a default of 60 requests per 60 seconds, and exceeding it returns `429`. See [Rate limits](https://api-portal.etoro.com/core/getting-started/rate-limits.md). Common causes of failure across the guide:

| Symptom | Cause | Fix |
| - | - | - |
| `401` | Missing or invalid token, or key pair | Check the token has not expired and that you are not mixing bearer and key-pair authentication |
| `403` with `InsufficientPermissions` | The token lacks a required scope | Ask your etoro contact to add the scope to your application |
| `403` with `IpNotAllowed` | The caller's address is not allow-listed | Register your egress addresses with etoro |
| `403` with `UserNotOwnedByPartner` | The user was not created by your application | Only act on users you registered |
| `409` | Duplicate username, email, phone, or reference | Use unique values |
| `422` | Invalid or missing field, or consent | Inspect the error body for the offending field |

## Go-live checklist

* Consent documents fetched per country at registration time, never hard-coded, with an accurate `signedAt` and the end user's own `clientIp`.
* `externalUserId` (the `sub` claim) and `partnerCorrelationId` stored against your own user record.
* Every item in the [partner security checklist](https://api-portal.etoro.com/partners/integration.md#security-checklist): NIT storage, expiry and IP restriction, egress allow-listing, and no personal data in logs or events.
* Silent login started only by sending the user's browser to etoro's initiate page, with `state` checked on your callback and `partner-login-token` called only from your backend.
* A full dry run of Part A and Part B in a non-production environment, agreed with your etoro contact, before any customer sees it.

## Reference

> [card] [Start here](https://api-portal.etoro.com/partners/start-here.md)
>
> Which path applies. Each operation page under Partners API lists the scopes it requires.

> [card] [Partner integration flow](https://api-portal.etoro.com/partners/integration.md)
>
> Non-interactive tokens, account association, scopes, and event reporting.

> [card] [SSO with OAuth 2.0](https://api-portal.etoro.com/core/getting-started/sso-oauth.md)
>
> The standard sign-in flow for users who already hold an etoro account.

> [card] [API keys and headers](https://api-portal.etoro.com/core/getting-started/authentication.md)
>
> The `x-api-key` / `x-user-key` pair and request header format.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.