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

# List API keys

> List the account's keys. Console session only.

Keys are listed with their label, role, scopes, expiry and last use. The token is never returned after creation.


## OpenAPI

````yaml openapi.json GET /keys
openapi: 3.1.0
info:
  title: NextIntent API
  version: 1.0.0
  description: >-
    Websites, switches, the facts sheet and API keys, per account. Authenticate
    with an API key (ni_live_...) or a console session as a Bearer token. A key
    is account-wide or bound to one website; a bound key sees only that website
    and cannot create or delete websites.
servers:
  - url: https://api.nextintent.ai/v1
security:
  - bearer: []
paths:
  /keys:
    get:
      summary: List API keys (console session only)
      responses:
        '200':
          description: Keys
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Key'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Key:
      type: object
      properties:
        key_id:
          type: string
        label:
          type: string
        role:
          type: string
          enum:
            - viewer
            - admin
        scopes:
          type: array
          items:
            type: string
        expires_at:
          type: string
          nullable: true
        last_used_at:
          type: string
          nullable: true
        created_at:
          type: string
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````