Lytx Consent API

The Consent API from Lytx — 2 operation(s) for consent.

Operations 2

Documentation

📖
Documentation
https://developer.lytx.com/openapispec/consent.openapi
📖
APIReference
https://developer.lytx.com/openapispec/consent.openapi
📖
Documentation
https://developer.lytx.com/openapispec/device.openapi
📖
APIReference
https://developer.lytx.com/openapispec/device.openapi
📖
Documentation
https://developer.lytx.com/openapispec/deviceplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/deviceplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/devicestatusinfoplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/devicestatusinfoplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/diagnosticsplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/diagnosticsplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/distance.openapi
📖
APIReference
https://developer.lytx.com/openapispec/distance.openapi
📖
Documentation
https://developer.lytx.com/openapispec/driver.assignment.openapi
📖
APIReference
https://developer.lytx.com/openapispec/driver.assignment.openapi
📖
Documentation
https://developer.lytx.com/openapispec/driversplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/driversplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/dvir.openapi
📖
APIReference
https://developer.lytx.com/openapispec/dvir.openapi
📖
Documentation
https://developer.lytx.com/openapispec/dvirplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/dvirplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/ecm.openapi
📖
APIReference
https://developer.lytx.com/openapispec/ecm.openapi
📖
Documentation
https://developer.lytx.com/openapispec/ecm.v2.openapi
📖
APIReference
https://developer.lytx.com/openapispec/ecm.v2.openapi
📖
Documentation
https://developer.lytx.com/openapispec/exceptioneventplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/exceptioneventplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/faultdataplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/faultdataplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/fleetutilizationplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/fleetutilizationplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/geofences.openapi
📖
APIReference
https://developer.lytx.com/openapispec/geofences.openapi
📖
Documentation
https://developer.lytx.com/openapispec/gps.openapi
📖
APIReference
https://developer.lytx.com/openapispec/gps.openapi
📖
Documentation
https://developer.lytx.com/openapispec/gpsplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/gpsplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/group.openapi
📖
APIReference
https://developer.lytx.com/openapispec/group.openapi
📖
Documentation
https://developer.lytx.com/openapispec/group.v2.openapi
📖
APIReference
https://developer.lytx.com/openapispec/group.v2.openapi
📖
Documentation
https://developer.lytx.com/openapispec/groupplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/groupplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/hos.openapi
📖
APIReference
https://developer.lytx.com/openapispec/hos.openapi
📖
Documentation
https://developer.lytx.com/openapispec/hosplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/hosplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/iftareportplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/iftareportplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.driversession.services.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.driversession.services.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.groups.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.groups.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.hos.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.hos.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.vehicleinfo.aggregator.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.vehicleinfo.aggregator.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.vehicles.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.vehicles.openapi
📖
Documentation
https://developer.lytx.com/openapispec/legacy.videoplatform.openapi
📖
APIReference
https://developer.lytx.com/openapispec/legacy.videoplatform.openapi
📖
Documentation
https://developer.lytx.com/openapispec/maintenancerecordsplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/maintenancerecordsplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/ruleplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/ruleplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/safety.openapi
📖
APIReference
https://developer.lytx.com/openapispec/safety.openapi
📖
Documentation
https://developer.lytx.com/openapispec/statusdataplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/statusdataplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/trips.openapi
📖
APIReference
https://developer.lytx.com/openapispec/trips.openapi
📖
Documentation
https://developer.lytx.com/openapispec/tripsplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/tripsplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/user.openapi
📖
APIReference
https://developer.lytx.com/openapispec/user.openapi
📖
Documentation
https://developer.lytx.com/openapispec/userplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/userplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/vehicles.openapi
📖
APIReference
https://developer.lytx.com/openapispec/vehicles.openapi
📖
Documentation
https://developer.lytx.com/openapispec/video.openapi
📖
APIReference
https://developer.lytx.com/openapispec/video.openapi
📖
Documentation
https://developer.lytx.com/openapispec/zonesplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/zonesplus.openapi
📖
Documentation
https://developer.lytx.com/openapispec/zonesputandpostplus.openapi
📖
APIReference
https://developer.lytx.com/openapispec/zonesputandpostplus.openapi

Specifications

Other Resources

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/lytx-consent-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

lytx-consent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lytx..Management.Api Consent API
  description: 'API for retrieving and updating user consent status, requiring authentication.

    '
  version: 1.0.0
servers:
- url: https://api.lytx.com/consent-management
security:
- bearerAuth: []
tags:
- name: Consent
paths:
  /userconsent/status:
    get:
      operationId: Consent_GetUserConsentStatus
      summary: Get User Consent Status
      description: 'Retrieve the current consent status for a user across all products. Returns one consent record per product for the user.


        **IMPORTANT:** This API is only available if your company and Lytx, Inc. has executed an Addendum to Master Purchase Agreement (Facial ID and Consent Management). Your company is solely responsible for providing any necessary notices and/or obtaining all necessary consents for the collection and processing of video, biometric and/or other data processed by Lytx to perform the Facial ID Service which may be required under applicable law.

        '
      tags:
      - Consent
      parameters:
      - name: userId
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
          format: uuid
          example: 550e8400-e29b-41d4-a716-446655440000
        description: Unique identifier of the user. Required if `employeeId` is not provided.
      - name: employeeId
        in: query
        required: false
        schema:
          type:
          - string
          - 'null'
          example: EMP-9876
        description: Employee identifier associated with the user. Required if `userId` is not provided.
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ConsentStatusResponseViewModel'
              example:
                data:
                - userId: 550e8400-e29b-41d4-a716-446655440000
                  employeeId: EMP-9876
                  productName: facialId
                  consentStatus: Obtained
                  consentDate: '2026-03-15T10:30:00.000Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                missingIdentifier:
                  summary: Neither userId nor employeeId provided
                  value:
                    error: Bad Request
                    message: Either UserId or EmployeeId must be provided.
                conflictingIdentifiers:
                  summary: userId and employeeId refer to different users
                  value:
                    error: Bad Request
                    message: The provided UserId and EmployeeId refer to different users.
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Forbidden
                message: Resource not available.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                companyNotFound:
                  summary: Company data not found
                  value:
                    error: Not Found
                    message: Company data not found.
                userNotFound:
                  summary: No active user found for employee ID
                  value:
                    error: Not Found
                    message: No active user found for the provided Employee ID.
                consentNotFound:
                  summary: No consent records found
                  value:
                    error: Not Found
                    message: No consent records found for the specified user.
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal Server Error
                message: An unexpected error occurred.
  /userconsent/update:
    post:
      operationId: Consent_UpdateUserConsent
      summary: Update User Consent
      description: 'Update the consent status for one or more users (with Driver role) for a specific product. Up to 2000 users can be updated in a single call.


        **IMPORTANT:** This API is only available if your company and Lytx, Inc. has executed an Addendum to Master Purchase Agreement (Facial ID and Consent Management). Your company is solely responsible for providing any necessary notices and/or obtaining all necessary consents for the collection and processing of video, biometric and/or other data processed by Lytx to perform the Facial ID Service which may be required under applicable law.

        '
      tags:
      - Consent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/UpdateConsentRequestViewModel'
              maxItems: 2000
            example:
            - userId: null
              employeeId: EMP-9876
              productName: facialId
              consentStatus: Obtained
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UpdateConsentResponseViewModel'
              example:
              - userId: 0000ffff-0000-1600-e03a-ed46b0d60000
                employeeId: Test4kUsers546
                status: AlreadyUpdated
                errorMessage: null
        '400':
          description: Bad Request — request body is null, empty, or exceeds the maximum allowed items
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                emptyRequest:
                  summary: Empty request body
                  value:
                    error: Bad Request
                    message: At least one consent status update request is required.
                maxItemsExceeded:
                  summary: Too many items in request
                  value:
                    error: Bad Request
                    message: A maximum of 2000 consent status update requests can be processed in a single call.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Unauthorized
                message: Access denied
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Forbidden
                message: Resource not available.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Not Found
                message: Company data not found.
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: Internal Server Error
                message: An unexpected error occurred.
components:
  schemas:
    UpdateConsentResponseViewModel:
      type: object
      properties:
        userId:
          type: string
          format: uuid
          example: 0000ffff-0000-1600-e03a-ed46b0d60000
          description: User ID the consent update was applied to.
        employeeId:
          type:
          - string
          - 'null'
          example: Test4kUsers546
          description: Employee ID associated with the user.
        status:
          type:
          - string
          - 'null'
          example: AlreadyUpdated
          description: 'Result status of the update operation.

            - `UpdatedSuccessfully`: Consent status was updated.

            - `AlreadyUpdated`: Consent was already set to the requested status; no change made.

            - `Failed`: Update failed. See `errorMessage` for details.

            '
          enum:
          - UpdatedSuccessfully
          - AlreadyUpdated
          - Failed
        errorMessage:
          type:
          - string
          - 'null'
          example: null
          description: 'Error message if the update failed; `null` otherwise. Possible per-row failure messages:

            - `Either UserId or EmployeeId must be provided.`

            - `No active user found for the provided Employee ID.`

            - `No active user found for the provided User ID.`

            - `Cannot update consent for non-driver users.`

            - `Only ''FacialId'' is allowed for ProductName.`

            '
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: An unexpected error occurred.
    ConsentStatusResponseViewModel:
      type: object
      properties:
        userId:
          type:
          - string
          - 'null'
          format: uuid
          example: 550e8400-e29b-41d4-a716-446655440000
          description: Unique identifier of the user.
        employeeId:
          type:
          - string
          - 'null'
          example: EMP-9876
          description: Employee identifier associated with the user.
        productName:
          type: string
          example: facialId
          description: Human-readable product name. Only Facial ID product is supported as of today.
        consentStatus:
          type:
          - string
          - 'null'
          example: Obtained
          description: Current driver consent status for this product.
        consentDate:
          type:
          - string
          - 'null'
          format: date-time
          example: '2026-03-15T10:30:00.000Z'
          description: Date and time consent was given or last updated.
    UpdateConsentRequestViewModel:
      type: object
      required:
      - productName
      - consentStatus
      properties:
        userId:
          type:
          - string
          - 'null'
          format: uuid
          example: 550e8400-e29b-41d4-a716-446655440000
          description: 'Unique identifier of the user. Required if `employeeId` is not provided.

            '
        employeeId:
          type:
          - string
          - 'null'
          example: EMP-9876
          description: 'Employee identifier associated with the user. Required if `userId` is not provided. The system resolves the corresponding `userId` internally before processing.

            '
        productName:
          type: string
          example: facialId
          description: 'Product name to update consent status for. Only Facial ID product is supported as of today. Enter product name as:

            * `facialID`

            '
        consentStatus:
          type: string
          example: Obtained
          description: "New consent status to apply for the specified product.\n- `Obtained`: Valid Consent Obtained Via Alternative Method. Applicable when you have\n  obtained necessary consent through an alternative method and valid consents are still\n  in effect.\n\n- `NotRequired`: Consent Not Required. Valid when your organization has determined,\n  and bears sole responsibility for such determination, that consent is not required by\n  law or your organization's policies.\n"
          enum:
          - Obtained
          - NotRequired
        source:
          type:
          - string
          - 'null'
          example: Manual
          description: 'Source of the consent update. Defaults to "Manual" if not provided.

            '
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer