# Generate loyalty club oidc keys

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/loyalty_clubs/oauth2/keys/generate:
    post:
      summary: Generate loyalty club oidc keys
      deprecated: false
      description: ''
      tags:
        - API Reference/Management API/Core/OAuth2/Keys
      parameters:
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Loyalty-Club-Slug
          in: header
          description: LoyaltyClub for API context. [Details](doc-342138)
          required: false
          example: '{{LOYALTY_CLUB_SLUG}}'
          schema:
            type: string
            default: '{{LOYALTY_CLUB_SLUG}}'
        - name: Authorization
          in: header
          description: '[Member](doc-342129) or [User](doc-342130) Authorization.'
          required: false
          example: Bearer {{_OAUTH_TOKEN}}
          schema:
            type: string
            default: Bearer {{_OAUTH_TOKEN}}
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                key:
                  type: object
                  properties:
                    algorithm:
                      type: string
                      enum:
                        - rs256
                      x-apidog-enum:
                        - value: rs256
                          name: ''
                          description: ''
                    kid:
                      type: string
                      pattern: ^[A-Za-z0-9-_]+
                  x-apidog-orders:
                    - algorithm
                    - kid
                  required:
                    - algorithm
                    - kid
                  x-apidog-ignore-properties: []
              required:
                - key
              x-apidog-orders:
                - key
              x-apidog-ignore-properties: []
            example:
              key:
                algorithm: rs256
                kid: NiE1eALQs
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  key:
                    $ref: '#/components/schemas/Oauth2Key'
                x-apidog-orders:
                  - key
                required:
                  - key
                x-apidog-ignore-properties: []
              example:
                key:
                  id: 87
                  loyalty_club_id: 86
                  algorithm: rs256
                  kid: hbCOYaS4Evd
                  created_at: '2022-11-05T16:25:58.099512Z'
                  updated_at: '2022-11-15T16:25:58.099512Z'
          headers: {}
          x-apidog-name: OK
      security: []
      x-apidog-folder: API Reference/Management API/Core/OAuth2/Keys
      x-apidog-status: developing
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-3954478-run
components:
  schemas:
    Oauth2Key:
      type: object
      properties:
        id:
          type: integer
        loyalty_club_id:
          type: integer
        algorithm:
          type: string
          examples:
            - rs256
        kid:
          type: string
          pattern: ^[A-Za-z0-9-_]+
        created_at:
          $ref: '#/components/schemas/date_time.created_at'
        updated_at:
          $ref: '#/components/schemas/date_time.updated_at'
      x-apidog-orders:
        - id
        - loyalty_club_id
        - algorithm
        - kid
        - created_at
        - updated_at
      required:
        - id
        - loyalty_club_id
        - algorithm
        - kid
        - created_at
        - updated_at
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    date_time.updated_at:
      type: string
      description: Time of the last record update
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    date_time.created_at:
      type: string
      description: Time of record creation
      format: date-time
      examples:
        - '2022-11-05T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```