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

# Rotate (or generate) the partner API key

> Rotates the X-API-Key credential for the calling user's partner. If the partner has no existing API key (predates the FSG-582 self-service surface), this mints the first one. Returns the new plaintext ONCE — copy it immediately.



## OpenAPI

````yaml /openapi.json post /api/public/v1/me/partner/rotate-api-key
openapi: 3.0.3
info:
  title: Flexslot API
  version: 1.0.0
  description: API documentation for Flexslot decks application
servers:
  - url: https://api.flexslot.gg
    description: Production
  - url: https://api-dev.flexslot.gg
    description: Development
security: []
paths:
  /api/public/v1/me/partner/rotate-api-key:
    post:
      tags:
        - Me
      summary: Rotate (or generate) the partner API key
      description: >-
        Rotates the X-API-Key credential for the calling user's partner. If the
        partner has no existing API key (predates the FSG-582 self-service
        surface), this mints the first one. Returns the new plaintext ONCE —
        copy it immediately.
      operationId: me_partner_rotate_api_key
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerRotateApiKeyResponse'
          description: ''
      security:
        - PersonalAccessToken: []
        - OAuth2Bearer: []
components:
  schemas:
    PartnerRotateApiKeyResponse:
      type: object
      properties:
        plaintext_api_key:
          type: string
          description: Shown ONCE — copy immediately. Cannot be recovered.
        api_key_prefix:
          type: string
          description: First 12 chars; helpful for the partner to identify the key in logs.
      required:
        - api_key_prefix
        - plaintext_api_key
  securitySchemes:
    PersonalAccessToken:
      type: http
      scheme: bearer
      bearerFormat: flx_pat_...
      description: 'User-issued personal access token (format: flx_pat_<token>).'
    OAuth2Bearer:
      type: http
      scheme: bearer
      bearerFormat: flx_at_...
      description: >-
        OAuth2 access token issued via the authorization-code + PKCE flow
        (format: flx_at_<token>). Grants the partner user-scoped access to act
        on behalf of the consenting end-user.

````