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

# Platform Login

> Password login from the platform page, with no hub.

Accepts only a browser request whose Origin is the platform hub frontend, and
refuses any request whose Host is an active custom domain. Anything else
answers 422 ``platform_login_unavailable`` before the password is checked.
Other callers use ``POST /api/contact-auth/login`` with a hub.



## OpenAPI

````yaml /openapi/mio-openapi.json post /api/v1/contact-auth/platform/login
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/contact-auth/platform/login:
    post:
      tags:
        - contact-auth
      summary: Platform Login
      description: >-
        Password login from the platform page, with no hub.


        Accepts only a browser request whose Origin is the platform hub
        frontend, and

        refuses any request whose Host is an active custom domain. Anything else

        answers 422 ``platform_login_unavailable`` before the password is
        checked.

        Other callers use ``POST /api/contact-auth/login`` with a hub.
      operationId: contact_auth.post_contact_auth_post_contact_auth_platform_login
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/PlatformLoginRequestEnvelope'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/TokenPairResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    PlatformLoginRequestEnvelope:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/PlatformLoginRequestResource'
      required:
        - data
      title: PlatformLoginRequestEnvelope
      type: object
    TokenPairResponse:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/TokenPairResource'
      required:
        - data
      title: TokenPairResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    PlatformLoginRequestResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/PlatformLoginRequestAttributes'
        type:
          const: platform_login_requests
          title: Type
          type: string
      required:
        - type
        - attributes
      title: PlatformLoginRequestResource
      type: object
    TokenPairResource:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/TokenPairAttributes'
        id:
          title: Id
          type: string
        type:
          const: token_pairs
          default: token_pairs
          title: Type
          type: string
      required:
        - id
        - attributes
      title: TokenPairResource
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    PlatformLoginRequestAttributes:
      additionalProperties: false
      properties:
        email:
          format: email
          title: Email
          type: string
        password:
          maxLength: 4096
          minLength: 1
          title: Password
          type: string
      required:
        - email
        - password
      title: PlatformLoginRequestAttributes
      type: object
    TokenPairAttributes:
      additionalProperties: false
      properties:
        access_token:
          title: Access Token
          type: string
        expires_in:
          title: Expires In
          type: integer
        refresh_token:
          title: Refresh Token
          type: string
        token_type:
          const: bearer
          default: bearer
          title: Token Type
          type: string
      required:
        - access_token
        - refresh_token
        - expires_in
      title: TokenPairAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http

````

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