McAfee (Trellix) Authentication API

Session authentication and management

Operations 5

POST /v2/login McAfee Authenticate and create session #
DELETE /v2/logout McAfee End current session #
POST /iam/v1.1/token McAfee Obtain access token #
POST /login McAfee Authenticate and create session #
POST /logout McAfee End current session #

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/mcafee-authentication-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

mcafee-authentication-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mcafee Authentication API
  contact:
    name: McAfee Support
    url: https://www.mcafee.com/enterprise/en-us/support.html
  termsOfService: https://www.mcafee.com/enterprise/en-us/about/legal/terms-of-use.html
  version: '1.0'
  description: 'Operations tagged Authentication across 3 of this provider''s published API definitions: mcafee-esm-openapi.yml, mcafee-mvision-openapi.yml, mcafee-web-gateway-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{esm-server}/rs/esm
  description: McAfee ESM Server
  variables:
    esm-server:
      default: your-esm-server
      description: Hostname or IP of the ESM server
- url: https://api.mvision.mcafee.com
  description: MVISION Cloud Production
- url: https://{mwg-server}:4712/Konfigurator/REST
  description: McAfee Web Gateway Administration
  variables:
    mwg-server:
      default: your-mwg-server
      description: Hostname or IP of the MWG appliance
tags:
- name: Authentication
  description: Session authentication and management
paths:
  /v2/login:
    post:
      operationId: login
      summary: McAfee Authenticate and create session
      description: Authenticate with ESM credentials to obtain a session token. The session token must be included in subsequent requests as a cookie or header.
      tags:
      - Authentication
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - username
              - password
              properties:
                username:
                  type: string
                  description: ESM administrator username
                password:
                  type: string
                  description: Base64-encoded password
                locale:
                  type: string
                  description: Locale for the session
                  default: en_US
      responses:
        '200':
          description: Authentication successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoginResponse'
        '401':
          description: Invalid credentials
      security: []
    servers:
    - url: https://{esm-server}/rs/esm
      description: McAfee ESM Server
      variables:
        esm-server:
          default: your-esm-server
          description: Hostname or IP of the ESM server
  /v2/logout:
    delete:
      operationId: logout
      summary: McAfee End current session
      description: Terminate the current authenticated session.
      tags:
      - Authentication
      responses:
        '200':
          description: Session terminated
        '401':
          description: Not authenticated
      security:
      - sessionAuth: []
    servers:
    - url: https://{esm-server}/rs/esm
      description: McAfee ESM Server
      variables:
        esm-server:
          default: your-esm-server
          description: Hostname or IP of the ESM server
  /iam/v1.1/token:
    post:
      operationId: getToken
      summary: McAfee Obtain access token
      description: Authenticate using client credentials to obtain a bearer token for accessing MVISION APIs. Tokens are valid for a limited duration.
      tags:
      - Authentication
      requestBody:
        required: true
        content:
          application/vnd.api+json:
            schema:
              type: object
              required:
              - scope
              - grant_type
              - audience
              properties:
                scope:
                  type: string
                  description: OAuth scope for the token
                  example: edr.threats.rb edr.alerts.r
                grant_type:
                  type: string
                  enum:
                  - client_credentials
                  description: OAuth 2.0 grant type
                audience:
                  type: string
                  description: Target API audience
                  example: mcafee
      responses:
        '200':
          description: Access token returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '401':
          description: Invalid credentials
      security: []
    servers:
    - url: https://api.mvision.mcafee.com
      description: MVISION Cloud Production
  /login:
    post:
      operationId: login
      summary: McAfee Authenticate and create session
      description: Authenticate with administrator credentials to establish a session. Returns a session cookie used for subsequent API requests.
      tags:
      - Authentication
      requestBody:
        required: true
        content:
          application/xml:
            schema:
              type: object
              properties:
                userName:
                  type: string
                  description: Administrator username
                password:
                  type: string
                  description: Administrator password
      responses:
        '200':
          description: Authentication successful, session cookie returned
          headers:
            Set-Cookie:
              description: Session cookie for subsequent requests
              schema:
                type: string
        '401':
          description: Authentication failed
      security: []
    servers:
    - url: https://{mwg-server}:4712/Konfigurator/REST
      description: McAfee Web Gateway Administration
      variables:
        mwg-server:
          default: your-mwg-server
          description: Hostname or IP of the MWG appliance
  /logout:
    post:
      operationId: logout
      summary: McAfee End current session
      description: Terminate the current session and invalidate the session cookie.
      tags:
      - Authentication
      responses:
        '200':
          description: Session terminated
        '401':
          description: Not authenticated
      security:
      - cookieAuth: []
    servers:
    - url: https://{mwg-server}:4712/Konfigurator/REST
      description: McAfee Web Gateway Administration
      variables:
        mwg-server:
          default: your-mwg-server
          description: Hostname or IP of the MWG appliance
components:
  schemas:
    LoginResponse:
      type: object
      properties:
        session:
          type: string
          description: Session token for subsequent requests
        userId:
          type: integer
          description: Authenticated user ID
        roles:
          type: array
          items:
            type: string
          description: User roles
        locale:
          type: string
          description: Session locale
    TokenResponse:
      type: object
      properties:
        access_token:
          type: string
          description: OAuth 2.0 access token
        token_type:
          type: string
          description: Token type (bearer)
        expires_in:
          type: integer
          description: Token expiration time in seconds
        scope:
          type: string
          description: Granted scope
  securitySchemes:
    sessionAuth:
      type: apiKey
      in: cookie
      name: JWTToken
      description: Session token obtained from the login endpoint
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth 2.0 bearer token from client credentials grant
    cookieAuth:
      type: apiKey
      in: cookie
      name: JSESSIONID
      description: Session cookie obtained from the login endpoint
x-refined-from:
- mcafee-esm-openapi.yml
- mcafee-mvision-openapi.yml
- mcafee-web-gateway-openapi.yml