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

# Get Account ID

> Retrieve the ID of the authenticated account associated with the provided credentials. This is useful when you have an API key or access token but do not yet know the corresponding accountId.



## OpenAPI

````yaml api-reference/openapi/accounts.json GET /api/accounts/id
openapi: 3.1.0
info:
  title: Recoup API - Accounts
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.recoupable.dev
security: []
paths:
  /api/accounts/id:
    get:
      description: >-
        Retrieve the ID of the authenticated account associated with the
        provided credentials. This is useful when you have an API key or access
        token but do not yet know the corresponding accountId.
      parameters: []
      responses:
        '200':
          description: Account ID retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAccountIdResponse'
        '401':
          description: Unauthorized - missing or invalid credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountErrorResponse'
      security:
        - apiKeyAuth: []
        - bearerAuth: []
components:
  schemas:
    GetAccountIdResponse:
      type: object
      required:
        - status
        - accountId
      properties:
        status:
          type: string
          enum:
            - success
          description: Status of the request
        accountId:
          type: string
          format: uuid
          description: The unique identifier (UUID) of the authenticated account
    AccountErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
          description: Status of the request
        message:
          type: string
          description: Error message describing what went wrong
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).
    bearerAuth:
      type: http
      scheme: bearer

````