---
updatedAt: 2026-05-21T10:45:17.000Z
agentTools:
  projectIndex: https://docs.qpilot.cloud/llms.txt
---

# /AccessTokens/Login

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "QPilot API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.qpilot.cloud"
    }
  ],
  "paths": {
    "/AccessTokens/Login": {
      "post": {
        "tags": [
          "AccessTokens"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Requests.LoginDto"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Requests.LoginDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Requests.LoginDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Requests.LoginDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Responses.LoginResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Responses.LoginResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QPilot.Core.Models.Dto.Responses.LoginResponseDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "QPilot.Core.Models.AccessScope": {
        "enum": [
          "None",
          "Merchant",
          "Site",
          "Customer",
          "Administrator",
          "All"
        ],
        "type": "string"
      },
      "QPilot.Core.Models.Dto.Requests.LoginDto": {
        "required": [
          "accessScope",
          "email",
          "password"
        ],
        "type": "object",
        "properties": {
          "accessScope": {
            "$ref": "#/components/schemas/QPilot.Core.Models.AccessScope"
          },
          "email": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string"
          },
          "password": {
            "minLength": 1,
            "type": "string"
          },
          "emailVerificationToken": {
            "type": "string",
            "nullable": true
          },
          "integration": {
            "$ref": "#/components/schemas/QPilot.Core.Models.IntegrationNames"
          }
        },
        "additionalProperties": false
      },
      "QPilot.Core.Models.Dto.Responses.LoginResponseDto": {
        "type": "object",
        "properties": {
          "userEmail": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "user": {
            "$ref": "#/components/schemas/QPilot.Core.Models.Users.User"
          },
          "token": {
            "type": "string",
            "format": "byte",
            "nullable": true
          },
          "tokenAuth": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "tokenBearerAuth": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "accessScope": {
            "$ref": "#/components/schemas/QPilot.Core.Models.AccessScope"
          },
          "customerId": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QPilot.Core.Models.IntegrationNames": {
        "enum": [
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "format": "int32"
      },
      "QPilot.Core.Models.SubscriptionStatus": {
        "enum": [
          "None",
          "Trial",
          "Active",
          "Inactive"
        ],
        "type": "string"
      },
      "QPilot.Core.Models.SubscriptionTierType": {
        "enum": [
          0,
          1,
          2,
          4,
          8,
          16,
          32,
          64,
          128,
          256
        ],
        "type": "integer",
        "format": "int32"
      },
      "QPilot.Core.Models.UserRole": {
        "enum": [
          "None",
          "Merchant",
          "Administrator"
        ],
        "type": "string"
      },
      "QPilot.Core.Models.Users.User": {
        "required": [
          "email",
          "password"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "email": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string"
          },
          "password": {
            "maxLength": 32,
            "type": "string",
            "format": "byte"
          },
          "role": {
            "$ref": "#/components/schemas/QPilot.Core.Models.UserRole"
          },
          "subscriptionId": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "subscriptionStatus": {
            "$ref": "#/components/schemas/QPilot.Core.Models.SubscriptionStatus"
          },
          "subscriptionPaymentMethodDescription": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "subscriptionNextBillingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subscriptionUpdatedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "activeTier": {
            "$ref": "#/components/schemas/QPilot.Core.Models.SubscriptionTierType"
          },
          "chargifyProductHandle": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "maxLength": 30,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "firstLogin": {
            "type": "integer",
            "format": "int32"
          },
          "accountOwnerEmail": {
            "maxLength": 128,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "emailVerificationStatus": {
            "$ref": "#/components/schemas/QPilot.Core.Models.Users.UserVerificationStatus"
          }
        },
        "additionalProperties": false
      },
      "QPilot.Core.Models.Users.UserVerificationStatus": {
        "enum": [
          "Unknown",
          "Verified",
          "Unverified",
          "PendingVerification"
        ],
        "type": "string"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Authorization header using the Bearer scheme. Example: \"Bearer {token}\"",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```