TrustArc Sessions API

The Sessions API from TrustArc — 5 operation(s) for sessions.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/sessions/userprofiles List active user sessions · List active users #
Ask an LLM
“Which users are currently active in Guardian?”
“Can I find one active user by username?”
Tell an agent
List active users.
Find active user {username}.
GET /api/v1/sessions/userprofiles/count Count active users · Count active users #
Ask an LLM
“How many users are active right now?”
“What is the total count of active users?”
Tell an agent
Count active users.
Tell me how many active users exist.
GET /api/v1/sessions/usernames/count Count sessions for active users · Count active users sessions #
Ask an LLM
“How many sessions are open for a list of active users?”
“Can I get session counts for several active users at once?”
Tell an agent
Count sessions for active users {usernames}.
Give me session counts for {usernames}.
DELETE /api/v1/sessions/usernames Delete sessions for several active users · Delete all active user #
Ask an LLM
“How do I end the sessions of a list of active users?”
“Can I clear sessions for multiple active users at once?”
Tell an agent destructive · confirm first
Delete sessions for active users {usernames}.
End all sessions of {usernames}.
DELETE /api/v1/sessions/usernames/{username} Delete one active user's session · Delete active user #
Ask an LLM
“How do I end a single active user's session?”
“Can I remove one active user from Guardian?”
Tell an agent destructive · confirm first
Delete the session of active user {username}.
End the session for {username}.

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/trustarc:trustarc-sessions-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

trustarc-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Guardian Sessions API
  description: Guardian Authentication
  version: v1
servers:
- url: https://login.truste.com
  description: Generated server url
tags:
- name: Sessions
paths:
  /api/v1/sessions/userprofiles:
    get:
      tags:
      - Sessions
      operationId: listActiveUsers
      parameters:
      - name: username
        in: query
        required: false
        schema:
          type: string
          default: ''
      - name: page
        in: query
        description: Results page you want to retrieve (0..N).
        schema:
          default: 0
          minimum: 0
      - name: size
        in: query
        description: Number of recods per page.
        schema:
          default: 10
          minimum: 1
      - name: sort
        in: query
        description: 'Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.'
        schema:
          type: array
          items: {}
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageUserProfileSessionCountDto'
      security:
      - guardianAuth: []
      summary: List active users
      x-summary-source: derived
  /api/v1/sessions/userprofiles/count:
    get:
      tags:
      - Sessions
      operationId: countActiveUsers
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: integer
                format: int64
      security:
      - guardianAuth: []
      summary: Count active users
      x-summary-source: derived
  /api/v1/sessions/usernames/count:
    get:
      tags:
      - Sessions
      operationId: countActiveUsersSessions
      parameters:
      - name: usernames
        in: query
        required: true
        schema:
          type: array
          items:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: integer
                  format: int32
      security:
      - guardianAuth: []
      summary: Count active users sessions
      x-summary-source: derived
  /api/v1/sessions/usernames:
    delete:
      tags:
      - Sessions
      operationId: deleteAllActiveUser
      parameters:
      - name: usernames
        in: query
        required: true
        schema:
          type: array
          items:
            type: string
      responses:
        '200':
          description: OK
      security:
      - guardianAuth: []
      summary: Delete all active user
      x-summary-source: derived
  /api/v1/sessions/usernames/{username}:
    delete:
      tags:
      - Sessions
      operationId: deleteActiveUser
      parameters:
      - name: username
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
      security:
      - guardianAuth: []
      summary: Delete active user
      x-summary-source: derived
components:
  schemas:
    PageUserProfileSessionCountDto:
      properties:
        totalElements:
          type: integer
          format: int64
        totalPages:
          type: integer
          format: int32
        pageable:
          $ref: '#/components/schemas/PageableObject'
        size:
          type: integer
          format: int32
        content:
          type: array
          items:
            $ref: '#/components/schemas/UserProfileSessionCountDto'
        number:
          type: integer
          format: int32
        sort:
          $ref: '#/components/schemas/SortObject'
        first:
          type: boolean
        last:
          type: boolean
        numberOfElements:
          type: integer
          format: int32
        empty:
          type: boolean
    UserProfile:
      properties:
        id:
          type: string
        createdDate:
          type: string
          format: date-time
        modifiedDate:
          type: string
          format: date-time
        username:
          type: string
          minLength: 1
        password:
          type: string
          minLength: 1
          writeOnly: true
        firstName:
          type: string
        lastName:
          type: string
        phone:
          type: string
        jobTitle:
          type: string
        expertiseList:
          type: string
        timeZone:
          type: string
        locale:
          type: string
        status:
          type: string
          enum:
          - Active
          - Inactive
        credentialsNonExpired:
          type: boolean
        userCount:
          type: integer
          format: int64
        totpEnabled:
          type: boolean
        modifiedById:
          type: string
      required:
      - password
      - username
    SortObject:
      properties:
        empty:
          type: boolean
        sorted:
          type: boolean
        unsorted:
          type: boolean
    PageableObject:
      properties:
        paged:
          type: boolean
        pageNumber:
          type: integer
          format: int32
        pageSize:
          type: integer
          format: int32
        offset:
          type: integer
          format: int64
        sort:
          $ref: '#/components/schemas/SortObject'
        unpaged:
          type: boolean
    UserProfileSessionCountDto:
      properties:
        userProfile:
          $ref: '#/components/schemas/UserProfile'
        sessionCount:
          type: integer
          format: int32
  securitySchemes:
    guardianAuth:
      type: oauth2
      scheme: bearer
      bearerFormat: JWT
      flows:
        implicit:
          authorizationUrl: https://login.truste.com/oauth/authorize
          tokenUrl: https://login.truste.com/oauth/token
          scopes:
            openid: OpenID
x-provenance:
  method: harvested
  publisher: TrustArc
  source: https://login.truste.com/v3/api-docs
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)