> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nvisy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get API token

> Returns details for a specific API token.



## OpenAPI

````yaml /api-reference/openapi.json get /api-tokens/{tokenId}/
openapi: 3.1.0
info:
  title: Nvisy API
  summary: Document processing and annotation platform
  description: >-
    Nvisy provides intelligent document processing, annotation, and analysis
    capabilities. This API enables document upload, OCR processing, embedding
    generation, and semantic search across your document collections.
  termsOfService: https://nvisy.com/legal/terms-of-service
  contact:
    name: Nvisy Support
    url: https://nvisy.com
    email: hello@nvisy.com
  license:
    name: Proprietary
    url: https://nvisy.com/license
  version: 0.1.0
servers: []
security: []
tags:
  - name: Accounts
    description: Account management and profile operations
  - name: Authentication
    description: Login, signup, and token management
  - name: Workspaces
    description: Workspace creation and management
  - name: Files
    description: File upload, download, and management
  - name: Members
    description: Workspace member management
  - name: Invites
    description: Workspace invitation handling
  - name: API Tokens
    description: API token management
  - name: Connections
    description: External provider connections
  - name: Pipelines
    description: Redaction pipeline configuration
  - name: Pipeline Runs
    description: Pipeline run execution and review
  - name: Policies
    description: Redaction policy configuration
  - name: Webhooks
    description: Webhook configuration
  - name: Notifications
    description: Account notification management
  - name: Health
    description: Service health checks
paths:
  /api-tokens/{tokenId}/:
    get:
      tags:
        - API Tokens
      summary: Get API token
      description: Returns details for a specific API token.
      parameters:
        - in: path
          name: tokenId
          description: Unique identifier of the API token.
          required: true
          schema:
            description: Unique identifier of the API token.
            type: string
            format: uuid
          style: simple
      responses:
        '200':
          description: API token response structure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiToken'
        '401':
          description: >-
            HTTP error response representation with security-conscious design.


            This struct contains all the information needed to serialize an
            error

            response, including the error name, message, HTTP status code,
            resource

            information, and user-friendly messages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: >-
            HTTP error response representation with security-conscious design.


            This struct contains all the information needed to serialize an
            error

            response, including the error name, message, HTTP status code,
            resource

            information, and user-friendly messages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    ApiToken:
      description: API token response structure.
      type: object
      properties:
        current:
          description: >-
            Whether this token is the one the current request authenticated
            with.


            Lets a client single out the active session in the list. Defaults to

            `false`; the listing handler sets it for the matching token.
          type: boolean
        displayName:
          description: Human-readable display name for the API token.
          type: string
        expiredAt:
          description: Timestamp when the token expires (None = never expires).
          type: string
          format: date-time
        id:
          description: Unique identifier for the token.
          type: string
          format: uuid
        issuedAt:
          description: Timestamp of token creation.
          type: string
          format: date-time
        lastUsedAt:
          description: Timestamp of most recent token activity.
          type: string
          format: date-time
        sessionType:
          description: Type of token (web, api, etc.).
          allOf:
            - $ref: '#/components/schemas/ApiTokenType'
      required:
        - id
        - displayName
        - sessionType
        - issuedAt
        - current
    ErrorResponse:
      description: |-
        HTTP error response representation with security-conscious design.

        This struct contains all the information needed to serialize an error
        response, including the error name, message, HTTP status code, resource
        information, and user-friendly messages.
      type: object
      properties:
        message:
          description: User-friendly error message safe for client display
          type: string
        name:
          description: The error name/type identifier
          type: string
        resource:
          description: The resource that the error relates to (optional, set by handler)
          type: string
        suggestion:
          description: Helpful suggestion for resolving the error (optional)
          type: string
        validation:
          description: Validation error details for field-specific errors
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorDetail'
      required:
        - name
        - message
    ApiTokenType:
      description: >-
        Defines the type of API token for authentication and tracking purposes.


        This enumeration corresponds to the `API_TOKEN_TYPE` PostgreSQL enum and
        is used

        to categorize different types of authentication tokens based on the
        client type.
      oneOf:
        - description: Web browser token (desktop or mobile browser)
          type: string
          const: web
        - description: API client token (programmatic access)
          type: string
          const: api
        - description: CLI tool token (command-line interface)
          type: string
          const: cli
    ValidationErrorDetail:
      description: Validation error details for field-specific errors.
      type: object
      properties:
        code:
          description: Error code for the validation failure
          type: string
        field:
          description: Field name that failed validation
          type: string
        message:
          description: Human-readable error message
          type: string
        params:
          description: Additional parameters related to the validation error
          type: object
          additionalProperties: true
      required:
        - field
        - code
        - message

````