Legal Data Hunter Auth API

The Auth API from Legal Data Hunter — 16 operation(s) for auth.

GitHub OpenAPI

Operations 17

POST /auth/legal-acceptance Accept Current Legal Bundle #
POST /auth/email-change/request Request Email Change #
POST /auth/email-change/confirm Confirm Email Change #
POST /auth/password-reset/request Request Password Reset #
POST /auth/password-reset/confirm Confirm Password Reset #
POST /auth/register Register #
POST /auth/login Login #
POST /auth/password-authorize Password Authorize #
POST /auth/dev-login Dev Login #
GET /auth/github Github Login #
GET /auth/github/callback Github Callback #
GET /auth/google Google Login #
GET /auth/google/callback Google Callback #
GET /auth/microsoft Microsoft Login #
GET /auth/microsoft/callback Microsoft Callback #
GET /auth/me Me #
DELETE /auth/me Delete Me #

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/legaldatahunter-com:legaldatahunter-com-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

legaldatahunter-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Legal Search Auth API
  description: Hybrid semantic + keyword search over EU legal data (case law, legislation, doctrine).
  version: 0.1.0
tags:
- name: Auth
paths:
  /auth/legal-acceptance:
    post:
      tags:
      - Auth
      summary: Accept Current Legal Bundle
      operationId: accept_current_legal_bundle_auth_legal_acceptance_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/_LegalAcceptanceBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/email-change/request:
    post:
      tags:
      - Auth
      summary: Request Email Change
      operationId: request_email_change_auth_email_change_request_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/_EmailChangeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/email-change/confirm:
    post:
      tags:
      - Auth
      summary: Confirm Email Change
      operationId: confirm_email_change_auth_email_change_confirm_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/_EmailChangeConfirm'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/password-reset/request:
    post:
      tags:
      - Auth
      summary: Request Password Reset
      operationId: request_password_reset_auth_password_reset_request_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/_PasswordResetRequestBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/password-reset/confirm:
    post:
      tags:
      - Auth
      summary: Confirm Password Reset
      operationId: confirm_password_reset_auth_password_reset_confirm_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/_PasswordResetConfirmBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/register:
    post:
      tags:
      - Auth
      summary: Register
      description: 'Create a new account with email + password.


        Returns HTTP 409 if the email is already registered (including via OAuth),

        so there is no way to add a password to an existing account without

        the account holder explicitly requesting it.'
      operationId: register_auth_register_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/_EmailPasswordBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/login:
    post:
      tags:
      - Auth
      summary: Login
      description: 'Sign in with email + password.


        Throttled per email (5 failures / 15 min) and per client IP (30 / 15 min);

        a blocked email or IP gets 429 + Retry-After even with the right password.'
      operationId: login_auth_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/_EmailPasswordBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/password-authorize:
    post:
      tags:
      - Auth
      summary: Password Authorize
      description: 'Email/password sign-in that completes an MCP OAuth 2.1 flow.


        Called by the JS on the /oauth/authorize consent page. Accepts JSON with

        {email, password, mcp_flow} where mcp_flow is the base64 OAuth param blob

        embedded in the page by the server. Returns {redirect_url} on success so

        JS can forward the browser to the OAuth client with the auth code.'
      operationId: password_authorize_auth_password_authorize_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /auth/dev-login:
    post:
      tags:
      - Auth
      summary: Dev Login
      description: Preview-only password login. Visit /login#dev to access the hidden form.
      operationId: dev_login_auth_dev_login_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /auth/github:
    get:
      tags:
      - Auth
      summary: Github Login
      description: Redirect to GitHub OAuth authorization.
      operationId: github_login_auth_github_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /auth/github/callback:
    get:
      tags:
      - Auth
      summary: Github Callback
      description: Handle GitHub OAuth callback.
      operationId: github_callback_auth_github_callback_get
      parameters:
      - name: code
        in: query
        required: true
        schema:
          type: string
          title: Code
      - name: state
        in: query
        required: true
        schema:
          type: string
          title: State
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/google:
    get:
      tags:
      - Auth
      summary: Google Login
      description: Redirect to Google OAuth authorization.
      operationId: google_login_auth_google_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /auth/google/callback:
    get:
      tags:
      - Auth
      summary: Google Callback
      description: Handle Google OAuth callback.
      operationId: google_callback_auth_google_callback_get
      parameters:
      - name: code
        in: query
        required: true
        schema:
          type: string
          title: Code
      - name: state
        in: query
        required: true
        schema:
          type: string
          title: State
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/microsoft:
    get:
      tags:
      - Auth
      summary: Microsoft Login
      description: Redirect to Microsoft OAuth authorization.
      operationId: microsoft_login_auth_microsoft_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /auth/microsoft/callback:
    get:
      tags:
      - Auth
      summary: Microsoft Callback
      description: Handle Microsoft OAuth callback.
      operationId: microsoft_callback_auth_microsoft_callback_get
      parameters:
      - name: code
        in: query
        required: true
        schema:
          type: string
          title: Code
      - name: state
        in: query
        required: true
        schema:
          type: string
          title: State
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/me:
    get:
      tags:
      - Auth
      summary: Me
      description: Return current user info.
      operationId: me_auth_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    delete:
      tags:
      - Auth
      summary: Delete Me
      description: Permanently delete the authenticated user's application account.
      operationId: delete_me_auth_me_delete
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/_DeleteAccountBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    _EmailChangeRequest:
      properties:
        email:
          type: string
          title: Email
        password:
          type: string
          title: Password
      type: object
      required:
      - email
      - password
      title: _EmailChangeRequest
    _PasswordResetRequestBody:
      properties:
        email:
          type: string
          title: Email
      type: object
      required:
      - email
      title: _PasswordResetRequestBody
    _DeleteAccountBody:
      properties:
        confirmation:
          type: string
          title: Confirmation
      type: object
      required:
      - confirmation
      title: _DeleteAccountBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    _EmailChangeConfirm:
      properties:
        token:
          type: string
          title: Token
        password:
          type: string
          title: Password
      type: object
      required:
      - token
      - password
      title: _EmailChangeConfirm
    _LegalAcceptanceBody:
      properties:
        legal_acceptance_token:
          type: string
          title: Legal Acceptance Token
        accept_terms:
          type: boolean
          title: Accept Terms
          default: false
        acknowledge_privacy:
          type: boolean
          title: Acknowledge Privacy
          default: false
      type: object
      required:
      - legal_acceptance_token
      title: _LegalAcceptanceBody
    _EmailPasswordBody:
      properties:
        email:
          type: string
          title: Email
        password:
          type: string
          title: Password
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        accept_terms:
          type: boolean
          title: Accept Terms
          default: false
        acknowledge_privacy:
          type: boolean
          title: Acknowledge Privacy
          default: false
      type: object
      required:
      - email
      - password
      title: _EmailPasswordBody
    _PasswordResetConfirmBody:
      properties:
        token:
          type: string
          title: Token
        password:
          type: string
          title: Password
      type: object
      required:
      - token
      - password
      title: _PasswordResetConfirmBody
    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