# Get API Key

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/users/api-key:
    get:
      summary: Get API Key
      deprecated: false
      description: Get API Key of an Account
      tags:
        - Snapbyte APIs/Basic
      parameters:
        - name: token
          in: cookie
          description: Authentication token
          required: false
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwid2Vic2l0ZSI6e30sIm5hbWUiOm51bGwsInJvbGUiOjEsInZlciI6InYxIiwiaWF0IjoxNzUxOTQwNzg4LCJleHAiOjE3ODM0NzY3ODh9.bL8f6tvb2WoQru7atsf1CSRcElrBW1NDZZsD2TTs0rM
          schema:
            type: string
        - name: id
          in: cookie
          description: Account ID
          required: false
          example: 1
          schema:
            type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      api_key:
                        type: string
                        description: Account API Key
                    x-apidog-orders:
                      - api_key
                    required:
                      - api_key
                  01JZKWY3XBS12W5VHBWFS1CFYK:
                    type: string
                x-apidog-orders:
                  - success
                  - message
                  - data
                  - 01JZKWY3XBS12W5VHBWFS1CFYK
                required:
                  - success
                  - message
                  - data
                  - 01JZKWY3XBS12W5VHBWFS1CFYK
              example:
                success: true
                message: Generated
                data:
                  api_key: 9cc215b6-4fd1-41c7-ba73-4ad2ac8ed335
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Snapbyte APIs/Basic
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/991601/apis/api-18887058-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.snapbyte.io
    description: Prod Env
security: []

```
