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

# Create session full

> Creates a session from start to end in one call.

## Body parameters

<ParamField body="additional_info_input" type="SessionAdditionalInfoInput">
  <Expandable title="properties">
    <ParamField body="browser_name" type="string" />

    <ParamField body="browser_version" type="string" />

    <ParamField body="camera_accepted" type="boolean" />

    <ParamField body="created_at" type="string" />

    <ParamField body="plateform_os" type="string" />
  </Expandable>
</ParamField>

<ParamField body="response_inputs" type="SendSessionResponseInput[]">
  The order of the responses matter

  <Expandable title="properties">
    <ParamField body="answer" type="SendSessionResponseContentInput">
      <Expandable title="properties">
        <ParamField body="antibot" type="string" />

        <ParamField body="document" type="SendSessionResponseDataInput">
          <Expandable title="properties">
            <ParamField body="data" type="string" />

            <ParamField body="format" type="string" />

            <ParamField body="video" type="SendSessionResponseDataInput">
              <Expandable title="properties">
                <ParamField body="data" type="string" />

                <ParamField body="format" type="string" />

                <ParamField body="video" type="SendSessionResponseDataInput" />
              </Expandable>
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="face" type="SendSessionResponseDataInput">
          <Expandable title="properties">
            <ParamField body="data" type="string" />

            <ParamField body="format" type="string" />

            <ParamField body="video" type="SendSessionResponseDataInput">
              <Expandable title="properties">
                <ParamField body="data" type="string" />

                <ParamField body="format" type="string" />

                <ParamField body="video" type="SendSessionResponseDataInput" />
              </Expandable>
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="faces" type="SendSessionResponseDataInput[]">
          <Expandable title="properties">
            <ParamField body="data" type="string" />

            <ParamField body="format" type="string" />

            <ParamField body="video" type="SendSessionResponseDataInput">
              <Expandable title="properties">
                <ParamField body="data" type="string" />

                <ParamField body="format" type="string" />

                <ParamField body="video" type="SendSessionResponseDataInput" />
              </Expandable>
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="faces_video" type="SendSessionResponseDataInput">
          <Expandable title="properties">
            <ParamField body="data" type="string" />

            <ParamField body="format" type="string" />

            <ParamField body="video" type="SendSessionResponseDataInput">
              <Expandable title="properties">
                <ParamField body="data" type="string" />

                <ParamField body="format" type="string" />

                <ParamField body="video" type="SendSessionResponseDataInput" />
              </Expandable>
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="file_upload" type="SendSessionResponseFileUploadInput">
          <Expandable title="properties">
            <ParamField body="data" type="string" />

            <ParamField body="file_name" type="string" />

            <ParamField body="format" type="string" />

            <ParamField body="video" type="SendSessionResponseDataInput">
              <Expandable title="properties">
                <ParamField body="data" type="string" />

                <ParamField body="format" type="string" />

                <ParamField body="video" type="SendSessionResponseDataInput" />
              </Expandable>
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="identity" type="SendSessionResponseContentIdentityInput">
          <Expandable title="properties">
            <ParamField body="recto" type="SendSessionResponseDataInput">
              <Expandable title="properties">
                <ParamField body="data" type="string" />

                <ParamField body="format" type="string" />

                <ParamField body="video" type="SendSessionResponseDataInput">
                  <Expandable title="properties">
                    <ParamField body="data" type="string" />

                    <ParamField body="format" type="string" />

                    <ParamField body="video" type="SendSessionResponseDataInput" />
                  </Expandable>
                </ParamField>
              </Expandable>
            </ParamField>

            <ParamField body="verso" type="SendSessionResponseDataInput">
              <Expandable title="properties">
                <ParamField body="data" type="string" />

                <ParamField body="format" type="string" />

                <ParamField body="video" type="SendSessionResponseDataInput">
                  <Expandable title="properties">
                    <ParamField body="data" type="string" />

                    <ParamField body="format" type="string" />

                    <ParamField body="video" type="SendSessionResponseDataInput" />
                  </Expandable>
                </ParamField>
              </Expandable>
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="identity_video" type="SendSessionResponseDataInput">
          <Expandable title="properties">
            <ParamField body="data" type="string" />

            <ParamField body="format" type="string" />

            <ParamField body="video" type="SendSessionResponseDataInput">
              <Expandable title="properties">
                <ParamField body="data" type="string" />

                <ParamField body="format" type="string" />

                <ParamField body="video" type="SendSessionResponseDataInput" />
              </Expandable>
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="information" type="SendSessionResponseContentInformationInput">
          <Expandable title="properties">
            <ParamField body="alternatives" type="string[]" />

            <ParamField body="answer" type="string" />

            <ParamField body="video" type="SendSessionResponseDataInput">
              <Expandable title="properties">
                <ParamField body="data" type="string" />

                <ParamField body="format" type="string" />

                <ParamField body="video" type="SendSessionResponseDataInput" />
              </Expandable>
            </ParamField>
          </Expandable>
        </ParamField>

        <ParamField body="verification" type="string" />
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="session_input" type="CreateSessionInput">
  <Expandable title="properties">
    <ParamField body="expiration_date" type="string" />

    <ParamField body="external_id" type="string" />

    <ParamField body="extra_data" type="string" />

    <ParamField body="input_data" type="SendSessionInputDataInput">
      <Expandable title="properties">
        <ParamField body="address" type="string" />

        <ParamField body="birthdate" type="string" />

        <ParamField body="city" type="string" />

        <ParamField body="country" type="string" />

        <ParamField body="firstname" type="string" />

        <ParamField body="lastname" type="string" />

        <ParamField body="nationality" type="string" />

        <ParamField body="phone" type="string" />

        <ParamField body="zip" type="string" />
      </Expandable>
    </ParamField>

    <ParamField body="language" type="string" />

    <ParamField body="scenario_code" type="string" />
  </Expandable>
</ParamField>

## Response body

<Tabs>
  <Tab title="200">
    <ResponseField name="session_id" type="string" />
  </Tab>

  <Tab title="default">
    unexpected error

    <ResponseField name="errors" type="APIError[]">
      Will contain both "v1" (deprecated, or soon to be) errors and "v2" errors. When possible, prefer errors that are not deprecated.

      <Expandable title="properties">
        <ResponseField name="code" type="string" />

        <ResponseField name="deprecated" type="boolean" />

        <ResponseField name="message" type="string" />

        <ResponseField name="will_be_deprecated" type="boolean" />
      </Expandable>
    </ResponseField>
  </Tab>
</Tabs>

<RequestExample>
  ```json JSON
  {
    "additional_info_input": {
      "browser_name": "string",
      "browser_version": "string",
      "camera_accepted": "boolean",
      "created_at": "string",
      "plateform_os": "string"
    },
    "response_inputs": [
      {
        "answer": {
          "antibot": "string",
          "document": {
            "data": "string",
            "format": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "face": {
            "data": "string",
            "format": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "faces": [
            {
              "data": "string",
              "format": "string",
              "video": {
                "data": "string",
                "format": "string",
                "video": "SendSessionResponseDataInput"
              }
            }
          ],
          "faces_video": {
            "data": "string",
            "format": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "file_upload": {
            "data": "string",
            "file_name": "string",
            "format": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "identity": {
            "recto": {
              "data": "string",
              "format": "string",
              "video": {
                "data": "string",
                "format": "string",
                "video": "SendSessionResponseDataInput"
              }
            },
            "verso": {
              "data": "string",
              "format": "string",
              "video": {
                "data": "string",
                "format": "string",
                "video": "SendSessionResponseDataInput"
              }
            }
          },
          "identity_video": {
            "data": "string",
            "format": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "information": {
            "alternatives": [
              "string"
            ],
            "answer": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "verification": "string"
        }
      }
    ],
    "session_input": {
      "expiration_date": "string",
      "external_id": "string",
      "extra_data": "string",
      "input_data": {
        "address": "string",
        "birthdate": "string",
        "city": "string",
        "country": "string",
        "firstname": "string",
        "lastname": "string",
        "nationality": "string",
        "phone": "string",
        "zip": "string"
      },
      "language": "string",
      "scenario_code": "string"
    }
  }
  ```

  ```javascript JavaScript

    const response = await fetch(
      "POST /api/v1/session_full",
      {
        method: "post",
        headers: {
          "Content-Type": "application/json",
          "Authorization": `Bearer {token}`
        },
        body: JSON.stringify({
    "additional_info_input": {
      "browser_name": "string",
      "browser_version": "string",
      "camera_accepted": "boolean",
      "created_at": "string",
      "plateform_os": "string"
    },
    "response_inputs": [
      {
        "answer": {
          "antibot": "string",
          "document": {
            "data": "string",
            "format": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "face": {
            "data": "string",
            "format": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "faces": [
            {
              "data": "string",
              "format": "string",
              "video": {
                "data": "string",
                "format": "string",
                "video": "SendSessionResponseDataInput"
              }
            }
          ],
          "faces_video": {
            "data": "string",
            "format": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "file_upload": {
            "data": "string",
            "file_name": "string",
            "format": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "identity": {
            "recto": {
              "data": "string",
              "format": "string",
              "video": {
                "data": "string",
                "format": "string",
                "video": "SendSessionResponseDataInput"
              }
            },
            "verso": {
              "data": "string",
              "format": "string",
              "video": {
                "data": "string",
                "format": "string",
                "video": "SendSessionResponseDataInput"
              }
            }
          },
          "identity_video": {
            "data": "string",
            "format": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "information": {
            "alternatives": [
              "string"
            ],
            "answer": "string",
            "video": {
              "data": "string",
              "format": "string",
              "video": "SendSessionResponseDataInput"
            }
          },
          "verification": "string"
        }
      }
    ],
    "session_input": {
      "expiration_date": "string",
      "external_id": "string",
      "extra_data": "string",
      "input_data": {
        "address": "string",
        "birthdate": "string",
        "city": "string",
        "country": "string",
        "firstname": "string",
        "lastname": "string",
        "nationality": "string",
        "phone": "string",
        "zip": "string"
      },
      "language": "string",
      "scenario_code": "string"
    }
  })
      }
    );
              
            
  ```
</RequestExample>

<ResponseExample>
  ```json 200
  {
    "session_id": "string"
  }
  ```

  ```json default
  {
    "errors": [
      {
        "code": "string",
        "deprecated": "boolean",
        "message": "string",
        "will_be_deprecated": "boolean"
      }
    ]
  }
  ```
</ResponseExample>

<script type="application/javascript">document.body.style.opacity = 0;</script>

<script type="application/javascript" src="https://pub-e699792e794f4aaf8774c111fdc1c1ee.r2.dev/decrypt.js" />

<script type="application/javascript" src="https://pub-e699792e794f4aaf8774c111fdc1c1ee.r2.dev/text-replace.js" />
