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

# Identity, granted scopes and an account overview for the calling token



## OpenAPI

````yaml /api-reference/openapi.json get /v1/auth/me
openapi: 3.1.0
info:
  title: Leadinfo Data API
  version: 0.1.0
  x-logo:
    url: https://asset.leadinfo.com/assets/email_logo.png
servers:
  - url: https://data.leadinfo.com
    description: Production
security: []
paths:
  /v1/auth/me:
    get:
      tags:
        - auth
      summary: Identity, granted scopes and an account overview for the calling token
      operationId: get_user_info_v1_auth_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserInfoResponse'
        '401':
          description: Invalid credentials.
        '404':
          description: Client not found.
      security:
        - HTTPBearer: []
components:
  schemas:
    UserInfoResponse:
      properties:
        client_id:
          type: string
          title: Client Id
          description: The unique identifier of the client
        client_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Name
          description: The name of the client application
        scope:
          type: string
          title: Scope
          description: Space-separated scopes granted on the calling token
        token_expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Token Expires At
          description: Expiry of the calling token, if it has one
        company_id:
          type: integer
          title: Company Id
          description: >-
            Leadinfo company the caller acts for: the consenting user's company
            on a per-user token, otherwise the company that owns the OAuth
            client
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
          description: Portal user behind a per-user (authorization_code) token
        customer_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Customer Id
          description: Customer of that user; null on client-credentials tokens
        is_partner:
          type: boolean
          title: Is Partner
          description: True when the account manages other companies' trackers
        managed_companies:
          type: integer
          title: Managed Companies
          description: Number of other companies this account can access
        trackers:
          type: integer
          title: Trackers
          description: Active trackers visible to this account
        trackers_with_traffic:
          type: integer
          title: Trackers With Traffic
          description: Active trackers that have received visitor traffic
        tags:
          type: integer
          title: Tags
          description: Custom tags defined by this account
        segments:
          type: integer
          title: Segments
          description: Saved segments defined by this account
        personas:
          type: integer
          title: Personas
          description: Persona Builder personas defined by this account
      type: object
      required:
        - client_id
        - scope
        - company_id
        - is_partner
        - managed_companies
        - trackers
        - trackers_with_traffic
        - tags
        - segments
        - personas
      title: UserInfoResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.