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

# `POST /v1/control/invitations/{token}/accept`: creates the account.

> The session it returns is *pending*: the new reviewer must enrol a second
factor before it opens anything.



## OpenAPI

````yaml /openapi.json post /v1/control/invitations/{token}/accept
openapi: 3.1.0
info:
  title: Esectra API
  description: >-
    Transaction screening, identity verification, and wallet risk.


    Every create route accepts `Idempotency-Key`; replaying one returns the
    original record with `200` where the first call returned `201`. `POST
    /v1/transactions` requires the header, because a duplicated transaction is a
    duplicated financial record.
  license:
    name: proprietary
    identifier: proprietary
  version: 0.1.0
servers:
  - url: https://qa.esectra.com
    description: Esectra QA Documentation
security: []
paths:
  /v1/control/invitations/{token}/accept:
    post:
      tags:
        - Control
      summary: '`POST /v1/control/invitations/{token}/accept`: creates the account.'
      description: >-
        The session it returns is *pending*: the new reviewer must enrol a
        second

        factor before it opens anything.
      operationId: accept_invite_handler
      parameters:
        - name: token
          in: path
          description: Invitation token
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcceptInviteBody'
        required: true
      responses:
        '201':
          description: Account created; a session cookie is set
        '404':
          description: Unknown, expired or already-used token
        '422':
          description: The password is not acceptable
        '503':
          description: A backing store could not be reached
components:
  schemas:
    AcceptInviteBody:
      type: object
      description: The password an invitee is choosing.
      required:
        - display_name
        - password
      properties:
        display_name:
          type: string
          description: Name to show in the console.
        password:
          type: string
          description: The password they are setting.

````