---
title: "Create verification session URL"
method: POST
path: "/verify/create_verification_session_url_for_user_profile"
tags: ["KYC > Verification (Profile-Based)"]
---

# Create verification session URL

`POST /verify/create_verification_session_url_for_user_profile`

Create a URL for user verification session

## Request body

- CreateVerificationURLForUserProfileRequest
  - `user_profile_id` string, required
  - `redirect_uri` string, required — Controls how the onboarding widget signals completion. Pass a reserved keyword — `iframe`, `popup`, `popup_close`, `manual_close`, `react_native`, `flutter`, `ios`, or `android` — to have the widget post the `AiPriseVerification:Complete` message to your host app, or pass a URL to redirect the browser on completion (the session id is appended as `verification_session_id` for KYC or `business_onboarding_session_id` for KYB). See the Redirect modes guide for the full list of behaviors.
  - `template_id` string, required
  - `client_reference_id` string — An id you want to associate with your request.
  - `client_reference_data` object — A JSON you want to associate with your request.
  - `theme_options` ThemeOptions
    - `background` 'light' | 'dark', nullable
    - `color_page` string, nullable
    - `color_brand` string, nullable
    - `color_brand_overlay` string, nullable
    - `font_name` string, nullable
    - `font_weights` string, nullable
    - `button_border_radius` string, nullable
    - `button_padding` string, nullable
    - `button_font_size` string, nullable
    - `button_font_weight` string, nullable
    - `input_border_radius` string, nullable
    - `input_padding` string, nullable
    - `input_font_size` string, nullable
    - `input_font_weight` string, nullable
    - `input_label_font_size` string, nullable
    - `input_label_font_weight` string, nullable
    - `layout_border_radius` string, nullable
    - `modal_border_radius` string, nullable
    - `image_border_radius` string, nullable
  - `ui_options` UIOptions
    - `common` object
      - `default_language` string
    - `id_verification_module` object
      - `allowed_country_code` string — A 2-letter ISO country code that will be pre-selected in the onboarding UI.
      - `allowed_document_type` union — A list of document types that will be pre-selected in the onboarding UI. Type string is deprecated, please use array of string(s). Check the country-wise supported documents list here: https://docs.aiprise.com/docs/supported-documents
        - string[]
        - string
  - `verification_options` VerificationOptions
    - `aml_config` object
      - `exact_match` number
      - `fuzziness_score` number
      - `monitoring` boolean
      - `categories_filter` string[]
      - `search_profile` string, nullable

## Response `200`

Successful operation

- object
  - `verification_url` string
  - `verification_session_id` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/aiprise/apis/aiprise-apis.md) · [All operations](https://skmtc.net/aiprise/apis/aiprise-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aiprise/aiprise-apis/revisions/f1e9dc8f2dd5/schema)
