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

# Get current organization

> Returns the organization that the API key belongs to, including plan and credit balance. Useful as a connectivity and authentication check.



## OpenAPI

````yaml /openapi.json get /me
openapi: 3.1.0
info:
  title: Leadey API
  version: 1.0.0
  description: >-
    Programmatic access to your Leadey workspace — leads, companies, contacts,
    and campaigns. All endpoints are authenticated with an API key and scoped to
    the key's organization.
servers:
  - url: https://backend.leadey.ai/v1
    description: Production
  - url: http://localhost:3001/v1
    description: Local development
security:
  - bearerAuth: []
paths:
  /me:
    get:
      tags:
        - Account
      summary: Get current organization
      description: >-
        Returns the organization that the API key belongs to, including plan and
        credit balance. Useful as a connectivity and authentication check.
      operationId: getMe
      responses:
        '200':
          description: The authenticated organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Organization'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Organization:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        plan:
          type: string
          example: growth
        planStatus:
          type: string
          example: active
        credits:
          type: object
          properties:
            balance:
              type: integer
              description: Spendable credit balance.
              example: 2840
            included:
              type: integer
              example: 10000
            used:
              type: integer
              example: 7160
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Human-readable error message.
            details:
              type:
                - object
                - array
                - string
                - 'null'
              description: Optional structured detail.
          required:
            - message
  responses:
    Unauthorized:
      description: The API key is missing, invalid, or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              message: Invalid or revoked API key.
              details: null
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key, created in the Leadey dashboard under Settings → API Keys.
        Send it as `Authorization: Bearer leadey_sk_live_…`.

````