openapi: 3.2.0 info: title: Trustarc Accounts Tokens API version: v1 description: 'Operations tagged Accounts-Tokens across 2 of this provider''s published API definitions: trustarc-guardian-openapi.json, trustarc-guardian-openapi.yml. Each path carries the servers of the definition it was published in.' servers: - url: https://login.truste.com description: Generated server url tags: - name: Accounts-Tokens paths: /api/v1/accounts/{accountId}/tokens: get: tags: - Accounts-Tokens operationId: list_13 parameters: - name: accountId in: path required: true schema: type: string responses: '200': description: OK content: '*/*': schema: type: array items: $ref: '#/components/schemas/AccountLongExpToken' security: - guardianAuth: [] post: tags: - Accounts-Tokens operationId: create_13 parameters: - name: accountId in: path required: true schema: type: string - name: userId in: query required: false schema: type: string - name: expiresOn in: query required: false schema: type: string default: P1Y enum: - P6M - P1Y - P1Y6M - P2Y responses: '200': description: OK content: '*/*': schema: $ref: '#/components/schemas/AccountLongExpToken' security: - guardianAuth: [] servers: - url: https://login.truste.com description: Generated server url /api/v1/accounts/tokens: get: tags: - Accounts-Tokens operationId: list_31 parameters: - name: abountToExpire in: query required: false schema: type: boolean - name: accountId in: query required: false schema: type: string - 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: '*/*': schema: $ref: '#/components/schemas/SliceAccountLongExpToken' security: - guardianAuth: [] servers: - url: https://login.truste.com description: Generated server url /api/v1/accounts/tokens/{tokenId}: delete: tags: - Accounts-Tokens operationId: delete_21 parameters: - name: tokenId in: path required: true schema: type: string format: uuid responses: '204': description: No Content security: - guardianAuth: [] servers: - url: https://login.truste.com description: Generated server url components: schemas: AccountLongExpToken: properties: id: type: string format: uuid expiresOn: type: string format: date-time createdDate: type: string format: date-time token: type: string readOnly: true accountId: type: string userId: type: string SliceAccountLongExpToken: properties: pageable: $ref: '#/components/schemas/PageableObject' size: type: integer format: int32 content: type: array items: $ref: '#/components/schemas/AccountLongExpToken' number: type: integer format: int32 sort: $ref: '#/components/schemas/SortObject' first: type: boolean last: type: boolean numberOfElements: type: integer format: int32 empty: 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 SortObject: properties: empty: type: boolean sorted: type: boolean unsorted: type: boolean 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-refined-from: - trustarc-guardian-openapi.json - trustarc-guardian-openapi.yml