TrustArc Clients API

The Clients API from TrustArc — 13 operation(s) for clients.

GitHub OpenAPI

Operations 17

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/clients/{id} Get a client · Get 11 #
Ask an LLM
“How do I look up a client by id?”
“What details come back for one client?”
Tell an agent
Get client {id}.
Show the details of client {id}.
PUT /api/v1/clients/{id} Update a client · Update 10 #
Ask an LLM
“Can I change a client's details?”
“How do I edit an existing client?”
Tell an agent
Update client {id}.
Edit the details of client {id}.
DELETE /api/v1/clients/{id} Delete a client · Delete 9 #
Ask an LLM
“How do I delete a client?”
“Can I remove a client record?”
Tell an agent destructive · confirm first
Delete client {id}.
Remove the client record {id}.
GET /api/v1/clients List clients · List 11 #
Ask an LLM
“Which clients exist in TrustArc?”
“Can I filter clients by name or type?”
Tell an agent
List all clients.
Find clients named {name} of type {type}.
POST /api/v1/clients Create a client · Create 11 #
Ask an LLM
“How do I add a new client?”
“Can I create a client record through the API?”
Tell an agent
Create a new client.
Add a client with these details.
GET /api/v1/clients/{id}/roles List a client's roles · Get roles #
Ask an LLM
“What roles are assigned to a client?”
“Can I see which roles a client has?”
Tell an agent
List the roles of client {id}.
Show which roles client {id} is assigned.
POST /api/v1/clients/{id}/roles Assign roles to a client · Create roles #
Ask an LLM
“How do I give a client new roles?”
“Can I add roles to an existing client?”
Tell an agent
Assign roles to client {id}.
Give client {id} these roles.
POST /api/v1/clients/{id}/key/reset Reset a client's key · Reset key #
Ask an LLM
“How do I rotate a client's API key?”
“Can I reset a client's key?”
Tell an agent destructive · confirm first
Reset the key for client {id}.
Rotate the API key of client {id}.
POST /api/v1/clients/metrics/promote Promote a client to production · Promote #
Ask an LLM
“How do I promote a client to production?”
“Can I move a client to production?”
Tell an agent
Promote this client to production.
Move the client into production.
GET /api/v1/clients/metrics List client usage metrics · List 24 #
Ask an LLM
“How much has a client used an API?”
“Can I see client usage metrics for a date range?”
Tell an agent
List usage metrics for client {clientId}.
Show {apiId} usage for client {clientId} from {startDate} to {endDate}.
GET /api/v1/clients/metrics/raw List raw client usage metrics · List raw #
Ask an LLM
“Can I see the raw usage data for a client?”
“What raw usage metrics are stored for a client?”
Tell an agent
List raw usage metrics for client {clientId}.
Show the raw usage data for client {clientId}.
GET /api/v1/clients/metrics/histogram Chart a client's usage as a histogram · Histogram #
Ask an LLM
“Can I see a histogram of a client's usage?”
“How do I bucket a client's usage over time?”
Tell an agent
Show a histogram of usage for client {clientId}.
Chart client {clientId} usage in {buckets} buckets.
GET /api/v1/clients/legacyid/{id} Look up a client by legacy id · Get by legacy id #
Ask an LLM
“How do I find a client using its legacy id?”
“Can I look up a client by its old id?”
Tell an agent
Get the client with legacy id {id}.
Look up client {id} by its legacy id.
GET /api/v1/clients/grant-types List supported OAuth grant types · Get supported grant types #
Ask an LLM
“Which OAuth grant types are supported?”
“What grant types can a client use?”
Tell an agent
List the supported OAuth grant types.
Show which grant types a client can use.
GET /api/v1/clients/clientid/{clientId} Look up a client by client id · Get by client id #
Ask an LLM
“How do I find a client by its client id?”
“Can I look up a client using its client id?”
Tell an agent
Get the client with client id {clientId}.
Look up client {clientId}.
DELETE /api/v1/clients/metrics/raw/clear Clear all raw usage metrics · Clear raw #
Ask an LLM
“How do I clear every client's raw usage data?”
“Can I wipe all raw usage metrics?”
Tell an agent destructive · confirm first
Clear all raw usage metrics.
Wipe every client's raw usage data.
DELETE /api/v1/clients/metrics/raw/clear/{clientId} Reset a client's raw usage metrics · Reset #
Ask an LLM
“How do I reset a client's raw usage metrics?”
“Can I clear one client's raw usage data?”
Tell an agent destructive · confirm first
Reset raw usage metrics for client {clientId}.
Clear the raw usage data of client {clientId}.

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-clients-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-clients-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Guardian Clients API
  description: Guardian Authentication
  version: v1
servers:
- url: https://login.truste.com
  description: Generated server url
tags:
- name: Clients
paths:
  /api/v1/clients/{id}:
    get:
      tags:
      - Clients
      operationId: get_11
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ClientApplication'
                - $ref: '#/components/schemas/CustomerClientApplication'
                - $ref: '#/components/schemas/InternalClientApplication'
      security:
      - guardianAuth: []
      summary: Get 11
      x-summary-source: derived
    put:
      tags:
      - Clients
      operationId: update_10
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/ClientApplication'
              - $ref: '#/components/schemas/CustomerClientApplication'
              - $ref: '#/components/schemas/InternalClientApplication'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ClientApplication'
                - $ref: '#/components/schemas/CustomerClientApplication'
                - $ref: '#/components/schemas/InternalClientApplication'
      security:
      - guardianAuth: []
      summary: Update 10
      x-summary-source: derived
    delete:
      tags:
      - Clients
      operationId: delete_9
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
      security:
      - guardianAuth: []
      summary: Delete 9
      x-summary-source: derived
  /api/v1/clients:
    get:
      tags:
      - Clients
      operationId: list_11
      parameters:
      - name: page
        in: query
        required: false
        schema:
          type: integer
          format: int32
          default: 0
      - name: size
        in: query
        required: false
        schema:
          type: integer
          format: int32
          default: 10
      - name: order
        in: query
        required: false
        schema:
          type: string
          default: ASC
          enum:
          - ASC
          - DESC
      - name: columnName
        in: query
        required: false
        schema:
          type: string
          default: clientName
      - name: showontopheader
        in: query
        required: false
        schema:
          type: boolean
      - name: accountId
        in: query
        required: false
        schema:
          type: string
          default: ''
      - name: userId
        in: query
        required: false
        schema:
          type: string
          default: ''
      - name: name
        in: query
        required: false
        schema:
          type: string
          default: ''
      - name: usingUserRolesOrGroups
        in: query
        required: false
        schema:
          type: boolean
      - name: usingUserGroups
        in: query
        required: false
        schema:
          type: boolean
      - name: type
        in: query
        required: false
        schema:
          type: string
          default: Internal
          enum:
          - Internal
          - Customer
      - name: modifiedStart
        in: query
        required: false
        schema:
          type: integer
          format: int64
          description: Timestamp in seconds since epoch
      - name: modifiedEnd
        in: query
        required: false
        schema:
          type: integer
          format: int64
          description: Timestamp in seconds since epoch
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageClientApplication'
      security:
      - guardianAuth: []
      summary: List 11
      x-summary-source: derived
    post:
      tags:
      - Clients
      operationId: create_11
      requestBody:
        content:
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/ClientApplication'
              - $ref: '#/components/schemas/CustomerClientApplication'
              - $ref: '#/components/schemas/InternalClientApplication'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ClientApplication'
                - $ref: '#/components/schemas/CustomerClientApplication'
                - $ref: '#/components/schemas/InternalClientApplication'
      security:
      - guardianAuth: []
      summary: Create 11
      x-summary-source: derived
  /api/v1/clients/{id}/roles:
    get:
      tags:
      - Clients
      operationId: getRoles
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClientApplicationRole'
                uniqueItems: true
      security:
      - guardianAuth: []
      summary: Get roles
      x-summary-source: derived
    post:
      tags:
      - Clients
      operationId: createRoles
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/ClientApplicationRole'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClientApplicationRole'
                uniqueItems: true
      security:
      - guardianAuth: []
      summary: Create roles
      x-summary-source: derived
  /api/v1/clients/{id}/key/reset:
    post:
      tags:
      - Clients
      operationId: resetKey
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientApplicationKey'
      security:
      - guardianAuth: []
      summary: Reset key
      x-summary-source: derived
  /api/v1/clients/metrics/promote:
    post:
      tags:
      - Clients
      operationId: promote
      responses:
        '204':
          description: No Content
      security:
      - guardianAuth: []
      summary: Promote
      x-summary-source: derived
  /api/v1/clients/metrics:
    get:
      tags:
      - Clients
      operationId: list_24
      parameters:
      - name: clientId
        in: query
        required: false
        schema:
          type: string
          default: ''
      - name: apiId
        in: query
        required: false
        schema:
          type: string
          default: ''
      - name: startDate
        in: query
        required: false
        schema:
          type: integer
          format: int64
          description: Timestamp in seconds since epoch
      - name: endDate
        in: query
        required: false
        schema:
          type: integer
          format: int64
          description: Timestamp in seconds since epoch
      - name: valueAgo
        in: query
        required: false
        schema:
          type: integer
          format: int64
          default: 1
      - name: unitAgo
        in: query
        required: false
        schema:
          type: string
          default: Weeks
          enum:
          - NANOS
          - MICROS
          - MILLIS
          - SECONDS
          - MINUTES
          - HOURS
          - HALF_DAYS
          - DAYS
          - WEEKS
          - MONTHS
          - YEARS
          - DECADES
          - CENTURIES
          - MILLENNIA
          - ERAS
          - FOREVER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClientApplicationMetric'
      security:
      - guardianAuth: []
      summary: List 24
      x-summary-source: derived
  /api/v1/clients/metrics/raw:
    get:
      tags:
      - Clients
      operationId: listRaw
      parameters:
      - name: clientId
        in: query
        required: false
        schema:
          type: string
          default: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CustomerMeterDTO'
      security:
      - guardianAuth: []
      summary: List raw
      x-summary-source: derived
  /api/v1/clients/metrics/histogram:
    get:
      tags:
      - Clients
      operationId: histogram
      parameters:
      - name: clientId
        in: query
        required: false
        schema:
          type: string
          default: ''
      - name: apiId
        in: query
        required: false
        schema:
          type: string
          default: ''
      - name: startDate
        in: query
        required: false
        schema:
          type: integer
          format: int64
          description: Timestamp in seconds since epoch
      - name: endDate
        in: query
        required: false
        schema:
          type: integer
          format: int64
          description: Timestamp in seconds since epoch
      - name: valueAgo
        in: query
        required: false
        schema:
          type: integer
          format: int64
          default: 1
      - name: unitAgo
        in: query
        required: false
        schema:
          type: string
          default: Weeks
          enum:
          - NANOS
          - MICROS
          - MILLIS
          - SECONDS
          - MINUTES
          - HOURS
          - HALF_DAYS
          - DAYS
          - WEEKS
          - MONTHS
          - YEARS
          - DECADES
          - CENTURIES
          - MILLENNIA
          - ERAS
          - FOREVER
      - name: buckets
        in: query
        required: false
        schema:
          type: integer
          format: int64
          default: 10
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ClientMetricHistogram'
      security:
      - guardianAuth: []
      summary: Histogram
      x-summary-source: derived
  /api/v1/clients/legacyid/{id}:
    get:
      tags:
      - Clients
      operationId: getByLegacyId
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ClientApplication'
                - $ref: '#/components/schemas/CustomerClientApplication'
                - $ref: '#/components/schemas/InternalClientApplication'
      security:
      - guardianAuth: []
      summary: Get by legacy id
      x-summary-source: derived
  /api/v1/clients/grant-types:
    get:
      tags:
      - Clients
      operationId: getSupportedGrantTypes
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
      security:
      - guardianAuth: []
      summary: Get supported grant types
      x-summary-source: derived
  /api/v1/clients/clientid/{clientId}:
    get:
      tags:
      - Clients
      operationId: getByClientId
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ClientApplication'
                - $ref: '#/components/schemas/CustomerClientApplication'
                - $ref: '#/components/schemas/InternalClientApplication'
      security:
      - guardianAuth: []
      summary: Get by client id
      x-summary-source: derived
  /api/v1/clients/metrics/raw/clear:
    delete:
      tags:
      - Clients
      operationId: clearRaw
      responses:
        '204':
          description: No Content
      security:
      - guardianAuth: []
      summary: Clear raw
      x-summary-source: derived
  /api/v1/clients/metrics/raw/clear/{clientId}:
    delete:
      tags:
      - Clients
      operationId: reset
      parameters:
      - name: clientId
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
      security:
      - guardianAuth: []
      summary: Reset
      x-summary-source: derived
components:
  schemas:
    ClientApplicationMetric:
      properties:
        id:
          type: string
          format: uuid
        date:
          type: string
          format: date-time
        count:
          type: integer
          format: int64
        applicationId:
          type: string
        apiId:
          type: string
          format: uuid
    InternalClientApplication:
      allOf:
      - $ref: '#/components/schemas/ClientApplication'
      - type: object
        properties:
          siteUri:
            type: string
          logoUri:
            type: string
          helpUri:
            type: string
          redirectPriority:
            type: integer
            format: int32
          showOnTopheader:
            type: boolean
      required:
      - clientId
    CustomerClientApplication:
      allOf:
      - $ref: '#/components/schemas/ClientApplication'
      - type: object
        properties:
          requestLimit:
            type: integer
            format: int64
      required:
      - clientId
    ClientMetricHistogram:
      properties:
        clientId:
          type: string
        buckets:
          type: array
          items:
            $ref: '#/components/schemas/ApiMetricHistogram'
        dateTimes:
          type: array
          items:
            type: string
            format: date-time
    CustomerMeterDTO:
      properties:
        clientId:
          type: string
        count:
          type: integer
          format: int64
        apiList:
          type: array
          items:
            $ref: '#/components/schemas/APIMeterDTO'
    HistogramData:
      properties:
        sumFreq:
          type: integer
          format: int64
        dateTime:
          type: string
          format: date-time
    ClientApplication:
      discriminator:
        propertyName: type
      properties:
        id:
          type: string
        createdDate:
          type: string
          format: date-time
        modifiedDate:
          type: string
          format: date-time
        clientId:
          type: string
          maxLength: 2147483647
          minLength: 1
        clientSecret:
          oneOf:
          - $ref: '#/components/schemas/ClientApplication'
          - $ref: '#/components/schemas/CustomerClientApplication'
          - $ref: '#/components/schemas/InternalClientApplication'
          writeOnly: true
        clientName:
          type: string
        resourceIds:
          type: array
          items:
            type: string
          uniqueItems: true
        scopes:
          type: string
        grantTypes:
          type: string
        authorities:
          type: array
          items:
            $ref: '#/components/schemas/GrantedAuthority'
        redirectUris:
          type: string
        autoApproveScopes:
          type: string
        allowedAudiences:
          type: string
        legacyIdentifier:
          type: string
        enabled:
          type: boolean
        requiresLicense:
          type: boolean
        accessTokenValiditySeconds:
          type: integer
          format: int32
        refreshTokenValiditySeconds:
          type: integer
          format: int32
        roles:
          type: array
          items:
            $ref: '#/components/schemas/ClientApplicationRole'
          uniqueItems: true
        type:
          type: string
          enum:
          - Internal
          - Customer
        accountId:
          type: string
        usingUserGroups:
          type: boolean
        delegateUserId:
          type: string
        usingUserRoles:
          type: boolean
        usingUserRolesOrGroups:
          type: boolean
        usingAccountRegistration:
          type: boolean
        usingLicense:
          type: boolean
        modifiedById:
          type: string
      required:
      - clientId
    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
    ApiMetricHistogram:
      properties:
        metricApi:
          $ref: '#/components/schemas/MetricApi'
        histogram:
          type: array
          items:
            $ref: '#/components/schemas/HistogramData'
    MetricApi:
      properties:
        id:
          type: string
          format: uuid
        method:
          type: string
        status:
          type: integer
          format: int32
        path:
          type: string
    ClientApplicationRole:
      properties:
        id:
          type: string
        identifier:
          type: string
        name:
          type: string
        description:
          type: string
        permissions:
          type: string
    PageClientApplication:
      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:
            oneOf:
            - $ref: '#/components/schemas/ClientApplication'
            - $ref: '#/components/schemas/CustomerClientApplication'
            - $ref: '#/components/schemas/InternalClientApplication'
        number:
          type: integer
          format: int32
        sort:
          $ref: '#/components/schemas/SortObject'
        first:
          type: boolean
        last:
          type: boolean
        numberOfElements:
          type: integer
          format: int32
        empty:
          type: boolean
    APIMeterDTO:
      properties:
        api:
          type: string
        status:
          type: integer
          format: int32
        count:
          type: integer
          format: int64
    GrantedAuthority:
      properties:
        authority:
          type: string
    ClientApplicationKey:
      properties:
        clientId:
          type: string
        clientSecret:
          type: string
  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)