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

# PublicApiWhoami

> GET /api/v1/whoami

Use this endpoint through the Developer API or the matching `firstsales` CLI command when available. Responses use the stable FirstSales public error envelope.


## OpenAPI

````yaml GET /api/v1/whoami
openapi: 3.1.0
info:
  title: FirstSales Developer API
  version: 1.0.0
  description: >-
    Public v1 developer API for FirstSales.io. Generated from live step
    definitions — do not hand-edit.
servers:
  - url: https://sandbox.api.app.firstsales.io
  - url: https://api.app.firstsales.io
security:
  - bearerAuth: []
tags:
  - name: Activities
  - name: Alerts
  - name: API Keys
  - name: Authentication
  - name: Billing
  - name: Blocked Domains
  - name: Campaigns
  - name: Companies
  - name: Connectors
  - name: Contacts
  - name: Copilot
  - name: Dashboard
  - name: Deals
  - name: Direct Email
  - name: Email Authentication
  - name: Inbox
  - name: Knowledge Bases
  - name: Learning
  - name: Offerings
  - name: Organizations
  - name: Product Updates
  - name: Sequence Library
  - name: Signals
    description: >-
      Beta. Find people who comment on or react to LinkedIn posts by a keyword,
      a person or a company page. Each scan costs 10x the scraper cost in
      credits (1 credit = $0.01), capped by the daily budget of the signal. A
      scan that adds no new person is free.
  - name: Suppression
  - name: Team
  - name: Tracking Domains
  - name: Warmup
paths:
  /api/v1/whoami:
    get:
      tags:
        - Authentication
      summary: PublicApiWhoami
      operationId: getDeveloperIdentity
      parameters: []
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperIdentityResponse'
        default:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorEnvelope'
      security:
        - developerKeyBearer: []
components:
  schemas:
    DeveloperIdentityResponse:
      type: object
      properties:
        apiKey:
          type: object
          properties:
            id:
              type: string
            prefix:
              type: string
            scopes:
              type: array
              items:
                type: string
                enum:
                  - organizations:read
                  - workspaces:read
                  - api_keys:read
                  - api_keys:write
                  - campaigns:read
                  - campaigns:write
                  - contacts:read
                  - contacts:write
                  - connectors:read
                  - connectors:write
                  - inbox:read
                  - inbox:write
                  - kb:read
                  - kb:write
                  - offerings:read
                  - offerings:write
                  - tracking:read
                  - tracking:write
                  - billing:read
                  - billing:write
                  - members:read
                  - members:write
                  - groups:write
                  - domains:read
                  - domains:write
                  - deals:read
                  - deals:write
                  - companies:read
                  - companies:write
                  - activities:read
                  - activities:write
                  - copilot:read
                  - copilot:write
                  - suppression:read
                  - blocked_domains:read
                  - blocked_domains:write
                  - email_auth:read
                  - email_auth:write
                  - direct_email:write
                  - direct_email:approve
                  - changelog:read
                  - changelog:write
                  - signals:read
                  - signals:write
                  - '*'
            accessLevel:
              type: string
              enum:
                - workspace
                - organization
            createdAt:
              type: string
              format: date-time
            lastUsedAt:
              type:
                - string
                - 'null'
              format: date-time
          required:
            - id
            - prefix
            - scopes
            - accessLevel
            - createdAt
            - lastUsedAt
          additionalProperties: false
        organization:
          type: object
          properties:
            id:
              type: string
          required:
            - id
          additionalProperties: false
      required:
        - apiKey
        - organization
      additionalProperties: false
    PublicErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
            details:
              type: object
              additionalProperties: true
          required:
            - code
            - message
            - requestId
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Legacy compatibility bearer scheme for generated consumers.
    developerKeyBearer:
      type: http
      scheme: bearer
      description: FirstSales developer API key bearer token (fs-key-*).

````

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