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

# Get v1userbyok

> Check whether the authenticated user has a BYOK key stored for the given provider, and return the decrypted key. Used by the CLI to poll for a newly-added key after directing the user to the dashboard.



## OpenAPI

````yaml https://hidden-wildcat-614.convex.site/v1/openapi get /v1/user/byok/{provider}
openapi: 3.0.0
info:
  version: 2.0.0
  title: LazyLocales API
  description: >-
    AI-powered translation management REST API with CLI-first workflow.


    ## Authentication

    All endpoints require `Authorization: Bearer <token>`. Two token types:

    - **Access token** — from `lazylocales login` or user session

    - **Project API token** — prefixed `ll_`, created in project settings for
    CI/CD


    ## Workflow

    Translations are managed via the CLI using local AI translation with models
    like GPT-4o, Claude, Gemini, or Mistral. The dashboard provides read-only
    monitoring and project configuration.


    ## Error Format

    All errors follow: `{ "error": { "code": "ERROR_CODE", "message": "..." } }`
servers:
  - url: https://{deployment}.convex.site
    description: Convex deployment
    variables:
      deployment:
        default: your-deployment
        description: Your Convex deployment name
security: []
tags:
  - name: Projects
    description: Project management endpoints
  - name: Source Files
    description: Source locale file operations
  - name: Locales
    description: Locale status and management
  - name: CLI
    description: CLI config and reporting endpoints
  - name: API Tokens
    description: API token management
paths:
  /v1/user/byok/{provider}:
    get:
      tags:
        - CLI
      description: >-
        Check whether the authenticated user has a BYOK key stored for the given
        provider, and return the decrypted key. Used by the CLI to poll for a
        newly-added key after directing the user to the dashboard.
      parameters:
        - schema:
            type: string
            minLength: 1
            example: openai
          required: true
          name: provider
          in: path
      responses:
        '200':
          description: BYOK key status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserByokKey'
components:
  schemas:
    UserByokKey:
      type: object
      properties:
        hasKey:
          type: boolean
          example: true
        apiKey:
          type: string
          nullable: true
          example: sk-...
          description: Decrypted API key, only returned when key exists
      required:
        - hasKey
        - apiKey

````