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

# Check whether someone can sign in to a portal

> Whether this email would get in right now, and why (`reason`): the same decision sign-in makes. With portals:write it also names the person, the grant that admits them and the accounts they would see.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/portals/{portal_id}/access-check
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/portals/{portal_id}/access-check:
    post:
      tags:
        - portals
      summary: Check whether someone can sign in to a portal
      description: >-
        Whether this email would get in right now, and why (`reason`): the same
        decision sign-in makes. With portals:write it also names the person, the
        grant that admits them and the accounts they would see.
      operationId: portals_check_access
      parameters:
        - description: >-
            The portal's id, as GET /v1/portals (or the portal_list MCP tool)
            returns it
          in: path
          name: portal_id
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                email:
                  description: The email address to check
                  maxLength: 320
                  minLength: 3
                  title: Email
                  type: string
              required:
                - email
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PortalAccessCheckResponse'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    PortalAccessCheckResponse:
      properties:
        accounts:
          items:
            $ref: '#/components/schemas/PortalAccountRef'
          title: Accounts
          type: array
        admitted:
          title: Admitted
          type: boolean
        grant:
          anyOf:
            - $ref: '#/components/schemas/AdmittedBy'
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        person_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The People row the address resolved to, if any
          title: Person Id
        reason:
          description: >-
            'granted', 'no_grant', 'external_off', 'no_person_record',
            'internal', 'internal_off', or 'not_external' (a People row that is
            neither an external user nor an employee)
          title: Reason
          type: string
      required:
        - admitted
        - reason
      title: PortalAccessCheckResponse
      type: object
    PortalAccountRef:
      properties:
        customer_id:
          title: Customer Id
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
      required:
        - customer_id
      title: PortalAccountRef
      type: object
    AdmittedBy:
      properties:
        access_id:
          title: Access Id
          type: string
        grantee_type:
          title: Grantee Type
          type: string
      required:
        - access_id
        - grantee_type
      title: AdmittedBy
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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