# Add sponsored accounts (deprecated)

Endpoint: POST /v1/domain/{domainId}/account/{entityId}/sponsored-accounts
Security: bearer

## Path parameters:

  - `domainId` (string, required)
    Sponsor domain ID

  - `entityId` (string, required)
    Sponsor account ID

## Request fields (application/json):

  - `accounts` (array, required)

  - `accounts.accountId` (string, required)
    Account ID to sponsor

  - `accounts.domainId` (string, required)
    Domain ID of the account

  - `userId` (string)
    UUID of the user performing the action. Optional — only honored when the caller is a service principal; otherwise the authenticated user from the JWT is used.

## Response 201 fields (application/json):

  - `success` (boolean, required)
    Whether the operation completed (true even for partial success)

  - `count` (number, required)
    Number of entities successfully added

  - `conflicts` (array)
    Entities that could not be added due to conflicts

  - `conflicts.accountId` (string)
    Account ID that conflicted (for account conflicts)

  - `conflicts.domainId` (string, required)
    Domain ID of the conflicting entity

  - `conflicts.reason` (string, required)
    Reason for the conflict
    Enum: "ALREADY_SPONSORED"

  - `conflicts.existingSponsorAccountId` (string, required)
    Account ID of the existing sponsor


## Response 404 fields
