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

# Get Knock Token

> Get a Knock JWT token for frontend authentication.

The frontend uses this token to authenticate with Knock's SDK
for real-time notification feed updates.

Returns 503 if Knock is not configured.



## OpenAPI

````yaml /api-reference/openapi.json get /users/me/knock-token
openapi: 3.1.0
info:
  title: Aspect Platform API
  description: A FastAPI application for Aspect Platform functionality
  version: 0.0.0
servers:
  - url: https://api.aspect.inc
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /users/me/knock-token:
    get:
      tags:
        - Users
      summary: Get Knock Token
      description: |-
        Get a Knock JWT token for frontend authentication.

        The frontend uses this token to authenticate with Knock's SDK
        for real-time notification feed updates.

        Returns 503 if Knock is not configured.
      operationId: get_Users_users_me_knock_token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnockTokenResponse'
components:
  schemas:
    KnockTokenResponse:
      properties:
        token:
          type: string
          title: Token
      type: object
      required:
        - token
      title: KnockTokenResponse
      description: Response containing Knock JWT token for frontend authentication.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT in Authorization header. 'Bearer ' prefix optional.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

````