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

# Get Current Account

> Returns the current account's details including name, slug, and plan.
Requires `account:view` permission.




## OpenAPI

````yaml GET /api/accounts/current
openapi: 3.1.0
info:
  title: Naturalead Accounts & Teams API
  version: 1.0.0
  description: >
    API for managing accounts, team members, and RBAC roles in the Naturalead
    platform.

    All endpoints require API key authentication and are scoped to the caller's
    account.
servers:
  - url: '{baseUrl}'
    description: API server
    variables:
      baseUrl:
        default: http://localhost:3001
security:
  - BearerAuth: []
tags:
  - name: Accounts
    description: Account profile and settings
  - name: Team
    description: Team member management and role assignment
  - name: Roles
    description: RBAC role and permission introspection
paths:
  /api/accounts/current:
    get:
      tags:
        - Accounts
      summary: Get current account
      description: |
        Returns the current account's details including name, slug, and plan.
        Requires `account:view` permission.
      operationId: getCurrentAccount
      responses:
        '200':
          description: Account details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
        '404':
          description: Account not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    Account:
      type: object
      properties:
        _id:
          type: string
        clerkOrgId:
          type: string
          description: Organization ID
        name:
          type: string
        slug:
          type: string
        plan:
          type: string
        webhookToken:
          type: string
          description: Token for the inbound lead webhook
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
      required:
        - error
  responses:
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer token using an API key (format nl_live_* or nl_test_*)

````