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

# Create a Solana token account (ATA) for an account

> Create the Solana Associated Token Account (ATA) for a registered account's Solana deposit address and an SPL mint, so transfers from senders that omit a create-ATA instruction (some CEXes) do not bounce on-chain. Allowlisted clients only. Idempotent: returns the existing ATA with created=false if it already exists. Rejects native/wrapped SOL (no ATA needed).



## OpenAPI

````yaml https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json post /account/{address}/token-accounts
openapi: 3.1.0
info:
  title: Deposit Service API
  version: 1.0.0
  description: >-
    Cross-chain deposit processing service with automatic token bridging and gas
    sponsorship
servers:
  - url: https://v1.orchestrator.rhinestone.dev/deposit-processor
security: []
paths:
  /account/{address}/token-accounts:
    post:
      tags:
        - Accounts
      summary: Create a Solana token account (ATA) for an account
      description: >-
        Create the Solana Associated Token Account (ATA) for a registered
        account's Solana deposit address and an SPL mint, so transfers from
        senders that omit a create-ATA instruction (some CEXes) do not bounce
        on-chain. Allowlisted clients only. Idempotent: returns the existing ATA
        with created=false if it already exists. Rejects native/wrapped SOL (no
        ATA needed).
      parameters:
        - schema:
            type: string
            pattern: ^0x[a-fA-F0-9]{40}$
            description: Ethereum address (0x followed by 40 hex characters)
            example: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91'
          required: true
          description: Ethereum address (0x followed by 40 hex characters)
          name: address
          in: path
        - schema:
            type: string
            description: API key for authentication
            example: your-api-key
          required: true
          description: API key for authentication
          name: x-api-key
          in: header
        - schema:
            type: string
            pattern: ^\d{4}-\d{2}\.[a-z0-9]+$
            description: >-
              API version identifier (e.g. "2026-04.amazon"). Optional today,
              will become required in a future release.
            example: 2026-04.amazon
          required: false
          description: >-
            API version identifier (e.g. "2026-04.amazon"). Optional today, will
            become required in a future release.
          name: x-api-version
          in: header
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenAccountRequestBody'
      responses:
        '200':
          description: Token account exists (created now or previously)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenAccountResponse'
        '400':
          description: Invalid mint (bad base58, unsupported token, or SOL/WSOL)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: >-
            Project not in the allowlist, lacks deposits:write scope, or the
            account is owned by a different project
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: No Solana account registered for this address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Solana RPC or transaction submission failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TokenAccountRequestBody:
      type: object
      properties:
        mint:
          type: string
          description: >-
            Base58-encoded SPL token mint to create the Associated Token Account
            for
          example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
      required:
        - mint
    TokenAccountResponse:
      type: object
      properties:
        ataAddress:
          type: string
        created:
          type: boolean
        txSignature:
          type: string
      required:
        - ataAddress
        - created
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
              code:
                type: string
            required:
              - message
      required:
        - error

````