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

# Get a Sub-account

> Retrieve a sub-account by ID, including an archived sub-account. This workspace-level management request must not include the Sub-Account-ID header.

Retrieve one sub-account by ID. The endpoint returns the sub-account even when it is archived.

> [!NOTE]
>
> This is a workspace-level management request. Do not send the `Sub-Account-ID` header.


## OpenAPI

````yaml api/v2/reference/openapi.yaml GET /sub-accounts/{sub_account_id}
openapi: 3.1.0
info:
  title: FullEnrich API Documentation
  version: 2.0.0
  description: >
    FullEnrich API enables you to enrich B2B contacts with emails and phone
    numbers using data from 20+ providers.


    We are GDPR and CCPA compliant.
servers:
  - url: https://app.fullenrich.com/api/v2
security: []
paths:
  /sub-accounts/{sub_account_id}:
    parameters:
      - name: sub_account_id
        in: path
        required: true
        description: The sub-account ID.
        schema:
          type: string
          format: uuid
        example: 70ff6a88-6291-417d-b6cd-04f1ca123470
    get:
      summary: Get a sub-account
      description: >-
        Retrieve a sub-account by ID, including an archived sub-account. This
        workspace-level management request must not include the Sub-Account-ID
        header.
      operationId: getSubAccount
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubAccount'
        '400':
          description: Invalid sub-account ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: error.params.type
                message: sub_account_id must be a valid UUID
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/SubAccountScopeForbidden'
        '404':
          $ref: '#/components/responses/SubAccountNotFound'
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
      security:
        - BearerAuth: []
components:
  schemas:
    SubAccount:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: >-
            The sub-account ID. Use this value in the Sub-Account-ID header for
            scoped API calls.
          example: 70ff6a88-6291-417d-b6cd-04f1ca123470
        workspace_id:
          type: string
          format: uuid
          description: The ID of the workspace that owns the sub-account.
          example: 2db5ea61-1752-42cf-8ea1-ab1da060cd0a
        name:
          type: string
          description: The sub-account name.
          example: Acme Europe
        archived:
          type: boolean
          description: Whether the sub-account is archived.
          example: false
        created_at:
          type: string
          format: date-time
          description: When the sub-account was created.
          example: '2026-08-05T09:30:00Z'
        updated_at:
          type: string
          format: date-time
          description: When the sub-account was last updated.
          example: '2026-08-05T09:30:00Z'
      required:
        - id
        - workspace_id
        - name
        - archived
        - created_at
        - updated_at
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            AuthorizationHeaderNotSet:
              value:
                code: error.authorization.not_set
                message: Authorization headers not set
            AuthorizationHeaderNotBearer:
              value:
                code: error.authorization.not_bearer
                message: Authorization headers do not have prefix 'bearer'
            UnknownApiKey:
              value:
                code: error.api.key
                message: Unknown api key
    SubAccountScopeForbidden:
      description: Sub-account management requires the direct workspace scope
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: error.sub_account.scope_invalid
            message: >-
              Sub-account operations require the workspace scope; omit the
              Sub-Account-ID header
    SubAccountNotFound:
      description: Sub-account not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: error.sub_account.not_found
            message: Sub-account not found
    RateLimitExceeded:
      description: Too Many Requests
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: error.rate.limit
            message: Too many requests. Try again in 1m
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: string

````

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