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

# POST /admin/api/tokenizer-vocabs



## OpenAPI

````yaml /generated/openapi.json post /admin/api/tokenizer-vocabs
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /admin/api/tokenizer-vocabs:
    post:
      tags:
        - Management
      summary: POST /admin/api/tokenizer-vocabs
      parameters:
        - description: Administrative scope selected by the caller.
          in: header
          name: x-gproxy-admin-scope
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Input_TokenizerFetch'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_VocabularyDto'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_Envelope'
          description: Gateway error
      security:
        - consoleSession: []
        - bearer: []
        - anthropicKey: []
        - googleKey: []
components:
  schemas:
    Input_TokenizerFetch:
      description: What to fetch, and what to point at it.
      properties:
        filename:
          default: null
          description: The file inside it; `tokenizer.json` when absent.
          type:
            - string
            - 'null'
        modelId:
          default: null
          description: |-
            The catalog model whose `vocabulary_file_id` should point at the
            result. Absent leaves every model alone.
          type:
            - string
            - 'null'
        repo:
          description: A Hugging Face repository id, `owner/name`.
          type: string
        setAsDefault:
          default: false
          description: |-
            Whether this also becomes the instance default, used by models that
            select no vocabulary of their own.
          type: boolean
      required:
        - repo
      type: object
    Output_VocabularyDto:
      description: One stored vocabulary.
      properties:
        createdAtMs:
          format: int64
          type: integer
        fileId:
          type: string
        filename:
          type:
            - string
            - 'null'
        isDefault:
          description: Whether it is the instance default.
          type: boolean
        models:
          description: The catalog models that select it, by id.
          items:
            type: string
          type: array
        sizeBytes:
          format: int64
          type: integer
      required:
        - fileId
        - filename
        - sizeBytes
        - createdAtMs
        - models
        - isDefault
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey
    consoleSession:
      in: cookie
      name: gproxy_session
      type: apiKey

````

## Related topics

- [GET /admin/api/tokenizer-vocabs](https://gproxy.leenhawk.com/api-reference/management/get-adminapitokenizer-vocabs.md)
- [DELETE /admin/api/tokenizer-vocabs/{id}](https://gproxy.leenhawk.com/api-reference/management/delete-adminapitokenizer-vocabs.md)
- [GET /admin/api/tokenizer-vocabs/progress](https://gproxy.leenhawk.com/api-reference/management/get-adminapitokenizer-vocabsprogress.md)
- [POST /admin/api/tokenizer-auth/reveal](https://gproxy.leenhawk.com/api-reference/management/post-adminapitokenizer-authreveal.md)
- [POST /admin/api/import](https://gproxy.leenhawk.com/api-reference/management/post-adminapiimport.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.