Layero Site Auth API

The site-auth API from Layero — 6 operation(s) for site-auth.

GitHub OpenAPI

Operations 7

GET /projects/{project_id}/site-auth/users List Users #
POST /projects/{project_id}/site-auth/users Create User #
PUT /projects/{project_id}/site-auth/users/{user_id}/password Update User Password #
DELETE /projects/{project_id}/site-auth/users/{user_id} Delete User #
POST /public/site-auth/login Public Login #
GET /public/site-auth/realm Public Realm #
POST /public/site-auth/logout Public Logout #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/layero-ru:layero-ru-site-auth-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

layero-ru-site-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Layero Site Auth API
  version: 0.1.0
tags:
- name: site-auth
paths:
  /projects/{project_id}/site-auth/users:
    get:
      tags:
      - site-auth
      summary: List Users
      operationId: list_users_projects__project_id__site_auth_users_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SiteUserOut'
                title: Response List Users Projects  Project Id  Site Auth Users Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - site-auth
      summary: Create User
      operationId: create_user_projects__project_id__site_auth_users_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SiteUserIn'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiteUserOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/site-auth/users/{user_id}/password:
    put:
      tags:
      - site-auth
      summary: Update User Password
      operationId: update_user_password_projects__project_id__site_auth_users__user_id__password_put
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: User Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SiteUserPasswordIn'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/site-auth/users/{user_id}:
    delete:
      tags:
      - site-auth
      summary: Delete User
      operationId: delete_user_projects__project_id__site_auth_users__user_id__delete
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: User Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /public/site-auth/login:
    post:
      tags:
      - site-auth
      summary: Public Login
      operationId: public_login_public_site_auth_login_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Public Login Public Site Auth Login Post
  /public/site-auth/realm:
    get:
      tags:
      - site-auth
      summary: Public Realm
      operationId: public_realm_public_site_auth_realm_get
      parameters:
      - name: host
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Host
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Public Realm Public Site Auth Realm Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /public/site-auth/logout:
    post:
      tags:
      - site-auth
      summary: Public Logout
      operationId: public_logout_public_site_auth_logout_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Public Logout Public Site Auth Logout Post
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    SiteUserPasswordIn:
      properties:
        password:
          type: string
          maxLength: 200
          minLength: 8
          title: Password
      type: object
      required:
      - password
      title: SiteUserPasswordIn
    SiteUserIn:
      properties:
        username:
          type: string
          maxLength: 64
          minLength: 1
          pattern: ^[A-Za-z0-9._-]+$
          title: Username
        password:
          type: string
          maxLength: 200
          minLength: 8
          title: Password
      type: object
      required:
      - username
      - password
      title: SiteUserIn
    SiteUserOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        username:
          type: string
          title: Username
        created_at:
          type: string
          format: date-time
          title: Created At
        last_login_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Login At
      type: object
      required:
      - id
      - username
      - created_at
      - last_login_at
      title: SiteUserOut