ALTR Batch API

The batch API from ALTR — 3 operation(s) for batch.

Documentation

📖
Documentation
https://altrnet.live.altr.com/api/swagger/
📖
APIReference
https://altrnet.live.altr.com/api/swagger/
📖
Authentication
https://raw.githubusercontent.com/api-evangelist/altr/refs/heads/main/authentication/altr-authentication.yml
📖
Documentation
https://api.live.altr.com/v1/unified-policy/docs
📖
APIReference
https://api.live.altr.com/v1/unified-policy/docs
📖
Documentation
https://api.live.altr.com/v1/rbac/api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/rbac/api-docs/index.html
📖
Documentation
https://docs.classification.live.altr.com/v1/docs
📖
APIReference
https://docs.classification.live.altr.com/v1/docs
📖
Documentation
https://api.live.altr.com/v1/tag/auto-tagging-api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/tag/auto-tagging-api-docs/index.html
📖
Documentation
https://api.live.altr.com/v1/tag/masking-api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/tag/masking-api-docs/index.html
📖
Documentation
https://api.live.altr.com/v1/tag/refresh-api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/tag/refresh-api-docs/index.html
📖
Documentation
https://api.live.altr.com/v1/alpha/dbx/tag-policy/docs/index.html
📖
APIReference
https://api.live.altr.com/v1/alpha/dbx/tag-policy/docs/index.html
📖
Documentation
https://api.live.altr.com/v1/dis/swagger/
📖
APIReference
https://api.live.altr.com/v1/dis/swagger/
📖
Documentation
https://api.live.altr.com/v1/snowflake/metadata-api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/snowflake/metadata-api-docs/index.html
📖
Documentation
https://api.live.altr.com/v1/query-audits/api-docs/index.html
📖
APIReference
https://api.live.altr.com/v1/query-audits/api-docs/index.html
📖
Documentation
https://api.live.altr.com/v1/dam/docs
📖
APIReference
https://api.live.altr.com/v1/dam/docs
📖
Documentation
https://docs.dam-alerting.live.altr.com/v1/dam-alerting/docs
📖
APIReference
https://docs.dam-alerting.live.altr.com/v1/dam-alerting/docs
📖
Documentation
https://docs.audit-report.live.altr.com/v1/audit-reports/docs
📖
APIReference
https://docs.audit-report.live.altr.com/v1/audit-reports/docs
📖
Documentation
https://docs.notifications.live.altr.com/v1/notification-integration/docs
📖
APIReference
https://docs.notifications.live.altr.com/v1/notification-integration/docs
📖
Documentation
https://docs.critical.live.altr.com/v2
📖
APIReference
https://docs.critical.live.altr.com/v2
📖
Documentation
https://docs.sc-control.live.altr.com/v1/repo-config-docs
📖
APIReference
https://docs.sc-control.live.altr.com/v1/repo-config-docs
📖
Documentation
https://docs.sc-control.live.altr.com/v1/audits/docs
📖
APIReference
https://docs.sc-control.live.altr.com/v1/audits/docs
📖
Documentation
https://docs.sc-control.live.altr.com/v1/sidecars/telemetry/docs
📖
APIReference
https://docs.sc-control.live.altr.com/v1/sidecars/telemetry/docs
📖
Documentation
https://docs.sc-control.live.altr.com/v1/access-tokens/docs
📖
APIReference
https://docs.sc-control.live.altr.com/v1/access-tokens/docs
📖
Documentation
https://docs.service-user.live.altr.com/v1/docs
📖
APIReference
https://docs.service-user.live.altr.com/v1/docs

Specifications

OpenAPI Specification

altr-batch-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Critical Tokenization V2 Batch API
  version: 1.3.0
  termsOfService: https://www.altr.com/info/altr-solutions-inc-terms-of-service
  contact:
    name: Support
    email: support@altr.com
  description: 'Welcome to the Swagger documentation for ALTR''s Critical Tokenization V2 API. Critical Tokenization V2 allows ALTR Enterprise + customers to tokenize and detokenize values using an API that is PCI compliant.


    Tokenization credentials can be obtained under Settings > Preferences > API of ALTR''s portal for Enterprise and Enterprise + customers. Usernames are the ''Key Names'' listed on that page and Passwords are the ''Key Secret'' provided when an API key is created.'
servers:
- url: https://{customerId}.critical.live.altr.com/v2
  variables:
    customerId:
      description: Customer ID assigned by ALTR.
      default: 00000000-0000-0000-0000-000000000000
security:
- basicAuth: []
tags:
- name: batch
paths:
  /batch:
    post:
      tags:
      - batch
      summary: Batch Write
      description: This endpoint tokenizes plaintext data. Up to 1024 values can be tokenized at once. Only string values can be tokenized. Values can be up to 128 UTF-8 code units long. Smaller batches may increase performance.
      parameters:
      - in: header
        name: X-ALTR-DETERMINISM
        schema:
          type: boolean
          default: false
        required: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                field000:
                  type: string
                  example: Sample Value 1
                field001:
                  type: string
                  example: Sample Value 2
                field002:
                  type: string
                  example: Sample Value 3
                field003:
                  type: string
                  example: Sample Value 4
      responses:
        '201':
          $ref: '#/components/responses/BatchWrite'
        '400':
          $ref: '#/components/responses/WriteBadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooMany'
        '500':
          $ref: '#/components/responses/InternalError'
    put:
      tags:
      - batch
      summary: Batch Read
      description: This endpoint allows you to retrieve plaintext data from tokens. Up to 1024 values can be detokenized at once. Tokens are case sensitive. If you send values to this endpoint that are not valid tokens, the request will fail. Using smaller batch sizes may improve performance.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                field000:
                  type: string
                  example: token_D4xX6U0dvORHDCOSrfTFhV7tRea2T1ek0RUpLCKbEKZYyVp3oVYPgKOvTyiDRa1W
                field001:
                  type: string
                  example: token_fKK064rOjZqHQlacME1kf3niLiBaTwS7Mpf6wla1R7EmwZP4fYeMADGgp9ODPSBG
                field002:
                  type: string
                  example: token_e85tR2w8id8OQ0DD408NVBLo0MRD2s54CH6xEhUnKMCWeUFhPXAxOKt7HZb06JGl
                field003:
                  type: string
                  example: token_droAsMKhcUd7WNzmRT06QfpoBgCZlLYqWYQemD2MWDEliYceocd0O8WQDGvl3lTM
      responses:
        '200':
          $ref: '#/components/responses/BatchRead'
        '400':
          $ref: '#/components/responses/ReadBadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '429':
          $ref: '#/components/responses/TooMany'
        '500':
          $ref: '#/components/responses/InternalError'
  /batch/partial:
    put:
      tags:
      - batch
      summary: Partial Batch Read
      description: This endpoint allows you to retrieve plaintext data from tokens. Up to 1024 values can be detokenized at once. If you send values to this endpoint that are not valid tokens, the request will not fail. Instead, any non-token values supplied will be returned back to the user. Using smaller batch sizes may improve performance.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                field000:
                  type: string
                  example: Not a token
                field001:
                  type: string
                  example: token_fKK064rOjZqHQlacME1kf3niLiBaTwS7Mpf6wla1R7EmwZP4fYeMADGgp9ODPSBG
                field002:
                  type: string
                  example: token_e85tR2w8id8OQ0DD408NVBLo0MRD2s54CH6xEhUnKMCWeUFhPXAxOKt7HZb06JGl
                field003:
                  type: string
                  example: token_droAsMKhcUd7WNzmRT06QfpoBgCZlLYqWYQemD2MWDEliYceocd0O8WQDGvl3lTM
      responses:
        '200':
          $ref: '#/components/responses/BatchReadPartial'
        '400':
          $ref: '#/components/responses/PartialReadBadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '429':
          $ref: '#/components/responses/TooMany'
        '500':
          $ref: '#/components/responses/InternalError'
  /batch/delete:
    put:
      tags:
      - batch
      summary: Batch Delete
      description: "This endpoint deletes tokens from ALTR's token vault. Up to 1024 values can be deleted at once. If a determinstic token is deleted from ALTR, a new POST for that tokens value will result in a newly minted token. If you send values to this endpoint that are not valid tokens, the invalid tokens will be ignored. Using smaller batch sizes may improve performance.\n\n Delete batches may be partially executed. Tokens from the batch that fail to be deleted are returned with their cause for failure."
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                field000:
                  type: string
                  example: Not a token
                field001:
                  type: string
                  example: token_fKK064rOjZqHQlacME1kf3niLiBaTwS7Mpf6wla1R7EmwZP4fYeMADGgp9ODPSBG
                field002:
                  type: string
                  example: token_e85tR2w8id8OQ0DD408NVBLo0MRD2s54CH6xEhUnKMCWeUFhPXAxOKt7HZb06JGl
                field003:
                  type: string
                  example: token_droAsMKhcUd7WNzmRT06QfpoBgCZlLYqWYQemD2MWDEliYceocd0O8WQDGvl3lTM
      responses:
        '200':
          $ref: '#/components/responses/BatchDelete'
        '400':
          $ref: '#/components/responses/BatchDeleteBadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '429':
          $ref: '#/components/responses/TooMany'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    ApiError:
      type: object
      properties:
        data:
          type: object
          properties:
            data:
              type: string
              example: '2022-07-20T18:00:58.723Z'
            message:
              type: string
              example: Internal Server Error
            statusCode:
              type: integer
              example: 500
        success:
          type: boolean
          example: 'false'
    BatchWrite:
      type: object
      properties:
        data:
          type: object
          properties:
            field000:
              type: string
              example: token_D4xX6U0dvORHDCOSrfTFhV7tRea2T1ek0RUpLCKbEKZYyVp3oVYPgKOvTyiDRa1W
            field001:
              type: string
              example: token_fKK064rOjZqHQlacME1kf3niLiBaTwS7Mpf6wla1R7EmwZP4fYeMADGgp9ODPSBG
            field002:
              type: string
              example: token_e85tR2w8id8OQ0DD408NVBLo0MRD2s54CH6xEhUnKMCWeUFhPXAxOKt7HZb06JGl
            field003:
              type: string
              example: token_droAsMKhcUd7WNzmRT06QfpoBgCZlLYqWYQemD2MWDEliYceocd0O8WQDGvl3lTM
        success:
          type: boolean
          example: true
    BatchReadPartial:
      type: object
      properties:
        data:
          type: object
          properties:
            field000:
              type: string
              example: Not a token
            field001:
              type: string
              example: Sample Value 2
            field002:
              type: string
              example: Sample Value 3
            field003:
              type: string
              example: Sample Value 4
        success:
          type: boolean
          example: true
    BatchDelete:
      type: object
      properties:
        unprocessed:
          type: array
          example: '[]'
        success:
          type: boolean
          example: true
    BatchRead:
      type: object
      properties:
        data:
          type: object
          properties:
            field000:
              type: string
              example: Sample Value 1
            field001:
              type: string
              example: Sample Value 2
            field002:
              type: string
              example: Sample Value 3
            field003:
              type: string
              example: Sample Value 4
        success:
          type: boolean
          example: true
  responses:
    BatchDelete:
      description: Delete Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BatchDelete'
          examples:
            Success: {}
            Partial Success:
              value:
                unprocessed:
                - message: Too Many Requests
                  statusCode: '429'
                  field003: token_droAsMKhcUd7WNzmRT06QfpoBgCZlLYqWYQemD2MWDEliYceocd0O8WQDGvl3lTM
                success: false
    WriteBadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            Default:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Bad Request
                  statusCode: 400
                success: false
            Exceeds limit:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Batch exceeds 1024 limit
                  statusCode: 400
                success: false
            Item(s) Too Short:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Item(s) In Batch Too Short
                  statusCode: 400
                success: false
            Item(s) Exceed Length Limit:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Item(s) In Batch Exceed Length Limit
                  statusCode: 400
                success: false
            Transaction Cancelled:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Transaction Cancelled
                  statusCode: 400
                success: false
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            data:
              date: '2022-07-20T18:00:58.723Z'
              message: Unauthorized
              statusCode: 401
            success: false
    BatchDeleteBadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            Default:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Bad Request
                  statusCode: 400
                success: false
            Exceeds limit:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Batch exceeds 1024 limit
                  statusCode: 400
                success: false
            No Tokens:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: No Tokens Given
                  statusCode: 400
                success: false
            Item(s) Too Short:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Item(s) In Batch Too Short
                  statusCode: 400
                success: false
            Item(s) Exceed Length Limit:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Item(s) In Batch Exceed Length Limit
                  statusCode: 400
                success: false
            Transaction Cancelled:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Transaction Cancelled
                  statusCode: 400
                success: false
    UnsupportedMediaType:
      description: Unsupported Media Type
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            data:
              date: '2022-07-20T18:00:58.723Z'
              message: Unsupported Media Type
              statusCode: 415
            success: false
    BatchRead:
      description: Response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BatchRead'
    PartialReadBadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            Default:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Bad Request
                  statusCode: 400
                success: false
            Exceeds limit:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Batch exceeds 1024 limit
                  statusCode: 400
                success: false
            No Tokens:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: No Tokens Given
                  statusCode: 400
                success: false
            Item(s) Too Short:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Item(s) In Batch Too Short
                  statusCode: 400
                success: false
            Item(s) Exceed Length Limit:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Item(s) In Batch Exceed Length Limit
                  statusCode: 400
                success: false
            Malformed Token:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Received Malformed Token
                  statusCode: 400
                success: false
            Transaction Cancelled:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Transaction Cancelled
                  statusCode: 400
                success: false
    TooMany:
      description: Too Many Requests
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            data:
              date: '2022-07-20T18:00:58.723Z'
              message: Too Many Requests
              statusCode: 429
            success: false
    BatchWrite:
      description: Response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BatchWrite'
    ReadBadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          examples:
            Default:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Bad Request
                  statusCode: 400
                success: false
            Exceeds limit:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Batch exceeds 1024 limit
                  statusCode: 400
                success: false
            No Tokens:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: No Tokens Given
                  statusCode: 400
                success: false
            Item(s) Too Short:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Item(s) In Batch Too Short
                  statusCode: 400
                success: false
            Item(s) Exceed Length Limit:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Item(s) In Batch Exceed Length Limit
                  statusCode: 400
                success: false
            Malformed Token:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Received Malformed Token
                  statusCode: 400
                success: false
            Transaction Cancelled:
              value:
                data:
                  date: '2022-07-20T18:00:58.723Z'
                  message: Transaction Cancelled
                  statusCode: 400
                success: false
    InternalError:
      description: Internal Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            data:
              date: '2022-07-20T18:00:58.723Z'
              message: Internal Server Error
              statusCode: 500
            success: false
    BatchReadPartial:
      description: Partial Read Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BatchReadPartial'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            data:
              date: '2022-07-20T18:00:58.723Z'
              message: Not Found
              statusCode: 404
            success: false
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Critical Tokenization uses [HTTP Basic Authentication](https://swagger.io/docs/specification/authentication/basic-authentication/).<br/><br/>Tokenization credentials can be obtained on the API page of the dashboard (found under Settings > Preferences > API) of ALTR's portal for Enterprise + customers.<br/><br/>Usernames are the 'Key Names' listed on that page, and Passwords are the 'Key Secret' provided when an API key is created.
externalDocs:
  description: ALTR Documentation
  url: https://docs.altr.com/
x-servers-not-selectable: true